Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / ihm / default.nix
blobb56459317f34cd8e4a015efde4bbf82ac2843330
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , setuptools
5 , swig
6 , wheel
7 , msgpack
8 , pytestCheckHook
9 }:
11 buildPythonPackage rec {
12   pname = "ihm";
13   version = "0.41";
14   pyproject = true;
16   src = fetchFromGitHub {
17     owner = "ihmwg";
18     repo = "python-ihm";
19     rev = "refs/tags/${version}";
20     hash = "sha256-weeOizVWFcOxD45QsvEaoknTofZjglCvidyvXpyRKwc=";
21   };
23   nativeBuildInputs = [
24     setuptools
25     swig
26     wheel
27   ];
29   propagatedBuildInputs = [
30     msgpack
31   ];
33   nativeCheckInputs = [
34     pytestCheckHook
35   ];
37   disabledTests = [
38     # requires network access
39     "test_validator_example"
40   ];
42   pythonImportsCheck = [ "ihm" ];
44   meta = with lib; {
45     description = "Python package for handling IHM mmCIF and BinaryCIF files";
46     homepage = "https://github.com/ihmwg/python-ihm";
47     changelog = "https://github.com/ihmwg/python-ihm/blob/${src.rev}/ChangeLog.rst";
48     license = licenses.mit;
49     maintainers = with maintainers; [ natsukium ];
50   };