Loading pkgs/development/python-modules/peewee/default.nix +19 −28 Original line number Diff line number Diff line { lib , apsw , buildPythonPackage , cython , fetchFromGitHub , flask , python , sqlite , withMysql ? false , mysql-connector , withPostgres ? false , psycopg2 , pythonOlder , setuptools { lib, apsw, buildPythonPackage, cython, fetchFromGitHub, flask, python, sqlite, withMysql ? false, mysql-connector, withPostgres ? false, psycopg2, pythonOlder, setuptools, }: buildPythonPackage rec { Loading @@ -28,9 +29,7 @@ buildPythonPackage rec { hash = "sha256-2SrqWPyeDBKOweLu7bEcDIAqCCtnKv0VBdzfpaA22ow="; }; build-system = [ setuptools ]; build-system = [ setuptools ]; buildInputs = [ sqlite Loading @@ -39,15 +38,9 @@ buildPythonPackage rec { propagatedBuildInputs = [ apsw ] ++ lib.optionals withPostgres [ psycopg2 ] ++ lib.optionals withMysql [ mysql-connector ]; ] ++ lib.optionals withPostgres [ psycopg2 ] ++ lib.optionals withMysql [ mysql-connector ]; nativeCheckInputs = [ flask ]; nativeCheckInputs = [ flask ]; doCheck = withPostgres; Loading @@ -56,9 +49,7 @@ buildPythonPackage rec { ${python.interpreter} runtests.py ''; pythonImportsCheck = [ "peewee" ]; pythonImportsCheck = [ "peewee" ]; meta = with lib; { description = "Python ORM with support for various database implementation"; Loading Loading
pkgs/development/python-modules/peewee/default.nix +19 −28 Original line number Diff line number Diff line { lib , apsw , buildPythonPackage , cython , fetchFromGitHub , flask , python , sqlite , withMysql ? false , mysql-connector , withPostgres ? false , psycopg2 , pythonOlder , setuptools { lib, apsw, buildPythonPackage, cython, fetchFromGitHub, flask, python, sqlite, withMysql ? false, mysql-connector, withPostgres ? false, psycopg2, pythonOlder, setuptools, }: buildPythonPackage rec { Loading @@ -28,9 +29,7 @@ buildPythonPackage rec { hash = "sha256-2SrqWPyeDBKOweLu7bEcDIAqCCtnKv0VBdzfpaA22ow="; }; build-system = [ setuptools ]; build-system = [ setuptools ]; buildInputs = [ sqlite Loading @@ -39,15 +38,9 @@ buildPythonPackage rec { propagatedBuildInputs = [ apsw ] ++ lib.optionals withPostgres [ psycopg2 ] ++ lib.optionals withMysql [ mysql-connector ]; ] ++ lib.optionals withPostgres [ psycopg2 ] ++ lib.optionals withMysql [ mysql-connector ]; nativeCheckInputs = [ flask ]; nativeCheckInputs = [ flask ]; doCheck = withPostgres; Loading @@ -56,9 +49,7 @@ buildPythonPackage rec { ${python.interpreter} runtests.py ''; pythonImportsCheck = [ "peewee" ]; pythonImportsCheck = [ "peewee" ]; meta = with lib; { description = "Python ORM with support for various database implementation"; Loading