uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
47
pkgs/development/python-modules/psycopg2/default.nix
Normal file
47
pkgs/development/python-modules/psycopg2/default.nix
Normal file
|
|
@ -0,0 +1,47 @@
|
|||
{ stdenv
|
||||
, lib
|
||||
, buildPythonPackage
|
||||
, pythonOlder
|
||||
, isPyPy
|
||||
, fetchPypi
|
||||
, postgresql
|
||||
, openssl
|
||||
, sphinxHook
|
||||
, sphinx-better-theme
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "psycopg2";
|
||||
version = "2.9.3";
|
||||
outputs = [ "out" "doc" ];
|
||||
|
||||
# Extension modules don't work well with PyPy. Use psycopg2cffi instead.
|
||||
# c.f. https://github.com/NixOS/nixpkgs/pull/104151#issuecomment-729750892
|
||||
disabled = pythonOlder "3.6" || isPyPy;
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "8e841d1bf3434da985cc5ef13e6f75c8981ced601fd70cc6bf33351b91562981";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
postgresql
|
||||
sphinxHook
|
||||
sphinx-better-theme
|
||||
];
|
||||
|
||||
buildInputs = lib.optionals stdenv.isDarwin [
|
||||
openssl
|
||||
];
|
||||
|
||||
# requires setting up a postgresql database
|
||||
doCheck = false;
|
||||
|
||||
sphinxRoot = "doc/src";
|
||||
|
||||
meta = with lib; {
|
||||
description = "PostgreSQL database adapter for the Python programming language";
|
||||
homepage = "https://www.psycopg.org";
|
||||
license = with licenses; [ lgpl3 zpl20 ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue