From 95b2f5d40b25544aa736b6ecbe7552e564ab0532 Mon Sep 17 00:00:00 2001 From: Fabian Affolter <mail@fabian-affolter.ch> Date: Wed, 10 Nov 2021 09:57:05 +0100 Subject: [PATCH] python3Packages.peewee: 3.14.4 -> 3.14.8 --- .../python-modules/peewee/default.nix | 58 +++++++++++-------- 1 file changed, 33 insertions(+), 25 deletions(-) diff --git a/pkgs/development/python-modules/peewee/default.nix b/pkgs/development/python-modules/peewee/default.nix index fd057d24d31e..852ba5ffbcb7 100644 --- a/pkgs/development/python-modules/peewee/default.nix +++ b/pkgs/development/python-modules/peewee/default.nix @@ -1,50 +1,58 @@ { lib -, buildPythonPackage -, fetchFromGitHub -, sqlite -, cython , apsw +, buildPythonPackage +, cython +, 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; [ ]; }; }