mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-01 18:44:07 +00:00
33afbf39f6
checkInputs used to be added to nativeBuildInputs. Now we have nativeCheckInputs to do that instead. Doing this treewide change allows to keep hashes identical to before the introduction of nativeCheckInputs.
63 lines
1.3 KiB
Nix
63 lines
1.3 KiB
Nix
{ lib
|
|
, stdenv
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, cli-helpers
|
|
, click
|
|
, configobj
|
|
, prompt-toolkit
|
|
, psycopg
|
|
, pygments
|
|
, sqlparse
|
|
, pgspecial
|
|
, setproctitle
|
|
, keyring
|
|
, pendulum
|
|
, pytestCheckHook
|
|
, sshtunnel
|
|
, mock
|
|
}:
|
|
|
|
# this is a pythonPackage because of the ipython line magics in pgcli.magic
|
|
# integrating with ipython-sql
|
|
buildPythonPackage rec {
|
|
pname = "pgcli";
|
|
version = "3.5.0";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "sha256-zESNlRWfwJA9NhgpkneKCW7aV1LWYNR2cTg8jiv2M/E=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
cli-helpers
|
|
click
|
|
configobj
|
|
prompt-toolkit
|
|
psycopg
|
|
pygments
|
|
sqlparse
|
|
pgspecial
|
|
setproctitle
|
|
keyring
|
|
pendulum
|
|
sshtunnel
|
|
];
|
|
|
|
nativeCheckInputs = [ 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 SuperSandro2000 ];
|
|
};
|
|
}
|