python3Packages.parsnip: migrate to finalAttrs

This commit is contained in:
Fabian Affolter
2026-06-12 09:55:55 +03:00
committed by Doron Behar
parent 85562e4653
commit 0d9f9a7ff2
@@ -7,7 +7,7 @@
numpy,
}:
buildPythonPackage rec {
buildPythonPackage (finalAttrs: {
pname = "parsnip";
version = "0.5.0";
pyproject = true;
@@ -15,7 +15,7 @@ buildPythonPackage rec {
src = fetchFromGitHub {
owner = "glotzerlab";
repo = "parsnip";
tag = "v${version}";
tag = "v${finalAttrs.version}";
hash = "sha256-BCEQnClT/dI+t8RwMEQkzbFVCmDThiS9m8ZBCIEFrlg=";
};
@@ -35,8 +35,8 @@ buildPythonPackage rec {
meta = {
description = "Lightweight, performant library for parsing CIF files in Python";
homepage = "https://github.com/glotzerlab/parsnip";
changelog = "https://github.com/glotzerlab/parsnip/blob/${src.tag}/changelog.rst";
changelog = "https://github.com/glotzerlab/parsnip/blob/${finalAttrs.src.tag}/changelog.rst";
license = lib.licenses.bsd3;
maintainers = with lib.maintainers; [ doronbehar ];
};
}
})