2021-01-23 13:26:19 +01:00
|
|
|
{ lib, stdenv
|
2022-06-15 19:38:41 +02:00
|
|
|
, buildPythonPackage
|
2020-12-26 05:20:00 +01:00
|
|
|
, fetchPypi
|
|
|
|
, isPy3k
|
|
|
|
, cli-helpers
|
|
|
|
, click
|
|
|
|
, configobj
|
2021-07-22 17:02:31 +02:00
|
|
|
, prompt-toolkit
|
2020-12-26 05:20:00 +01:00
|
|
|
, psycopg2
|
|
|
|
, pygments
|
|
|
|
, sqlparse
|
|
|
|
, pgspecial
|
|
|
|
, setproctitle
|
|
|
|
, keyring
|
|
|
|
, pendulum
|
|
|
|
, pytestCheckHook
|
2022-04-08 16:26:20 +02:00
|
|
|
, sshtunnel
|
2020-12-26 05:20:00 +01:00
|
|
|
, mock
|
2019-10-05 21:48:36 +02:00
|
|
|
}:
|
2017-05-24 05:12:55 +02:00
|
|
|
|
2022-06-16 23:13:14 +02:00
|
|
|
# this is a pythonPackage because of the ipython line magics in pgcli.magic
|
|
|
|
# integrating with ipython-sql
|
2022-06-15 19:38:41 +02:00
|
|
|
buildPythonPackage rec {
|
2018-11-07 04:37:44 +01:00
|
|
|
pname = "pgcli";
|
2022-04-08 16:26:20 +02:00
|
|
|
version = "3.4.1";
|
2018-11-30 08:19:51 +01:00
|
|
|
|
2019-10-05 21:48:36 +02:00
|
|
|
src = fetchPypi {
|
2018-11-07 04:37:44 +01:00
|
|
|
inherit pname version;
|
2022-04-08 16:26:20 +02:00
|
|
|
sha256 = "sha256-8DkwGH4n1g32WMqKBPtgHsXXR2xzXysVQsat7Fysj+I=";
|
2017-05-24 05:12:55 +02:00
|
|
|
};
|
|
|
|
|
2019-10-05 21:48:36 +02:00
|
|
|
propagatedBuildInputs = [
|
2020-12-26 05:20:00 +01:00
|
|
|
cli-helpers
|
|
|
|
click
|
|
|
|
configobj
|
2021-07-22 17:02:31 +02:00
|
|
|
prompt-toolkit
|
2020-12-26 05:20:00 +01:00
|
|
|
psycopg2
|
|
|
|
pygments
|
|
|
|
sqlparse
|
|
|
|
pgspecial
|
|
|
|
setproctitle
|
|
|
|
keyring
|
|
|
|
pendulum
|
2022-04-08 16:26:20 +02:00
|
|
|
sshtunnel
|
2017-05-24 05:12:55 +02:00
|
|
|
];
|
|
|
|
|
2020-12-26 05:20:00 +01:00
|
|
|
checkInputs = [ pytestCheckHook mock ];
|
2018-11-07 04:37:44 +01:00
|
|
|
|
2022-01-12 19:52:36 +01:00
|
|
|
disabledTests = lib.optionals stdenv.isDarwin [ "test_application_name_db_uri" ];
|
2018-11-07 04:37:44 +01:00
|
|
|
|
2021-01-23 13:26:19 +01:00
|
|
|
meta = with lib; {
|
2017-05-24 05:12:55 +02:00
|
|
|
description = "Command-line interface for PostgreSQL";
|
|
|
|
longDescription = ''
|
|
|
|
Rich command-line interface for PostgreSQL with auto-completion and
|
|
|
|
syntax highlighting.
|
|
|
|
'';
|
2020-04-13 05:56:25 +02:00
|
|
|
homepage = "https://pgcli.com";
|
2021-08-28 02:04:20 +02:00
|
|
|
changelog = "https://github.com/dbcli/pgcli/raw/v${version}/changelog.rst";
|
2017-05-24 05:12:55 +02:00
|
|
|
license = licenses.bsd3;
|
2018-09-18 13:01:44 +02:00
|
|
|
maintainers = with maintainers; [ dywedir ];
|
2017-05-24 05:12:55 +02:00
|
|
|
};
|
|
|
|
}
|