nixpkgs-suyu/pkgs/development/python-modules/pgcli/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

63 lines
1.2 KiB
Nix
Raw Normal View History

{ lib, stdenv
, buildPythonPackage
2020-12-26 05:20:00 +01:00
, fetchPypi
, isPy3k
, cli-helpers
, click
, configobj
, 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
}:
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
buildPythonPackage rec {
2018-11-07 04:37:44 +01:00
pname = "pgcli";
2022-04-08 16:26:20 +02:00
version = "3.4.1";
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
};
propagatedBuildInputs = [
2020-12-26 05:20:00 +01:00
cli-helpers
click
configobj
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
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";
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
};
}