2018-09-07 11:13:15 +01:00
|
|
|
{ stdenv, lib, buildPythonPackage, isPyPy, fetchPypi, postgresql, openssl }:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "psycopg2";
|
2019-10-24 07:47:42 +01:00
|
|
|
version = "2.8.4";
|
2018-09-07 11:13:15 +01:00
|
|
|
|
|
|
|
disabled = isPyPy;
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-10-24 07:47:42 +01:00
|
|
|
sha256 = "f898e5cc0a662a9e12bde6f931263a1bbd350cfb18e1d5336a12927851825bb6";
|
2018-09-07 11:13:15 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = lib.optional stdenv.isDarwin openssl;
|
2019-02-15 09:08:27 +00:00
|
|
|
nativeBuildInputs = [ postgresql ];
|
2018-09-07 11:13:15 +01:00
|
|
|
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "PostgreSQL database adapter for the Python programming language";
|
|
|
|
license = with licenses; [ gpl2 zpl20 ];
|
|
|
|
};
|
|
|
|
}
|