From 642409e8087dc624fd96b9230cc7eaf5eac80751 Mon Sep 17 00:00:00 2001 From: Sarah Clark Date: Wed, 11 Mar 2026 10:44:51 -0700 Subject: [PATCH 1/2] python3Packages.dulwich: 1.0.0 -> 1.1.0 --- pkgs/development/python-modules/dulwich/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/development/python-modules/dulwich/default.nix b/pkgs/development/python-modules/dulwich/default.nix index a30f62726f83..b60e66a6a349 100644 --- a/pkgs/development/python-modules/dulwich/default.nix +++ b/pkgs/development/python-modules/dulwich/default.nix @@ -24,19 +24,19 @@ buildPythonPackage rec { pname = "dulwich"; - version = "1.0.0"; + version = "1.1.0"; pyproject = true; src = fetchFromGitHub { owner = "jelmer"; repo = "dulwich"; tag = "dulwich-${version}"; - hash = "sha256-7/aXxwK6LmERD8CSo+b1uuNVBrXcbBvksZ1YY28vB8A="; + hash = "sha256-9y7+00M2Ib5j+1fHNsJBomkyNZWhihqcIvAgGpJ5AB8="; }; cargoDeps = rustPlatform.fetchCargoVendor { inherit pname version src; - hash = "sha256-O35g5LflL8ZF0HNWdsqg1mp09dKFNrryz23G1WZhhPE="; + hash = "sha256-NEYauayn7laPLQUomQAFEskFP5m8546jYltazR/gn1A="; }; nativeBuildInputs = [ From 764b2eb07d71a36029533815766a98138fcf471d Mon Sep 17 00:00:00 2001 From: Sarah Clark Date: Wed, 11 Mar 2026 10:52:30 -0700 Subject: [PATCH 2/2] python3Packages.dulwich: migrate to finalAttrs --- pkgs/development/python-modules/dulwich/default.nix | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/pkgs/development/python-modules/dulwich/default.nix b/pkgs/development/python-modules/dulwich/default.nix index b60e66a6a349..4d4690cf8fac 100644 --- a/pkgs/development/python-modules/dulwich/default.nix +++ b/pkgs/development/python-modules/dulwich/default.nix @@ -22,7 +22,7 @@ urllib3, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "dulwich"; version = "1.1.0"; pyproject = true; @@ -30,12 +30,12 @@ buildPythonPackage rec { src = fetchFromGitHub { owner = "jelmer"; repo = "dulwich"; - tag = "dulwich-${version}"; + tag = "dulwich-${finalAttrs.version}"; hash = "sha256-9y7+00M2Ib5j+1fHNsJBomkyNZWhihqcIvAgGpJ5AB8="; }; cargoDeps = rustPlatform.fetchCargoVendor { - inherit pname version src; + inherit (finalAttrs) pname version src; hash = "sha256-NEYauayn7laPLQUomQAFEskFP5m8546jYltazR/gn1A="; }; @@ -74,7 +74,7 @@ buildPythonPackage rec { openssh # for ssh-keygen pytestCheckHook ] - ++ lib.concatAttrValues optional-dependencies; + ++ lib.concatAttrValues finalAttrs.passthru.optional-dependencies; enabledTestPaths = [ "tests" ]; @@ -105,7 +105,7 @@ buildPythonPackage rec { does not depend on Git itself. All functionality is available in pure Python. ''; homepage = "https://www.dulwich.io/"; - changelog = "https://github.com/jelmer/dulwich/blob/dulwich-${src.tag}/NEWS"; + changelog = "https://github.com/jelmer/dulwich/blob/dulwich-${finalAttrs.src.tag}/NEWS"; license = with lib.licenses; [ asl20 gpl2Plus @@ -115,4 +115,4 @@ buildPythonPackage rec { sarahec ]; }; -} +})