Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / modelcif / default.nix
blobe3bfea7074292c823c41fb77496b6bdbe9c40e65
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , setuptools
5 , wheel
6 , ihm
7 , pytestCheckHook
8 }:
10 buildPythonPackage rec {
11   pname = "modelcif";
12   version = "0.9";
13   pyproject = true;
15   src = fetchFromGitHub {
16     owner = "ihmwg";
17     repo = "python-modelcif";
18     rev = "refs/tags/${version}";
19     hash = "sha256-u+e2QtG6gO1e31OzPfAuzfCkwZymEZMxa2p0haYplAk=";
20   };
22   nativeBuildInputs = [
23     setuptools
24     wheel
25   ];
27   propagatedBuildInputs = [
28     ihm
29   ];
31   nativeCheckInputs = [
32     pytestCheckHook
33   ];
35   disabledTests = [
36     # require network access
37     "test_validate_mmcif_example"
38     "test_validate_modbase_example"
39   ];
41   pythonImportsCheck = [ "modelcif" ];
43   meta = with lib; {
44     description = "Python package for handling ModelCIF mmCIF and BinaryCIF files";
45     homepage = "https://github.com/ihmwg/python-modelcif";
46     changelog = "https://github.com/ihmwg/python-modelcif/blob/${src.rev}/ChangeLog.rst";
47     license = licenses.mit;
48     maintainers = with maintainers; [ natsukium ];
49   };