1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-22 23:10:02 +00:00
nixpkgs/pkgs/development/tools/database/pgcli/default.nix

34 lines
865 B
Nix
Raw Normal View History

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