2017-05-23 20:12:55 -07:00
|
|
|
{ lib, pythonPackages, fetchFromGitHub }:
|
|
|
|
|
|
|
|
pythonPackages.buildPythonApplication rec {
|
2018-11-06 19:37:44 -08:00
|
|
|
pname = "pgcli";
|
|
|
|
version = "2.0.0";
|
2017-05-23 20:12:55 -07:00
|
|
|
|
2018-11-06 19:37:44 -08:00
|
|
|
src = pythonPackages.fetchPypi {
|
|
|
|
inherit pname version;
|
|
|
|
sha256 = "085fna5nc72nfj1gw0m4ia6wzayinqaffmjy3ajldha1727vqwzi";
|
2017-05-23 20:12:55 -07:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = with pythonPackages; [
|
2018-11-06 19:37:44 -08:00
|
|
|
cli-helpers click configobj humanize prompt_toolkit_2 psycopg2
|
2018-09-18 04:01:44 -07:00
|
|
|
pygments sqlparse pgspecial setproctitle keyring
|
2017-05-23 20:12:55 -07:00
|
|
|
];
|
|
|
|
|
2018-11-06 19:37:44 -08:00
|
|
|
checkInputs = with pythonPackages; [ pytest mock ];
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
py.test
|
|
|
|
'';
|
|
|
|
|
2017-05-23 20:12:55 -07:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Command-line interface for PostgreSQL";
|
|
|
|
longDescription = ''
|
|
|
|
Rich command-line interface for PostgreSQL with auto-completion and
|
|
|
|
syntax highlighting.
|
|
|
|
'';
|
|
|
|
homepage = https://pgcli.com;
|
|
|
|
license = licenses.bsd3;
|
2018-09-18 04:01:44 -07:00
|
|
|
maintainers = with maintainers; [ dywedir ];
|
2017-05-23 20:12:55 -07:00
|
|
|
};
|
|
|
|
}
|