pythonPackages.peewee: init at 3.7.1
This commit is contained in:
parent
510c85f349
commit
ff444175b3
46
pkgs/development/python-modules/peewee/default.nix
Normal file
46
pkgs/development/python-modules/peewee/default.nix
Normal file
@ -0,0 +1,46 @@
|
|||||||
|
{ stdenv, lib, buildPythonPackage, fetchFromGitHub
|
||||||
|
, sqlite
|
||||||
|
, cython
|
||||||
|
, apsw
|
||||||
|
, flask
|
||||||
|
, withPostgres ? false, psycopg2
|
||||||
|
, withMysql ? false, mysql-connector
|
||||||
|
}:
|
||||||
|
|
||||||
|
buildPythonPackage rec {
|
||||||
|
|
||||||
|
pname = "peewee";
|
||||||
|
version = "3.7.1";
|
||||||
|
|
||||||
|
# pypi release does not provide tests
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "coleifer";
|
||||||
|
repo = pname;
|
||||||
|
rev = version;
|
||||||
|
sha256 = "0chn8mknzvkmcmysy2291hanf0vg3sfzqgfc5hqx1nnrd6qkiq8r";
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
checkInputs = [ flask ];
|
||||||
|
|
||||||
|
checkPhase = ''
|
||||||
|
rm -r playhouse # avoid using the folder in the cwd
|
||||||
|
python runtests.py
|
||||||
|
'';
|
||||||
|
|
||||||
|
buildInputs = [
|
||||||
|
sqlite
|
||||||
|
cython # compile speedups
|
||||||
|
];
|
||||||
|
|
||||||
|
propagatedBuildInputs = [
|
||||||
|
apsw # sqlite performance improvement
|
||||||
|
] ++ (lib.optional withPostgres psycopg2)
|
||||||
|
++ (lib.optional withMysql mysql-connector);
|
||||||
|
|
||||||
|
meta = with stdenv.lib;{
|
||||||
|
description = "a small, expressive orm";
|
||||||
|
homepage = http://peewee-orm.com;
|
||||||
|
license = licenses.mit;
|
||||||
|
};
|
||||||
|
}
|
@ -3666,6 +3666,8 @@ in {
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
peewee = callPackage ../development/python-modules/peewee { };
|
||||||
|
|
||||||
peppercorn = buildPythonPackage rec {
|
peppercorn = buildPythonPackage rec {
|
||||||
name = "peppercorn-0.5";
|
name = "peppercorn-0.5";
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user