python3Packages.pydicom: use finalAttrs pattern

This commit is contained in:
Gaetan Lepage
2026-01-15 08:37:20 +00:00
parent d6bc8a1403
commit 369c2bd492
@@ -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
];
};
}
})