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