2018-09-18 13:00:59 +02:00
|
|
|
{ stdenv, buildPythonPackage, fetchPypi, pytest, psycopg2, click, sqlparse }:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pgspecial";
|
2019-12-05 06:00:00 +01:00
|
|
|
version = "1.11.8";
|
2018-09-18 13:00:59 +02:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-12-05 06:00:00 +01:00
|
|
|
sha256 = "8c53fa2b2490fa9ec34ede4eafff8ddbe8bce5cba3dcae96509be36ec8c75575";
|
2018-09-18 13:00:59 +02:00
|
|
|
};
|
|
|
|
|
2019-09-28 14:35:08 +02:00
|
|
|
checkInputs = [ pytest ];
|
|
|
|
propagatedBuildInputs = [ click sqlparse psycopg2 ];
|
2018-09-18 13:00:59 +02: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;
|
|
|
|
};
|
|
|
|
}
|