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