about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/cerberus/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/development/python-modules/cerberus/default.nix')
-rw-r--r--nixpkgs/pkgs/development/python-modules/cerberus/default.nix35
1 files changed, 19 insertions, 16 deletions
diff --git a/nixpkgs/pkgs/development/python-modules/cerberus/default.nix b/nixpkgs/pkgs/development/python-modules/cerberus/default.nix
index aa8c9b2f0440..a60e80353599 100644
--- a/nixpkgs/pkgs/development/python-modules/cerberus/default.nix
+++ b/nixpkgs/pkgs/development/python-modules/cerberus/default.nix
@@ -1,22 +1,28 @@
 { lib
 , buildPythonPackage
 , fetchFromGitHub
-, setuptools
+, poetry-core
 , pytestCheckHook
+, pythonOlder
+, setuptools
 }:
 
 buildPythonPackage rec {
-  pname = "Cerberus";
-  version = "1.3.4";
+  pname = "cerberus";
+  version = "1.3.5";
+  format = "pyproject";
+
+  disabled = pythonOlder "3.9";
 
   src = fetchFromGitHub {
     owner = "pyeve";
     repo = "cerberus";
-    rev = version;
-    sha256 = "03kj15cf1pbd11mxsik96m5w1m6p0fbdc4ia5ihzmq8rz28razpq";
+    rev = "refs/tags/${version}";
+    hash = "sha256-4sVNM4zHc9nsrntmJVdE9nm47CSF0UOJPPI9z3Z2YDc=";
   };
 
   propagatedBuildInputs = [
+    poetry-core
     setuptools
   ];
 
@@ -24,23 +30,20 @@ buildPythonPackage rec {
     pytestCheckHook
   ];
 
-  preCheck = ''
-    export TESTDIR=$(mktemp -d)
-    cp -R ./cerberus/tests $TESTDIR
-    pushd $TESTDIR
-  '';
-
-  postCheck = ''
-    popd
-  '';
-
   pythonImportsCheck = [
     "cerberus"
   ];
 
+  disabledTestPaths = [
+    # We don't care about benchmarks
+    "cerberus/benchmarks/"
+  ];
+
   meta = with lib; {
+    description = "Schema and data validation tool for Python dictionaries";
     homepage = "http://python-cerberus.org/";
-    description = "Lightweight, extensible schema and data validation tool for Python dictionaries";
+    changelog = "https://github.com/pyeve/cerberus/blob/${version}/CHANGES.rst";
     license = licenses.mit;
+    maintainers = with maintainers; [ fab ];
   };
 }