nixpkgs/pkgs/development/tools/database/pgcli/default.nix

39 lines
1.0 KiB
Nix
Raw Normal View History

{ 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
buildPythonApplication rec {
2018-11-07 03:37:44 +00:00
pname = "pgcli";
version = "2.1.1";
2017-05-24 04:12:55 +01:00
disabled = !isPy3k;
src = fetchPypi {
2018-11-07 03:37:44 +00:00
inherit pname version;
sha256 = "1jmnb8izsdjmq9cgajhfapr31wlhvcml4lakz2mcmjn355x83q44";
2017-05-24 04:12:55 +01:00
};
propagatedBuildInputs = [
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
];
checkInputs = [ pytest mock ];
2018-11-07 03:37:44 +00: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
};
}