diff options
Diffstat (limited to 'nixpkgs/pkgs/development/python-modules/mmtf-python/default.nix')
-rw-r--r-- | nixpkgs/pkgs/development/python-modules/mmtf-python/default.nix | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/python-modules/mmtf-python/default.nix b/nixpkgs/pkgs/development/python-modules/mmtf-python/default.nix new file mode 100644 index 000000000000..197d0cf3e65b --- /dev/null +++ b/nixpkgs/pkgs/development/python-modules/mmtf-python/default.nix @@ -0,0 +1,44 @@ +{ lib +, buildPythonPackage +, fetchPypi +, msgpack +, numpy +, unittestCheckHook +}: + +buildPythonPackage rec { + pname = "mmtf-python"; + version = "1.1.3"; + format = "setuptools"; + + src = fetchPypi { + inherit pname version; + hash = "sha256-EqAv4bcTHworjORbRvHgzdKLmBj+RJlVTCaISYfqDDI="; + }; + + propagatedBuildInputs = [ + msgpack + numpy + ]; + + nativeCheckInputs = [ + unittestCheckHook + ]; + + unittestFlagsArray = [ + "-s mmtf/tests" + "-p \"*_tests.py\"" + ]; + + pythonImportsCheck = [ + "mmtf" + ]; + + meta = { + description = "The 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}"; + license = lib.licenses.asl20; + maintainers = with lib.maintainers; [ natsukium ]; + }; +} |