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