2018-09-07 11:13:15 +01:00
|
|
|
{ stdenv, lib, buildPythonPackage, isPyPy, fetchPypi, postgresql, openssl }:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "psycopg2";
|
2019-02-14 07:37:25 +00:00
|
|
|
version = "2.7.7";
|
2018-09-07 11:13:15 +01:00
|
|
|
|
|
|
|
disabled = isPyPy;
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-02-14 07:37:25 +00:00
|
|
|
sha256 = "f4526d078aedd5187d0508aa5f9a01eae6a48a470ed678406da94b4cd6524b7e";
|
2018-09-07 11:13:15 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = lib.optional stdenv.isDarwin openssl;
|
|
|
|
propagatedBuildInputs = [ postgresql ];
|
|
|
|
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "PostgreSQL database adapter for the Python programming language";
|
|
|
|
license = with licenses; [ gpl2 zpl20 ];
|
|
|
|
};
|
|
|
|
}
|