pgcli: 3.0.0 -> 3.1.0
This commit is contained in:
parent
1e40e796af
commit
ed7516c96c
@ -1,52 +1,61 @@
|
|||||||
{ buildPythonApplication, lib, fetchPypi, isPy3k, fetchpatch
|
{ stdenv
|
||||||
, cli-helpers, click, configobj, humanize, prompt_toolkit, psycopg2
|
, buildPythonApplication
|
||||||
, pygments, sqlparse, pgspecial, setproctitle, keyring, pytest, mock
|
, fetchPypi
|
||||||
|
, isPy3k
|
||||||
|
, cli-helpers
|
||||||
|
, click
|
||||||
|
, configobj
|
||||||
|
, humanize
|
||||||
|
, prompt_toolkit
|
||||||
|
, psycopg2
|
||||||
|
, pygments
|
||||||
|
, sqlparse
|
||||||
|
, pgspecial
|
||||||
|
, setproctitle
|
||||||
|
, keyring
|
||||||
|
, pendulum
|
||||||
|
, pytestCheckHook
|
||||||
|
, mock
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonApplication rec {
|
buildPythonApplication rec {
|
||||||
pname = "pgcli";
|
pname = "pgcli";
|
||||||
version = "3.0.0";
|
version = "3.1.0";
|
||||||
|
|
||||||
disabled = !isPy3k;
|
disabled = !isPy3k;
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchPypi {
|
||||||
inherit pname version;
|
inherit pname version;
|
||||||
sha256 = "10j01bd031fys1vcihibsi5rrfd8w1kgahpcsbk4l07871c24829";
|
sha256 = "d5b2d803f7e4e7fe679306a000bde5d14d15ec590ddd108f3dc4c0ecad169d2b";
|
||||||
};
|
};
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
cli-helpers click configobj humanize prompt_toolkit psycopg2
|
cli-helpers
|
||||||
pygments sqlparse pgspecial setproctitle keyring
|
click
|
||||||
|
configobj
|
||||||
|
humanize
|
||||||
|
prompt_toolkit
|
||||||
|
psycopg2
|
||||||
|
pygments
|
||||||
|
sqlparse
|
||||||
|
pgspecial
|
||||||
|
setproctitle
|
||||||
|
keyring
|
||||||
|
pendulum
|
||||||
];
|
];
|
||||||
|
|
||||||
patches = [
|
checkInputs = [ pytestCheckHook mock ];
|
||||||
(fetchpatch {
|
|
||||||
name = "enable-sqlparse-4.patch";
|
|
||||||
url = "https://github.com/dbcli/pgcli/pull/1224/commits/55d534d41051887c637b6300e08a9f70e6656020.patch";
|
|
||||||
sha256 = "01r8qc7qzb6mz0xq2xnrgyackbapf43ng6l88qpzd9lw2pwksc8w";
|
|
||||||
includes = [ "pgcli/packages/parseutils/ctes.py" "tests/test_sqlcompletion.py" "setup.py" ];
|
|
||||||
})
|
|
||||||
];
|
|
||||||
|
|
||||||
postPatch = ''
|
disabledTests = stdenv.lib.optionals stdenv.isDarwin [ "test_application_name_db_uri" ];
|
||||||
substituteInPlace setup.py \
|
|
||||||
--replace "prompt_toolkit>=2.0.6,<3.0.0" "prompt_toolkit"
|
|
||||||
'';
|
|
||||||
|
|
||||||
checkInputs = [ pytest mock ];
|
meta = with stdenv.lib; {
|
||||||
|
|
||||||
# `test_application_name_db_uri` fails: https://github.com/dbcli/pgcli/issues/1104
|
|
||||||
checkPhase = ''
|
|
||||||
pytest --deselect=tests/test_main.py::test_application_name_db_uri
|
|
||||||
'';
|
|
||||||
|
|
||||||
meta = with lib; {
|
|
||||||
description = "Command-line interface for PostgreSQL";
|
description = "Command-line interface for PostgreSQL";
|
||||||
longDescription = ''
|
longDescription = ''
|
||||||
Rich command-line interface for PostgreSQL with auto-completion and
|
Rich command-line interface for PostgreSQL with auto-completion and
|
||||||
syntax highlighting.
|
syntax highlighting.
|
||||||
'';
|
'';
|
||||||
homepage = "https://pgcli.com";
|
homepage = "https://pgcli.com";
|
||||||
|
changelog = "https://github.com/dbcli/pgcli/blob/v${version}/changelog.rst";
|
||||||
license = licenses.bsd3;
|
license = licenses.bsd3;
|
||||||
maintainers = with maintainers; [ dywedir ];
|
maintainers = with maintainers; [ dywedir ];
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user