pgcli: 1.11.0 -> 2.0.0
This commit is contained in:
parent
0270dda6b4
commit
8c8d3c74c5
@ -1,27 +1,25 @@
|
|||||||
{ lib, pythonPackages, fetchFromGitHub }:
|
{ lib, pythonPackages, fetchFromGitHub }:
|
||||||
|
|
||||||
pythonPackages.buildPythonApplication rec {
|
pythonPackages.buildPythonApplication rec {
|
||||||
name = "pgcli-${version}";
|
pname = "pgcli";
|
||||||
version = "1.11.0";
|
version = "2.0.0";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = pythonPackages.fetchPypi {
|
||||||
owner = "dbcli";
|
inherit pname version;
|
||||||
repo = "pgcli";
|
sha256 = "085fna5nc72nfj1gw0m4ia6wzayinqaffmjy3ajldha1727vqwzi";
|
||||||
rev = "v${version}";
|
|
||||||
sha256 = "01qcvl0iwabinq3sb4340js8v3sbwkbxi64sg4xy76wj8xr6kgsk";
|
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = with pythonPackages; [ pytest mock ];
|
|
||||||
checkPhase = ''
|
|
||||||
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'
|
|
||||||
'';
|
|
||||||
|
|
||||||
propagatedBuildInputs = with pythonPackages; [
|
propagatedBuildInputs = with pythonPackages; [
|
||||||
cli-helpers click configobj humanize prompt_toolkit psycopg2
|
cli-helpers click configobj humanize prompt_toolkit_2 psycopg2
|
||||||
pygments sqlparse pgspecial setproctitle keyring
|
pygments sqlparse pgspecial setproctitle keyring
|
||||||
];
|
];
|
||||||
|
|
||||||
|
checkInputs = with pythonPackages; [ pytest mock ];
|
||||||
|
|
||||||
|
checkPhase = ''
|
||||||
|
py.test
|
||||||
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Command-line interface for PostgreSQL";
|
description = "Command-line interface for PostgreSQL";
|
||||||
longDescription = ''
|
longDescription = ''
|
||||||
|
Loading…
x
Reference in New Issue
Block a user