1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/development/tools/database/pgcli/default.nix
2020-12-26 04:20:00 +00:00

63 lines
1.2 KiB
Nix

{ stdenv
, buildPythonApplication
, fetchPypi
, isPy3k
, cli-helpers
, click
, configobj
, humanize
, prompt_toolkit
, psycopg2
, pygments
, sqlparse
, pgspecial
, setproctitle
, keyring
, pendulum
, pytestCheckHook
, mock
}:
buildPythonApplication rec {
pname = "pgcli";
version = "3.1.0";
disabled = !isPy3k;
src = fetchPypi {
inherit pname version;
sha256 = "d5b2d803f7e4e7fe679306a000bde5d14d15ec590ddd108f3dc4c0ecad169d2b";
};
propagatedBuildInputs = [
cli-helpers
click
configobj
humanize
prompt_toolkit
psycopg2
pygments
sqlparse
pgspecial
setproctitle
keyring
pendulum
];
checkInputs = [ pytestCheckHook mock ];
disabledTests = stdenv.lib.optionals stdenv.isDarwin [ "test_application_name_db_uri" ];
meta = with stdenv.lib; {
description = "Command-line interface for PostgreSQL";
longDescription = ''
Rich command-line interface for PostgreSQL with auto-completion and
syntax highlighting.
'';
homepage = "https://pgcli.com";
changelog = "https://github.com/dbcli/pgcli/blob/v${version}/changelog.rst";
license = licenses.bsd3;
maintainers = with maintainers; [ dywedir ];
};
}