nixpkgs/pkgs/development/python-modules/psycopg2/default.nix

24 lines
574 B
Nix
Raw Normal View History

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