Files
nixpkgs/pkgs/development/python-modules/modelcif/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

47 lines
993 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
ihm,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "modelcif";
version = "1.5";
pyproject = true;
src = fetchFromGitHub {
owner = "ihmwg";
repo = "python-modelcif";
tag = version;
hash = "sha256-NVsADYEemnhuFwvM4lMebkU5WrqF+gL/3i6LoZ/Alt8=";
};
build-system = [
setuptools
];
dependencies = [ ihm ];
nativeCheckInputs = [ pytestCheckHook ];
disabledTests = [
# require network access
"test_associated_example"
"test_validate_mmcif_example"
"test_validate_modbase_example"
];
pythonImportsCheck = [ "modelcif" ];
meta = {
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.tag}/ChangeLog.rst";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ natsukium ];
};
}