python3Packages.mmtf-python: use unittestFlags, finalAttrs

This commit is contained in:
Stefan Frijters
2026-10-11 13:36:22 +02:00
parent 1ae8b3a829
commit f0aa3e8e72

View File

@@ -7,13 +7,14 @@
unittestCheckHook,
}:
buildPythonPackage rec {
buildPythonPackage (finalAttrs: {
pname = "mmtf-python";
version = "1.1.3";
format = "setuptools";
src = fetchPypi {
inherit pname version;
pname = "mmtf-python";
inherit (finalAttrs) version;
hash = "sha256-EqAv4bcTHworjORbRvHgzdKLmBj+RJlVTCaISYfqDDI=";
};
@@ -24,9 +25,9 @@ buildPythonPackage rec {
nativeCheckInputs = [ unittestCheckHook ];
unittestFlagsArray = [
"-s mmtf/tests"
"-p \"*_tests.py\""
unittestFlags = [
"--start-directory=mmtf/tests"
"--pattern=*_tests.py"
];
pythonImportsCheck = [ "mmtf" ];
@@ -34,8 +35,8 @@ buildPythonPackage rec {
meta = {
description = "Python implementation of the MMTF API, decoder and encoder";
homepage = "https://github.com/rcsb/mmtf-python";
changelog = "https://github.com/rcsb/mmtf-python/releases/tag/v${version}";
changelog = "https://github.com/rcsb/mmtf-python/releases/tag/v${finalAttrs.version}";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ natsukium ];
};
}
})