2019-10-05 20:48:36 +01:00
|
|
|
{ buildPythonApplication, lib, fetchPypi, isPy3k, fetchpatch
|
|
|
|
, cli-helpers, click, configobj, humanize, prompt_toolkit, psycopg2
|
|
|
|
, pygments, sqlparse, pgspecial, setproctitle, keyring, pytest, mock
|
|
|
|
}:
|
2017-05-24 04:12:55 +01:00
|
|
|
|
2019-10-05 20:48:36 +01:00
|
|
|
buildPythonApplication rec {
|
2018-11-07 03:37:44 +00:00
|
|
|
pname = "pgcli";
|
2019-10-05 20:48:36 +01:00
|
|
|
version = "2.1.1";
|
2017-05-24 04:12:55 +01:00
|
|
|
|
2019-10-05 20:48:36 +01:00
|
|
|
disabled = !isPy3k;
|
2018-11-30 07:19:51 +00:00
|
|
|
|
2019-10-05 20:48:36 +01:00
|
|
|
src = fetchPypi {
|
2018-11-07 03:37:44 +00:00
|
|
|
inherit pname version;
|
2019-10-05 20:48:36 +01:00
|
|
|
sha256 = "1jmnb8izsdjmq9cgajhfapr31wlhvcml4lakz2mcmjn355x83q44";
|
2017-05-24 04:12:55 +01:00
|
|
|
};
|
|
|
|
|
2019-10-05 20:48:36 +01:00
|
|
|
propagatedBuildInputs = [
|
2018-11-04 02:03:40 +00:00
|
|
|
cli-helpers click configobj humanize prompt_toolkit psycopg2
|
2018-09-18 12:01:44 +01:00
|
|
|
pygments sqlparse pgspecial setproctitle keyring
|
2017-05-24 04:12:55 +01:00
|
|
|
];
|
|
|
|
|
2019-10-05 20:48:36 +01:00
|
|
|
checkInputs = [ pytest mock ];
|
2018-11-07 03:37:44 +00:00
|
|
|
|
2019-10-05 20:48:36 +01:00
|
|
|
# One test fails: https://github.com/dbcli/pgcli/issues/1104
|
|
|
|
doCheck = false;
|
|
|
|
checkPhase = "pytest";
|
2018-11-07 03:37:44 +00:00
|
|
|
|
2017-05-24 04:12:55 +01: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 12:01:44 +01:00
|
|
|
maintainers = with maintainers; [ dywedir ];
|
2017-05-24 04:12:55 +01:00
|
|
|
};
|
|
|
|
}
|