2018-09-18 13:00:59 +02:00
|
|
|
{ stdenv, buildPythonPackage, fetchPypi, pytest, psycopg2, click, sqlparse }:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pgspecial";
|
2019-01-02 16:52:31 +01:00
|
|
|
version = "1.11.5";
|
2018-09-18 13:00:59 +02:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-01-02 16:52:31 +01:00
|
|
|
sha256 = "0yvlxv9vy0hbfgf0xcwl7wh5hg6cl86arsv1ip3kvn9znn6x8kgl";
|
2018-09-18 13:00:59 +02:00
|
|
|
};
|
|
|
|
|
2019-02-15 10:08:27 +01:00
|
|
|
checkInputs = [ pytest psycopg2 ];
|
2018-09-18 13:00:59 +02:00
|
|
|
propagatedBuildInputs = [ click sqlparse ];
|
|
|
|
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|