pgcli: 2.0.0 -> 2.0.1

Changelog: https://github.com/dbcli/pgcli/blob/master/changelog.rst#201
Major feature of note is Python 3.7 support.

Also default to using Python 3 because this is an application.
This commit is contained in:
Aneesh Agrawal 2018-11-29 23:19:51 -08:00 committed by worldofpeace
parent 007dfa8adc
commit 3dbbd9f8c2

View File

@ -1,23 +1,27 @@
{ lib, pythonPackages, fetchFromGitHub }: { lib, python3Packages, fetchFromGitHub }:
pythonPackages.buildPythonApplication rec { python3Packages.buildPythonApplication rec {
pname = "pgcli"; pname = "pgcli";
version = "2.0.0"; version = "2.0.1";
src = pythonPackages.fetchPypi { # Python 2 won't have prompt_toolkit 2.x.x
# See: https://github.com/NixOS/nixpkgs/blob/f49e2ad3657dede09dc998a4a98fd5033fb52243/pkgs/top-level/python-packages.nix#L3408
disabled = python3Packages.isPy27;
src = python3Packages.fetchPypi {
inherit pname version; inherit pname version;
sha256 = "085fna5nc72nfj1gw0m4ia6wzayinqaffmjy3ajldha1727vqwzi"; sha256 = "149naq3gp1n922vag7vixs0hd114bpbmbmv70k4kzc1q7jz748l2";
}; };
propagatedBuildInputs = with pythonPackages; [ propagatedBuildInputs = with python3Packages; [
cli-helpers click configobj humanize prompt_toolkit psycopg2 cli-helpers click configobj humanize prompt_toolkit psycopg2
pygments sqlparse pgspecial setproctitle keyring pygments sqlparse pgspecial setproctitle keyring
]; ];
checkInputs = with pythonPackages; [ pytest mock ]; checkInputs = with python3Packages; [ pytest mock ];
checkPhase = '' checkPhase = ''
py.test pytest
''; '';
meta = with lib; { meta = with lib; {