mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-11-03 03:10:17 +00:00
python3Packages.mmtf-python: use unittestFlags, finalAttrs
This commit is contained in:
@@ -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 ];
|
||||
};
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user