-
-
Notifications
You must be signed in to change notification settings - Fork 14.8k
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1067,6 +1067,12 @@ | |
githubId = 3465841; | ||
name = "Boris Sukholitko"; | ||
}; | ||
bqv = { | ||
email = "[email protected]"; | ||
github = "bqv"; | ||
githubId = 822863; | ||
name = "Tony Olagbaiye"; | ||
}; | ||
bradediger = { | ||
email = "[email protected]"; | ||
github = "bradediger"; | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
{ stdenv, lib, buildPythonPackage, fetchPypi, cffi, postgresql, openssl, six }: | ||
|
||
buildPythonPackage rec { | ||
pname = "psycopg2cffi"; | ||
version = "2.8.1"; | ||
|
||
src = fetchPypi { | ||
inherit pname version; | ||
sha256 = "0yc0cxxkfr35kd959wsagxfhy6ikbix71rp9x0rmn858fxa4vapw"; | ||
}; | ||
|
||
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 commentThe 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 commentThe 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... |
||
|
||
meta = with lib; { | ||
description = "PostgreSQL database adapter for the Python programming language"; | ||
license = with licenses; [ lgpl3 ]; | ||
bqv marked this conversation as resolved.
Show resolved
Hide resolved
|
||
homepage = "http://github.com/chtd/psycopg2cffi/"; | ||
maintainers = with maintainers; [ bqv ]; | ||
}; | ||
} |
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?