Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 20.09 574 B view raw
1{ stdenv, lib, buildPythonPackage, isPyPy, fetchPypi, postgresql, openssl }: 2 3buildPythonPackage rec { 4 pname = "psycopg2"; 5 version = "2.8.5"; 6 7 disabled = isPyPy; 8 9 src = fetchPypi { 10 inherit pname version; 11 sha256 = "f7d46240f7a1ae1dd95aab38bd74f7428d46531f69219954266d669da60c0818"; 12 }; 13 14 buildInputs = lib.optional stdenv.isDarwin openssl; 15 nativeBuildInputs = [ postgresql ]; 16 17 doCheck = false; 18 19 meta = with lib; { 20 description = "PostgreSQL database adapter for the Python programming language"; 21 license = with licenses; [ gpl2 zpl20 ]; 22 }; 23}