1{ stdenv, buildPythonPackage, fetchPypi, pytest, psycopg2, click, sqlparse }:
2
3buildPythonPackage rec {
4 pname = "pgspecial";
5 version = "1.11.10";
6
7 src = fetchPypi {
8 inherit pname version;
9 sha256 = "1jrq6bhzwvz6db8ays8zff15hbk1iazs2qxrzvrnlkgxxjkp8p7n";
10 };
11
12 checkInputs = [ pytest ];
13 propagatedBuildInputs = [ click sqlparse psycopg2 ];
14
15 checkPhase = ''
16 find tests -name \*.pyc -delete
17 py.test tests
18 '';
19
20 meta = with stdenv.lib; {
21 description = "Meta-commands handler for Postgres Database";
22 homepage = "https://pypi.python.org/pypi/pgspecial";
23 license = licenses.bsd3;
24 };
25}