2018-09-18 11:00:59 +00:00
|
|
|
{ stdenv, buildPythonPackage, fetchPypi, pytest, psycopg2, click, sqlparse }:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pgspecial";
|
2019-09-28 12:35:08 +00:00
|
|
|
version = "1.11.7";
|
2018-09-18 11:00:59 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-09-28 12:35:08 +00:00
|
|
|
sha256 = "0wy1zmd44y0vl0kxx2y53g6lpipmixbwwrg6c2r7rc3nwa0icl7p";
|
2018-09-18 11:00:59 +00:00
|
|
|
};
|
|
|
|
|
2019-09-28 12:35:08 +00:00
|
|
|
checkInputs = [ pytest ];
|
|
|
|
propagatedBuildInputs = [ click sqlparse psycopg2 ];
|
2018-09-18 11:00:59 +00:00
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
find tests -name \*.pyc -delete
|
|
|
|
py.test tests
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Meta-commands handler for Postgres Database";
|
|
|
|
homepage = https://pypi.python.org/pypi/pgspecial;
|
|
|
|
license = licenses.bsd3;
|
|
|
|
};
|
|
|
|
}
|