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

pythonPackages.psycopg2cffi: init at 2.8.1 #84466

Closed
wants to merge 2 commits into from
Closed

pythonPackages.psycopg2cffi: init at 2.8.1 #84466

wants to merge 2 commits into from

Conversation

bqv
Copy link
Contributor

@bqv bqv commented Apr 6, 2020

Motivation for this change

psycopg2cffi for pypy3

Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
  • Built on platform(s)
    • NixOS
    • macOS
    • other Linux distributions
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Determined the impact on package closure size (by running nix path-info -S before and after)
  • Ensured that relevant documentation is up to date
  • Fits CONTRIBUTING.md.

@bqv
Copy link
Contributor Author

bqv commented Apr 6, 2020

(help)

Edit: Nevermind. The issue is unrelated to this package (#39356), and upstream from nixpkgs anyway (pypa/pip#7629)

@bqv bqv marked this pull request as ready for review April 6, 2020 14:37
@bqv bqv requested review from FRidh and jonringer as code owners April 6, 2020 14:37
@jonringer
Copy link
Contributor

undefined variable 'cffi' at /home/jon/.cache/nixpkgs-review/pr-84466-1/nixpkgs/pkgs/development/python-modules/psycopg2cffi/default.nix:13:25

@bqv
Copy link
Contributor Author

bqv commented Apr 7, 2020

undefined variable 'cffi'

My bad, added now. I forgot hydra doesn't compile with pypy by default so this is supposedly mergeable now.

buildInputs = [ six ] ++ lib.optional stdenv.isDarwin openssl;
nativeBuildInputs = [ cffi postgresql ];

doCheck = false;
Copy link
Member

Choose a reason for hiding this comment

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

Why are the tests disabled? Please include a comment.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The same reason they're disabled here (with no comment) https://github.com/NixOS/nixpkgs/blob/master/pkgs/development/python-modules/psycopg2/default.nix#L17 since this is a fork - you'd presumably know the reason better than me...

sha256 = "0yc0cxxkfr35kd959wsagxfhy6ikbix71rp9x0rmn858fxa4vapw";
};

buildInputs = [ six ] ++ lib.optional stdenv.isDarwin openssl;
Copy link
Member

Choose a reason for hiding this comment

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

are six and cffi only needed during build-time, not run-time?

Copy link
Member

Choose a reason for hiding this comment

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

Same with openssl. With cffi one opens a library, so its important the Python library knows where to find it. Often it needs to be hardcoded.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'm not entirely sure, since for my use case this doesn't currently work. What would I have to change if it were?

@bqv
Copy link
Contributor Author

bqv commented Apr 17, 2020

No longer interested in this package...

@bqv bqv closed this Apr 17, 2020
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

3 participants