python3Packages.modelcif: use finalAttrs pattern

This commit is contained in:
natsukium
2026-04-21 13:27:05 +09:00
parent aba162f224
commit 1d9db6ed9c
@@ -7,7 +7,7 @@
pytestCheckHook,
}:
buildPythonPackage rec {
buildPythonPackage (finalAttrs: {
pname = "modelcif";
version = "1.7";
pyproject = true;
@@ -15,7 +15,7 @@ buildPythonPackage rec {
src = fetchFromGitHub {
owner = "ihmwg";
repo = "python-modelcif";
tag = version;
tag = finalAttrs.version;
hash = "sha256-4iAFXL+3/HOP2wmO0SoXAGPRrkoaITStDQKvhKAOjTA=";
};
@@ -39,8 +39,8 @@ buildPythonPackage rec {
meta = {
description = "Python package for handling ModelCIF mmCIF and BinaryCIF files";
homepage = "https://github.com/ihmwg/python-modelcif";
changelog = "https://github.com/ihmwg/python-modelcif/blob/${src.tag}/ChangeLog.rst";
changelog = "https://github.com/ihmwg/python-modelcif/blob/${finalAttrs.src.tag}/ChangeLog.rst";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ natsukium ];
};
}
})