2021-01-25 08:26:54 +00:00
|
|
|
{ lib, buildPythonPackage, fetchPypi, pytest, psycopg2, click, sqlparse }:
|
2018-09-18 12:00:59 +01:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pgspecial";
|
2020-05-09 10:28:37 +01:00
|
|
|
version = "1.11.10";
|
2018-09-18 12:00:59 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-05-09 10:28:37 +01:00
|
|
|
sha256 = "1jrq6bhzwvz6db8ays8zff15hbk1iazs2qxrzvrnlkgxxjkp8p7n";
|
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
|
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2018-09-18 12:00:59 +01:00
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|