summary refs log tree commit diff
path: root/pkgs/development/python-modules/btrees/default.nix
diff options
context:
space:
mode:
authorgithub-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>2021-07-21 00:05:28 +0000
committerGitHub <noreply@github.com>2021-07-21 00:05:28 +0000
commit8a3580c2f60ab204ea35562eaae8313e0fe0ce12 (patch)
treeab5331a9b9a64353a4daf15ad9908218bf303351 /pkgs/development/python-modules/btrees/default.nix
parentfef688899e5882f13efb5f01d54febad37023252 (diff)
parent4218023470e5d24f3f571963ba54c74327e6c1fe (diff)
downloadnixpkgs-8a3580c2f60ab204ea35562eaae8313e0fe0ce12.tar
nixpkgs-8a3580c2f60ab204ea35562eaae8313e0fe0ce12.tar.gz
nixpkgs-8a3580c2f60ab204ea35562eaae8313e0fe0ce12.tar.bz2
nixpkgs-8a3580c2f60ab204ea35562eaae8313e0fe0ce12.tar.lz
nixpkgs-8a3580c2f60ab204ea35562eaae8313e0fe0ce12.tar.xz
nixpkgs-8a3580c2f60ab204ea35562eaae8313e0fe0ce12.tar.zst
nixpkgs-8a3580c2f60ab204ea35562eaae8313e0fe0ce12.zip
Merge master into haskell-updates
Diffstat (limited to 'pkgs/development/python-modules/btrees/default.nix')
-rw-r--r--pkgs/development/python-modules/btrees/default.nix29
1 files changed, 25 insertions, 4 deletions
diff --git a/pkgs/development/python-modules/btrees/default.nix b/pkgs/development/python-modules/btrees/default.nix
index cebe542de26..49acee691cf 100644
--- a/pkgs/development/python-modules/btrees/default.nix
+++ b/pkgs/development/python-modules/btrees/default.nix
@@ -5,24 +5,45 @@
 , zope_interface
 , transaction
 , zope_testrunner
+, python
 }:
 
 buildPythonPackage rec {
   pname = "BTrees";
   version = "4.9.2";
 
-  buildInputs = [ transaction ];
-  propagatedBuildInputs = [ persistent zope_interface ];
-  checkInputs = [ zope_testrunner ];
-
   src = fetchPypi {
     inherit pname version;
     sha256 = "d33323655924192c4ac998d9ee3002e787915d19c1e17a6baf47c9a63d9556e3";
   };
 
+  propagatedBuildInputs = [
+    persistent
+    zope_interface
+  ];
+
+  checkInputs = [
+    transaction
+    zope_testrunner
+  ];
+
+  checkPhase = ''
+    runHook preCheck
+    ${python.interpreter} -m zope.testrunner --test-path=src --auto-color --auto-progress
+    runHook postCheck
+  '';
+
+  pythonImportsCheck = [
+    "BTrees.OOBTree"
+    "BTrees.IOBTree"
+    "BTrees.IIBTree"
+    "BTrees.IFBTree"
+  ];
+
   meta = with lib; {
     description = "Scalable persistent components";
     homepage = "http://packages.python.org/BTrees";
     license = licenses.zpl21;
+    maintainers = with maintainers; [ ];
   };
 }