1
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-07-03 22:32:26 +03:00
nixpkgs/pkgs/development/python-modules/pgcli/default.nix

63 lines
1.2 KiB
Nix
Raw Normal View History

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