Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 setuptools, 6 wheel, 7 ihm, 8 pytestCheckHook, 9}: 10 11buildPythonPackage rec { 12 pname = "modelcif"; 13 version = "1.0"; 14 pyproject = true; 15 16 src = fetchFromGitHub { 17 owner = "ihmwg"; 18 repo = "python-modelcif"; 19 rev = "refs/tags/${version}"; 20 hash = "sha256-zJLwBdyUyWnH1hBx9Kejl5NfY7zJUxeGb//swBT02Dw="; 21 }; 22 23 nativeBuildInputs = [ 24 setuptools 25 wheel 26 ]; 27 28 propagatedBuildInputs = [ ihm ]; 29 30 nativeCheckInputs = [ pytestCheckHook ]; 31 32 disabledTests = [ 33 # require network access 34 "test_validate_mmcif_example" 35 "test_validate_modbase_example" 36 ]; 37 38 pythonImportsCheck = [ "modelcif" ]; 39 40 meta = with lib; { 41 description = "Python package for handling ModelCIF mmCIF and BinaryCIF files"; 42 homepage = "https://github.com/ihmwg/python-modelcif"; 43 changelog = "https://github.com/ihmwg/python-modelcif/blob/${src.rev}/ChangeLog.rst"; 44 license = licenses.mit; 45 maintainers = with maintainers; [ natsukium ]; 46 }; 47}