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

34 lines
863 B
Nix
Raw Normal View History

2017-05-24 03:12:55 +00:00
{ lib, pythonPackages, fetchFromGitHub }:
pythonPackages.buildPythonApplication rec {
2018-11-07 03:37:44 +00:00
pname = "pgcli";
version = "2.0.0";
2017-05-24 03:12:55 +00:00
2018-11-07 03:37:44 +00:00
src = pythonPackages.fetchPypi {
inherit pname version;
sha256 = "085fna5nc72nfj1gw0m4ia6wzayinqaffmjy3ajldha1727vqwzi";
2017-05-24 03:12:55 +00:00
};
propagatedBuildInputs = with pythonPackages; [
cli-helpers click configobj humanize prompt_toolkit psycopg2
2018-09-18 11:01:44 +00:00
pygments sqlparse pgspecial setproctitle keyring
2017-05-24 03:12:55 +00:00
];
2018-11-07 03:37:44 +00:00
checkInputs = with pythonPackages; [ pytest mock ];
checkPhase = ''
py.test
'';
2017-05-24 03:12:55 +00: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 11:01:44 +00:00
maintainers = with maintainers; [ dywedir ];
2017-05-24 03:12:55 +00:00
};
}