Commit 764b2eb0 authored by Sarah Clark's avatar Sarah Clark
Browse files

python3Packages.dulwich: migrate to finalAttrs

parent 642409e8
Loading
Loading
Loading
Loading
+6 −6
Original line number Diff line number Diff line
@@ -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
    ];
  };
}
})