Commit 369c2bd4 authored by Gaetan Lepage's avatar Gaetan Lepage
Browse files

python3Packages.pydicom: use finalAttrs pattern

parent d6bc8a14
Loading
Loading
Loading
Loading
+5 −5
Original line number Diff line number Diff line
@@ -26,7 +26,7 @@ let
    hash = "sha256-ji7SppKdiszaXs8yCSIPkJj4Ld++XWNw9FuxLoFLfFo=";
  };
in
buildPythonPackage rec {
buildPythonPackage (finalAttrs: {
  pname = "pydicom";
  version = "3.0.1";
  pyproject = true;
@@ -34,7 +34,7 @@ buildPythonPackage rec {
  src = fetchFromGitHub {
    owner = "pydicom";
    repo = "pydicom";
    tag = "v${version}";
    tag = "v${finalAttrs.version}";
    hash = "sha256-SvRevQehRaSp+vCtJRQVEJiC5noIJS+bGG1/q4p7/XU=";
  };

@@ -60,7 +60,7 @@ buildPythonPackage rec {
    pytestCheckHook
    writableTmpDirAsHomeHook
  ]
  ++ optional-dependencies.pixeldata;
  ++ finalAttrs.passthru.optional-dependencies.pixeldata;

  passthru.pydicom-data = test_data;

@@ -105,7 +105,7 @@ buildPythonPackage rec {
    description = "Python package for working with DICOM files";
    mainProgram = "pydicom";
    homepage = "https://pydicom.github.io";
    changelog = "https://github.com/pydicom/pydicom/releases/tag/v${version}";
    changelog = "https://github.com/pydicom/pydicom/releases/tag/${finalAttrs.src.tag}";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ bcdarwin ];
    badPlatforms = [
@@ -117,4 +117,4 @@ buildPythonPackage rec {
      lib.systems.inspect.patterns.isDarwin
    ];
  };
}
})