1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 setuptools,
6 swig,
7 msgpack,
8 pytestCheckHook,
9}:
10
11buildPythonPackage rec {
12 pname = "ihm";
13 version = "2.7";
14 pyproject = true;
15
16 src = fetchFromGitHub {
17 owner = "ihmwg";
18 repo = "python-ihm";
19 tag = version;
20 hash = "sha256-ZMHVYuNcUjhMKJUr5bCIELO6F0CNi0ESfbsBm5vOiA4=";
21 };
22
23 nativeBuildInputs = [ swig ];
24
25 build-system = [ setuptools ];
26
27 dependencies = [ msgpack ];
28
29 nativeCheckInputs = [ pytestCheckHook ];
30
31 disabledTests = [
32 # requires network access
33 "test_validator_example"
34 ];
35
36 pythonImportsCheck = [ "ihm" ];
37
38 meta = with lib; {
39 description = "Python package for handling IHM mmCIF and BinaryCIF files";
40 homepage = "https://github.com/ihmwg/python-ihm";
41 changelog = "https://github.com/ihmwg/python-ihm/blob/${src.tag}/ChangeLog.rst";
42 license = licenses.mit;
43 maintainers = with maintainers; [ natsukium ];
44 };
45}