2018-09-07 12:13:15 +02:00
|
|
|
{ stdenv, lib, buildPythonPackage, isPyPy, fetchPypi, postgresql, openssl }:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "psycopg2";
|
2018-11-20 11:58:36 +01:00
|
|
|
version = "2.7.6.1";
|
2018-09-07 12:13:15 +02:00
|
|
|
|
|
|
|
disabled = isPyPy;
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2018-11-20 11:58:36 +01:00
|
|
|
sha256 = "27959abe64ca1fc6d8cd11a71a1f421d8287831a3262bd4cacd43bbf43cc3c82";
|
2018-09-07 12:13:15 +02: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 ];
|
|
|
|
};
|
|
|
|
}
|