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