depot/third_party/nixpkgs/pkgs/development/python-modules/ihm/default.nix
Default email 657f08b14c Project import generated by Copybara.
GitOrigin-RevId: 807e9154dcb16384b1b765ebe9cd2bba2ac287fd
2024-10-29 11:11:06 +00:00

48 lines
968 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
swig,
wheel,
msgpack,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "ihm";
version = "1.7";
pyproject = true;
src = fetchFromGitHub {
owner = "ihmwg";
repo = "python-ihm";
rev = "refs/tags/${version}";
hash = "sha256-jQm8Xl2yyR+y1Leyz8naT1rFJpgK5XdUd7YgnhDuBWo=";
};
nativeBuildInputs = [
setuptools
swig
wheel
];
propagatedBuildInputs = [ msgpack ];
nativeCheckInputs = [ pytestCheckHook ];
disabledTests = [
# requires network access
"test_validator_example"
];
pythonImportsCheck = [ "ihm" ];
meta = with lib; {
description = "Python package for handling IHM mmCIF and BinaryCIF files";
homepage = "https://github.com/ihmwg/python-ihm";
changelog = "https://github.com/ihmwg/python-ihm/blob/${src.rev}/ChangeLog.rst";
license = licenses.mit;
maintainers = with maintainers; [ natsukium ];
};
}