depot/third_party/nixpkgs/pkgs/development/python-modules/mmcif-pdbx/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

37 lines
873 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
pythonOlder,
setuptools,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "mmcif-pdbx";
version = "2.0.1";
format = "pyproject";
disabled = pythonOlder "3.5";
src = fetchFromGitHub {
owner = "Electrostatics";
repo = "mmcif_pdbx";
rev = "refs/tags/v${version}";
hash = "sha256-ymMQ/q4IMoq+B8RvIdL0aqolKxyE/4rnVfd4bUV5OUY=";
};
nativeBuildInputs = [ setuptools ];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "pdbx" ];
meta = with lib; {
description = "Yet another version of PDBx/mmCIF Python implementation";
homepage = "https://github.com/Electrostatics/mmcif_pdbx";
changelog = "https://github.com/Electrostatics/mmcif_pdbx/releases/tag/v${version}";
license = licenses.cc0;
maintainers = with maintainers; [ natsukium ];
};
}