depot/third_party/nixpkgs/pkgs/development/python-modules/modelcif/default.nix
Default email b5f92a349c Project import generated by Copybara.
GitOrigin-RevId: 7c9cc5a6e5d38010801741ac830a3f8fd667a7a0
2023-10-19 15:55:26 +02:00

50 lines
1,016 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, setuptools
, wheel
, ihm
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "modelcif";
version = "0.9";
pyproject = true;
src = fetchFromGitHub {
owner = "ihmwg";
repo = "python-modelcif";
rev = "refs/tags/${version}";
hash = "sha256-u+e2QtG6gO1e31OzPfAuzfCkwZymEZMxa2p0haYplAk=";
};
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 ];
};
}