diff --git a/pkgs/development/python-modules/mmtf-python/default.nix b/pkgs/development/python-modules/mmtf-python/default.nix index 9e40d8a76adc..f32ed8e198f4 100644 --- a/pkgs/development/python-modules/mmtf-python/default.nix +++ b/pkgs/development/python-modules/mmtf-python/default.nix @@ -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 ]; }; -} +})