nixpkgs/pkgs/development/tools/database/pgcli/default.nix

36 lines
1.0 KiB
Nix
Raw Normal View History

2017-05-24 04:12:55 +01:00
{ lib, pythonPackages, fetchFromGitHub }:
pythonPackages.buildPythonApplication rec {
name = "pgcli-${version}";
version = "1.11.0";
2017-05-24 04:12:55 +01:00
src = fetchFromGitHub {
owner = "dbcli";
2018-09-18 12:01:44 +01:00
repo = "pgcli";
rev = "v${version}";
sha256 = "01qcvl0iwabinq3sb4340js8v3sbwkbxi64sg4xy76wj8xr6kgsk";
2017-05-24 04:12:55 +01:00
};
buildInputs = with pythonPackages; [ pytest mock ];
checkPhase = ''
2017-06-03 19:32:14 +01:00
mkdir /tmp/homeless-shelter
HOME=/tmp/homeless-shelter py.test tests -k 'not test_missing_rc_dir and not test_quoted_db_uri and not test_port_db_uri'
2017-05-24 04:12:55 +01:00
'';
propagatedBuildInputs = with pythonPackages; [
2018-09-18 12:01:44 +01:00
cli-helpers click configobj humanize prompt_toolkit psycopg2
pygments sqlparse pgspecial setproctitle keyring
2017-05-24 04:12:55 +01:00
];
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;
license = licenses.bsd3;
2018-09-18 12:01:44 +01:00
maintainers = with maintainers; [ dywedir ];
2017-05-24 04:12:55 +01:00
};
}