summary refs log tree commit diff
path: root/pkgs/development/python-modules/persistent
diff options
context:
space:
mode:
authorFabian Affolter <mail@fabian-affolter.ch>2022-03-08 15:52:49 +0100
committerJonathan Ringer <jonringer@users.noreply.github.com>2022-03-08 08:04:28 -0800
commit8fe4769dc72cc9cf1d8410f05cafd116fc5c9e93 (patch)
treea25dfa65777713bb1e97a384400b001fdf27884b /pkgs/development/python-modules/persistent
parent173256a82118a9113f89f07599a1f15bf79fd269 (diff)
downloadnixpkgs-8fe4769dc72cc9cf1d8410f05cafd116fc5c9e93.tar
nixpkgs-8fe4769dc72cc9cf1d8410f05cafd116fc5c9e93.tar.gz
nixpkgs-8fe4769dc72cc9cf1d8410f05cafd116fc5c9e93.tar.bz2
nixpkgs-8fe4769dc72cc9cf1d8410f05cafd116fc5c9e93.tar.lz
nixpkgs-8fe4769dc72cc9cf1d8410f05cafd116fc5c9e93.tar.xz
nixpkgs-8fe4769dc72cc9cf1d8410f05cafd116fc5c9e93.tar.zst
nixpkgs-8fe4769dc72cc9cf1d8410f05cafd116fc5c9e93.zip
python3Packages.persistent: add pythonImportsCheck
Diffstat (limited to 'pkgs/development/python-modules/persistent')
-rw-r--r--pkgs/development/python-modules/persistent/default.nix34
1 files changed, 26 insertions, 8 deletions
diff --git a/pkgs/development/python-modules/persistent/default.nix b/pkgs/development/python-modules/persistent/default.nix
index 2749a40eb92..d70fa2826d6 100644
--- a/pkgs/development/python-modules/persistent/default.nix
+++ b/pkgs/development/python-modules/persistent/default.nix
@@ -1,25 +1,43 @@
 { lib
 , buildPythonPackage
+, cffi
 , fetchPypi
-, zope_interface, cffi
-, sphinx, manuel
+, zope_interface
+, sphinx
+, manuel
+, pythonOlder
 }:
 
 buildPythonPackage rec {
   pname = "persistent";
   version = "4.8.0";
+  format = "setuptools";
 
-  nativeBuildInputs = [ sphinx manuel ];
-  propagatedBuildInputs = [ zope_interface cffi ];
+  disabled = pythonOlder "3.7";
 
   src = fetchPypi {
     inherit pname version;
-    sha256 = "sha256-nRd+rT+jwfXWKjbUUmdUs3bgUEx9S3XLmqUvt3HexrI=";
+    hash = "sha256-nRd+rT+jwfXWKjbUUmdUs3bgUEx9S3XLmqUvt3HexrI=";
   };
 
-  meta = {
+  nativeBuildInputs = [
+    sphinx
+    manuel
+  ];
+
+  propagatedBuildInputs = [
+    zope_interface
+    cffi
+  ];
+
+  pythonImportsCheck = [
+    "persistent"
+  ];
+
+  meta = with lib; {
     description = "Automatic persistence for Python objects";
-    homepage = "http://www.zodb.org/";
-    license = lib.licenses.zpl21;
+    homepage = "https://github.com/zopefoundation/persistent/";
+    license = licenses.zpl21;
+    maintainers = with maintainers; [ ];
   };
 }