1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 msgpack,
6 numpy,
7 unittestCheckHook,
8}:
9
10buildPythonPackage rec {
11 pname = "mmtf-python";
12 version = "1.1.3";
13 format = "setuptools";
14
15 src = fetchPypi {
16 inherit pname version;
17 hash = "sha256-EqAv4bcTHworjORbRvHgzdKLmBj+RJlVTCaISYfqDDI=";
18 };
19
20 propagatedBuildInputs = [
21 msgpack
22 numpy
23 ];
24
25 nativeCheckInputs = [ unittestCheckHook ];
26
27 unittestFlagsArray = [
28 "-s mmtf/tests"
29 "-p \"*_tests.py\""
30 ];
31
32 pythonImportsCheck = [ "mmtf" ];
33
34 meta = {
35 description = "Python implementation of the MMTF API, decoder and encoder";
36 homepage = "https://github.com/rcsb/mmtf-python";
37 changelog = "https://github.com/rcsb/mmtf-python/releases/tag/v${version}";
38 license = lib.licenses.asl20;
39 maintainers = with lib.maintainers; [ natsukium ];
40 };
41}