python3Packages.peewee: 3.14.4 -> 3.14.8
This commit is contained in:
parent
2de888a972
commit
95b2f5d40b
@ -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; [ ];
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user