From 336a913f4260c7ec2ac9170e37056d40fef44de3 Mon Sep 17 00:00:00 2001 From: Vladyslav Mykhailichenko Date: Tue, 18 Sep 2018 14:00:59 +0300 Subject: [PATCH 1/2] pythonPackages.pgspecial: 1.8.0 -> 1.11.2 --- .../python-modules/pgspecial/default.nix | 25 ++++++++++++++++++ pkgs/top-level/python-packages.nix | 26 +------------------ 2 files changed, 26 insertions(+), 25 deletions(-) create mode 100644 pkgs/development/python-modules/pgspecial/default.nix diff --git a/pkgs/development/python-modules/pgspecial/default.nix b/pkgs/development/python-modules/pgspecial/default.nix new file mode 100644 index 000000000000..84ccea15e98f --- /dev/null +++ b/pkgs/development/python-modules/pgspecial/default.nix @@ -0,0 +1,25 @@ +{ stdenv, buildPythonPackage, fetchPypi, pytest, psycopg2, click, sqlparse }: + +buildPythonPackage rec { + pname = "pgspecial"; + version = "1.11.2"; + + src = fetchPypi { + inherit pname version; + sha256 = "1yq3cmpdcvwsz3nifc0db125433vxbgbpmbhxfj46b9s5k81xs30"; + }; + + buildInputs = [ pytest psycopg2 ]; + propagatedBuildInputs = [ click sqlparse ]; + + checkPhase = '' + find tests -name \*.pyc -delete + py.test tests + ''; + + meta = with stdenv.lib; { + description = "Meta-commands handler for Postgres Database"; + homepage = https://pypi.python.org/pypi/pgspecial; + license = licenses.bsd3; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 7990034af7e8..611e97e69780 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -9458,31 +9458,7 @@ in { }; }; - pgspecial = buildPythonPackage rec { - pname = "pgspecial"; - version = "1.8.0"; - name = "${pname}-${version}"; - - src = fetchPypi { - inherit pname version; - sha256 = "1dwlv3m4jl34zsakmvxg6hgbfv786jl8dcffxsrlnmcpks829xc9"; - }; - - buildInputs = with self; [ pytest psycopg2 ]; - - checkPhase = '' - find tests -name \*.pyc -delete - py.test tests - ''; - - propagatedBuildInputs = with self; [ click sqlparse ]; - - meta = { - description = "Meta-commands handler for Postgres Database"; - homepage = https://pypi.python.org/pypi/pgspecial; - license = licenses.bsd3; - }; - }; + pgspecial = callPackage ../development/python-modules/pgspecial { }; pickleshare = buildPythonPackage rec { version = "0.7.4"; From 56b59b250fce548c415a0557d7da7c2d089dc22d Mon Sep 17 00:00:00 2001 From: Vladyslav Mykhailichenko Date: Tue, 18 Sep 2018 14:01:44 +0300 Subject: [PATCH 2/2] pgcli: 1.6.0 -> 1.10.3 --- .../tools/database/pgcli/default.nix | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) diff --git a/pkgs/development/tools/database/pgcli/default.nix b/pkgs/development/tools/database/pgcli/default.nix index 4ea3589476bd..2926946cd45a 100644 --- a/pkgs/development/tools/database/pgcli/default.nix +++ b/pkgs/development/tools/database/pgcli/default.nix @@ -2,13 +2,13 @@ pythonPackages.buildPythonApplication rec { name = "pgcli-${version}"; - version = "1.6.0"; + version = "1.10.3"; src = fetchFromGitHub { - sha256 = "0f1zv4kwi2991pclf8chrhgjwf8jkqxdh5ndc9qx6igh56iyyncz"; - rev = "v${version}"; - repo = "pgcli"; owner = "dbcli"; + repo = "pgcli"; + rev = "v${version}"; + sha256 = "1qcbv2w036l0gc0li3jpa6amxzqmhv8d1q6wv4pfh0wvl17hqv9r"; }; buildInputs = with pythonPackages; [ pytest mock ]; @@ -18,15 +18,10 @@ pythonPackages.buildPythonApplication rec { ''; propagatedBuildInputs = with pythonPackages; [ - click configobj humanize prompt_toolkit psycopg2 - pygments sqlparse pgspecial setproctitle + cli-helpers click configobj humanize prompt_toolkit psycopg2 + pygments sqlparse pgspecial setproctitle keyring ]; - postPatch = '' - substituteInPlace setup.py --replace "==" ">=" - rm tests/test_rowlimit.py - ''; - meta = with lib; { description = "Command-line interface for PostgreSQL"; longDescription = '' @@ -35,5 +30,6 @@ pythonPackages.buildPythonApplication rec { ''; homepage = https://pgcli.com; license = licenses.bsd3; + maintainers = with maintainers; [ dywedir ]; }; }