depot/third_party/nixpkgs/pkgs/development/python-modules/pgspecial/default.nix
Default email 9405df4a82 Project import generated by Copybara.
GitOrigin-RevId: 8e4fe32876ca15e3d5eb3ecd3ca0b224417f5f17
2021-04-26 15:14:03 -04:00

25 lines
623 B
Nix

{ lib, buildPythonPackage, fetchPypi, pytest, psycopg2, click, sqlparse }:
buildPythonPackage rec {
pname = "pgspecial";
version = "1.12.1";
src = fetchPypi {
inherit pname version;
sha256 = "b68feb0005f57861573d3fbb82c5c777950decfbb2d1624af57aec825db02c02";
};
checkInputs = [ pytest ];
propagatedBuildInputs = [ click sqlparse psycopg2 ];
checkPhase = ''
find tests -name \*.pyc -delete
py.test tests
'';
meta = with lib; {
description = "Meta-commands handler for Postgres Database";
homepage = "https://pypi.python.org/pypi/pgspecial";
license = licenses.bsd3;
};
}