nixpkgs-suyu/pkgs/development/python-modules/peewee/default.nix
R. RyanTM 31d202c19f python37Packages.peewee: 3.10.0 -> 3.11.1
Semi-automatic update generated by
https://github.com/ryantm/nixpkgs-update tools. This update was made
based on information from
https://repology.org/metapackage/python3.7-peewee/versions
2019-09-29 11:35:02 +02:00

46 lines
943 B
Nix

{ stdenv, lib, buildPythonPackage, fetchFromGitHub
, sqlite
, cython
, apsw
, flask
, withPostgres ? false, psycopg2
, withMysql ? false, mysql-connector
}:
buildPythonPackage rec {
pname = "peewee";
version = "3.11.1";
# pypi release does not provide tests
src = fetchFromGitHub {
owner = "coleifer";
repo = pname;
rev = version;
sha256 = "0q84r9x99h9a3kqs3i12bgk8rz5my8vpjngg8yaqd2kzsb6gynp8";
};
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;
};
}