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