1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, setuptools 5, wheel 6, ihm 7, pytestCheckHook 8}: 9 10buildPythonPackage rec { 11 pname = "modelcif"; 12 version = "0.9"; 13 pyproject = true; 14 15 src = fetchFromGitHub { 16 owner = "ihmwg"; 17 repo = "python-modelcif"; 18 rev = "refs/tags/${version}"; 19 hash = "sha256-u+e2QtG6gO1e31OzPfAuzfCkwZymEZMxa2p0haYplAk="; 20 }; 21 22 nativeBuildInputs = [ 23 setuptools 24 wheel 25 ]; 26 27 propagatedBuildInputs = [ 28 ihm 29 ]; 30 31 nativeCheckInputs = [ 32 pytestCheckHook 33 ]; 34 35 disabledTests = [ 36 # require network access 37 "test_validate_mmcif_example" 38 "test_validate_modbase_example" 39 ]; 40 41 pythonImportsCheck = [ "modelcif" ]; 42 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 }; 50}