-
-
Notifications
You must be signed in to change notification settings - Fork 14.4k
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
Conversation
Edit: Nevermind. The issue is unrelated to this package (#39356), and upstream from nixpkgs anyway (pypa/pip#7629) |
|
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; |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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; |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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?
No longer interested in this package... |
Motivation for this change
psycopg2cffi for pypy3
Things done
sandbox
innix.conf
on non-NixOS linux)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
./result/bin/
)nix path-info -S
before and after)