summary refs log tree commit diff
path: root/pkgs/development/python-modules
diff options
context:
space:
mode:
authorFabian Affolter <mail@fabian-affolter.ch>2021-11-10 09:57:05 +0100
committerFabian Affolter <mail@fabian-affolter.ch>2021-11-10 09:57:05 +0100
commit95b2f5d40b25544aa736b6ecbe7552e564ab0532 (patch)
tree578f2b9d860ab193143e89fb37375a69cb156a26 /pkgs/development/python-modules
parent2de888a972be0747c29a23de73a092fd0e558677 (diff)
downloadnixpkgs-95b2f5d40b25544aa736b6ecbe7552e564ab0532.tar
nixpkgs-95b2f5d40b25544aa736b6ecbe7552e564ab0532.tar.gz
nixpkgs-95b2f5d40b25544aa736b6ecbe7552e564ab0532.tar.bz2
nixpkgs-95b2f5d40b25544aa736b6ecbe7552e564ab0532.tar.lz
nixpkgs-95b2f5d40b25544aa736b6ecbe7552e564ab0532.tar.xz
nixpkgs-95b2f5d40b25544aa736b6ecbe7552e564ab0532.tar.zst
nixpkgs-95b2f5d40b25544aa736b6ecbe7552e564ab0532.zip
python3Packages.peewee: 3.14.4 -> 3.14.8
Diffstat (limited to 'pkgs/development/python-modules')
-rw-r--r--pkgs/development/python-modules/peewee/default.nix56
1 files changed, 32 insertions, 24 deletions
diff --git a/pkgs/development/python-modules/peewee/default.nix b/pkgs/development/python-modules/peewee/default.nix
index fd057d24d31..852ba5ffbcb 100644
--- a/pkgs/development/python-modules/peewee/default.nix
+++ b/pkgs/development/python-modules/peewee/default.nix
@@ -1,50 +1,58 @@
 { lib
+, apsw
 , buildPythonPackage
-, fetchFromGitHub
-, sqlite
 , cython
-, apsw
+, fetchFromGitHub
 , flask
-, withPostgres ? false, psycopg2
-, withMysql ? false, mysql-connector
+, python
+, sqlite
+, withMysql ? false
+, mysql-connector
+, withPostgres ? false
+, psycopg2
 }:
 
 buildPythonPackage rec {
-
   pname = "peewee";
-  version = "3.14.4";
+  version = "3.14.8";
+  format = "setuptools";
 
-  # pypi release does not provide tests
   src = fetchFromGitHub {
     owner = "coleifer";
     repo = pname;
     rev = version;
-    sha256 = "0x85swpaffysc05kka0mab87cnilzw1lpacfhcx5ayabh0i2qsh6";
+    sha256 = "sha256-BJSM+7+VdW6SxN4/AXsX8NhQPdIFoYrVRVwR9OsJ3QE=";
   };
 
-
-  checkInputs = [ flask ];
-
-  checkPhase = ''
-    rm -r playhouse # avoid using the folder in the cwd
-    python runtests.py
-  '';
-
   buildInputs = [
     sqlite
-    cython # compile speedups
+    cython
   ];
 
   propagatedBuildInputs = [
-    apsw # sqlite performance improvement
-  ] ++ (lib.optional withPostgres psycopg2)
-    ++ (lib.optional withMysql mysql-connector);
+    apsw
+  ] ++ lib.optional withPostgres psycopg2
+  ++ lib.optional withMysql mysql-connector;
+
+  checkInputs = [
+    flask
+  ];
 
   doCheck = withPostgres;
 
+  checkPhase = ''
+    rm -r playhouse # avoid using the folder in the cwd
+    ${python.interpreter} runtests.py
+  '';
+
+  pythonImportsCheck = [
+    "peewee"
+  ];
+
   meta = with lib; {
-    description = "a small, expressive orm";
-    homepage    = "http://peewee-orm.com";
-    license     = licenses.mit;
+    description = "Python ORM with support for various database implementation";
+    homepage = "http://peewee-orm.com";
+    license = licenses.mit;
+    maintainers = with maintainers; [ ];
   };
 }