mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-21 13:13:33 +00:00
35521b42c2
* python-psycopg2: update from 2.7.7 to 2.8.3 * python-sqlparse: update from 0.2.4 to 0.3.0 * pgcli: update from 2.0.2 to 2.1.1
24 lines
562 B
Nix
24 lines
562 B
Nix
{ stdenv, lib, buildPythonPackage, isPyPy, fetchPypi, postgresql, openssl }:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "psycopg2";
|
|
version = "2.8.3";
|
|
|
|
disabled = isPyPy;
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "0ms4kx0p5n281l89awccix4d05ybmdngnjjpi9jbzd0rhf1nwyl9";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|