11 , withPostgres ? false
16 buildPythonPackage rec {
19 format = "setuptools";
21 disabled = pythonOlder "3.7";
23 src = fetchFromGitHub {
26 rev = "refs/tags/${version}";
27 hash = "sha256-Gob2qBPPxAeIO/I7+9r4dBIxhvKnnZWD2nYcrMANM8U=";
35 propagatedBuildInputs = [
37 ] ++ lib.optionals withPostgres [
39 ] ++ lib.optionals withMysql [
47 doCheck = withPostgres;
50 rm -r playhouse # avoid using the folder in the cwd
51 ${python.interpreter} runtests.py
54 pythonImportsCheck = [
59 description = "Python ORM with support for various database implementation";
60 mainProgram = "pwiz.py";
61 homepage = "http://peewee-orm.com";
62 license = licenses.mit;
63 maintainers = with maintainers; [ ];