python3Packages.numericalunits: use finalAttrs

This commit is contained in:
Gaetan Lepage
2026-02-03 14:51:31 +00:00
parent eb020f6da6
commit 7bf227bd32
@@ -6,7 +6,7 @@
pytestCheckHook,
}:
buildPythonPackage rec {
buildPythonPackage (finalAttrs: {
pname = "numericalunits";
version = "1.26";
pyproject = true;
@@ -14,7 +14,7 @@ buildPythonPackage rec {
src = fetchFromGitHub {
owner = "sbyrnes321";
repo = "numericalunits";
tag = "numericalunits-${version}";
tag = "numericalunits-${finalAttrs.version}";
hash = "sha256-vPB1r+j+p9n+YLnBjHuk2t+QSr+adEOjyC45QSbeb4M=";
};
@@ -26,6 +26,8 @@ buildPythonPackage rec {
pytestCheckHook
];
pythonImportsCheck = [ "numericalunits" ];
enabledTestPaths = [
"tests/tests.py"
];
@@ -36,4 +38,4 @@ buildPythonPackage rec {
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ nickcao ];
};
}
})