bb584b27e9
GitOrigin-RevId: 5181d5945eda382ff6a9ca3e072ed6ea9b547fee
60 lines
1.1 KiB
Nix
60 lines
1.1 KiB
Nix
{ lib, stdenv
|
|
, buildPythonApplication
|
|
, fetchPypi
|
|
, isPy3k
|
|
, cli-helpers
|
|
, click
|
|
, configobj
|
|
, prompt-toolkit
|
|
, psycopg2
|
|
, pygments
|
|
, sqlparse
|
|
, pgspecial
|
|
, setproctitle
|
|
, keyring
|
|
, pendulum
|
|
, pytestCheckHook
|
|
, sshtunnel
|
|
, mock
|
|
}:
|
|
|
|
buildPythonApplication rec {
|
|
pname = "pgcli";
|
|
version = "3.4.1";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "sha256-8DkwGH4n1g32WMqKBPtgHsXXR2xzXysVQsat7Fysj+I=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
cli-helpers
|
|
click
|
|
configobj
|
|
prompt-toolkit
|
|
psycopg2
|
|
pygments
|
|
sqlparse
|
|
pgspecial
|
|
setproctitle
|
|
keyring
|
|
pendulum
|
|
sshtunnel
|
|
];
|
|
|
|
checkInputs = [ pytestCheckHook mock ];
|
|
|
|
disabledTests = lib.optionals stdenv.isDarwin [ "test_application_name_db_uri" ];
|
|
|
|
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";
|
|
changelog = "https://github.com/dbcli/pgcli/raw/v${version}/changelog.rst";
|
|
license = licenses.bsd3;
|
|
maintainers = with maintainers; [ dywedir ];
|
|
};
|
|
}
|