depot/third_party/nixpkgs/pkgs/development/python-modules/psycopg2/default.nix
Default email 6ae7ad3cc5 Project import generated by Copybara.
GitOrigin-RevId: a322b32e9d74fb476944ff6cfb55833dc69cfaaa
2020-11-19 01:13:47 +01:00

23 lines
574 B
Nix

{ stdenv, lib, buildPythonPackage, isPyPy, fetchPypi, postgresql, openssl }:
buildPythonPackage rec {
pname = "psycopg2";
version = "2.8.6";
disabled = isPyPy;
src = fetchPypi {
inherit pname version;
sha256 = "fb23f6c71107c37fd667cb4ea363ddeb936b348bbd6449278eb92c189699f543";
};
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 ];
};
}