nixpkgs/pkgs/development/tools/database/pgcli/default.nix
Chris Ostrouchov d69246709f pythonPackages.prompt_toolkit: 1.0.15 -> 2.0.7
Created a version to prompt_toolkit_1 for legacy ipython
2018-11-21 12:38:54 +01:00

34 lines
863 B
Nix

{ lib, pythonPackages, fetchFromGitHub }:
pythonPackages.buildPythonApplication rec {
pname = "pgcli";
version = "2.0.0";
src = pythonPackages.fetchPypi {
inherit pname version;
sha256 = "085fna5nc72nfj1gw0m4ia6wzayinqaffmjy3ajldha1727vqwzi";
};
propagatedBuildInputs = with pythonPackages; [
cli-helpers click configobj humanize prompt_toolkit psycopg2
pygments sqlparse pgspecial setproctitle keyring
];
checkInputs = with pythonPackages; [ pytest mock ];
checkPhase = ''
py.test
'';
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;
maintainers = with maintainers; [ dywedir ];
};
}