about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/mmcif-pdbx/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/development/python-modules/mmcif-pdbx/default.nix')
-rw-r--r--nixpkgs/pkgs/development/python-modules/mmcif-pdbx/default.nix42
1 files changed, 42 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/python-modules/mmcif-pdbx/default.nix b/nixpkgs/pkgs/development/python-modules/mmcif-pdbx/default.nix
new file mode 100644
index 000000000000..05d43d54f25d
--- /dev/null
+++ b/nixpkgs/pkgs/development/python-modules/mmcif-pdbx/default.nix
@@ -0,0 +1,42 @@
+{ 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 ];
+  };
+}