depot/third_party/nixpkgs/pkgs/development/python-modules/pgspecial/default.nix
Default email 8ac5e011d6 Project import generated by Copybara.
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
2020-04-24 19:36:52 -04:00

25 lines
633 B
Nix

{ stdenv, buildPythonPackage, fetchPypi, pytest, psycopg2, click, sqlparse }:
buildPythonPackage rec {
pname = "pgspecial";
version = "1.11.9";
src = fetchPypi {
inherit pname version;
sha256 = "77f8651450ccbde7d3036cfe93486a4eeeb5ade28d1ebc4b2ba186fea0023c56";
};
checkInputs = [ pytest ];
propagatedBuildInputs = [ click sqlparse psycopg2 ];
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;
};
}