1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 pythonOlder,
6 setuptools,
7 pytestCheckHook,
8}:
9
10buildPythonPackage rec {
11 pname = "mmcif-pdbx";
12 version = "2.0.1";
13 format = "pyproject";
14
15 disabled = pythonOlder "3.5";
16
17 src = fetchFromGitHub {
18 owner = "Electrostatics";
19 repo = "mmcif_pdbx";
20 tag = "v${version}";
21 hash = "sha256-ymMQ/q4IMoq+B8RvIdL0aqolKxyE/4rnVfd4bUV5OUY=";
22 };
23
24 nativeBuildInputs = [ setuptools ];
25
26 nativeCheckInputs = [ pytestCheckHook ];
27
28 pythonImportsCheck = [ "pdbx" ];
29
30 meta = with lib; {
31 description = "Yet another version of PDBx/mmCIF Python implementation";
32 homepage = "https://github.com/Electrostatics/mmcif_pdbx";
33 changelog = "https://github.com/Electrostatics/mmcif_pdbx/releases/tag/v${version}";
34 license = licenses.cc0;
35 maintainers = with maintainers; [ natsukium ];
36 };
37}