Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update Python packages psycopg2, sqlparse, and pgcli #70257

Merged
merged 3 commits into from Oct 5, 2019

Conversation

peti
Copy link
Member

@peti peti commented Oct 2, 2019

  • pgcli: update from 2.0.2 to 2.1.1
  • sqlparse: update from 0.2.4 to 0.3.0
  • psycopg2: update from 2.7.7 to 2.8.3

We have one test suite failure in pgcli, which looks harmless, though. I have reported it upstream in dbcli/pgcli#1104.

Copy link
Contributor

@jonringer jonringer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

regression in the pgcli package

  Collecting psycopg2<2.8,>=2.7.4 (from pgcli==2.0.2)
    ERROR: Could not find a version that satisfies the requirement psycopg2<2.8,>=2.7.4 (from pgcli==2.0.2) (from versions: none)
  ERROR: No matching distribution found for psycopg2<2.8,>=2.7.4 (from pgcli==2.0.2)
cannot build derivation '/nix/store/d2w26j4lycc517ky4zn356xl9dj52sb2-env.drv': 1 dependencies couldn't be built
[35 built (1 failed), 88 copied (454.9 MiB), 136.1 MiB DL]
error: build of '/nix/store/d2w26j4lycc517ky4zn356xl9dj52sb2-env.drv' failed
https://github.com/NixOS/nixpkgs/pull/70257
1 package failed to build:
pgcli

24 package were build:
datadog-agent dd-agent matrix-synapse paperless pyrseas python27Packages.ase python27Packages.djmail python27Packages.pgspecial python27Packages.psycopg2 python37Packages.alerta-server python37Packages.ase python37Packages.boltztrap2 python37Packages.dftfit python37Packages.djmail python37Packages.hyperkitty python37Packages.lammps-cython python37Packages.mailman-web python37Packages.patator python37Packages.pgspecial python37Packages.psycopg2 pytrainer qgis qgis-unwrapped trytond

@jonringer
Copy link
Contributor

please add

  postPatch = ''
    substituteInPlace setup.py \
      --replace "psycopg2 >= 2.7.4,<2.8" "psycopg2"
  '';

to pgcli/default.nix :)

@peti peti changed the title python-psycopg2: update from 2.7.7 to 2.8.3 update Python packages psycopg2, sqlparse, and pgcli Oct 4, 2019
@peti
Copy link
Member Author

peti commented Oct 4, 2019

please add

  postPatch = ''
    substituteInPlace setup.py \
      --replace "psycopg2 >= 2.7.4,<2.8" "psycopg2"
  '';

to pgcli/default.nix :)

I saw that there is a newer version of pgcli, too. Updating to the latest version fixed the issue as well.

@peti
Copy link
Member Author

peti commented Oct 4, 2019

@GrahamcOfBorg build python3Packages.pgcli python3Packages.sqlparse python3Packages.psycopg2

@ofborg ofborg bot requested a review from dywedir October 4, 2019 09:41
@peti peti merged commit 35521b4 into NixOS:master Oct 5, 2019
@peti peti deleted the t/update-psycopg2 branch October 5, 2019 19:48
dtzWill pushed a commit to dtzWill/nixpkgs that referenced this pull request Oct 5, 2019
* python-psycopg2: update from 2.7.7 to 2.8.3

* python-sqlparse: update from 0.2.4 to 0.3.0

* pgcli: update from 2.0.2 to 2.1.1

(cherry picked from commit 35521b4)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants