472aeafc57
GitOrigin-RevId: c31898adf5a8ed202ce5bea9f347b1c6871f32d1
47 lines
1,013 B
Nix
47 lines
1,013 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
setuptools,
|
|
wheel,
|
|
ihm,
|
|
pytestCheckHook,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "modelcif";
|
|
version = "1.1";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "ihmwg";
|
|
repo = "python-modelcif";
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-HUS9MW6jbwjK3I6egmmsH+Bx+nNgszWc3t3QRo/EWpc=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
setuptools
|
|
wheel
|
|
];
|
|
|
|
propagatedBuildInputs = [ ihm ];
|
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
|
|
|
disabledTests = [
|
|
# require network access
|
|
"test_validate_mmcif_example"
|
|
"test_validate_modbase_example"
|
|
];
|
|
|
|
pythonImportsCheck = [ "modelcif" ];
|
|
|
|
meta = with lib; {
|
|
description = "Python package for handling ModelCIF mmCIF and BinaryCIF files";
|
|
homepage = "https://github.com/ihmwg/python-modelcif";
|
|
changelog = "https://github.com/ihmwg/python-modelcif/blob/${src.rev}/ChangeLog.rst";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ natsukium ];
|
|
};
|
|
}
|