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
70
pkgs/development/python-modules/httpcore/default.nix
Normal file
70
pkgs/development/python-modules/httpcore/default.nix
Normal file
|
|
@ -0,0 +1,70 @@
|
|||
{ lib
|
||||
, buildPythonPackage
|
||||
, pythonOlder
|
||||
, fetchFromGitHub
|
||||
, anyio
|
||||
, certifi
|
||||
, h11
|
||||
, h2
|
||||
, pproxy
|
||||
, pytest-asyncio
|
||||
, pytestCheckHook
|
||||
, pytest-cov
|
||||
, pytest-httpbin
|
||||
, sniffio
|
||||
, socksio
|
||||
, trio
|
||||
, trustme
|
||||
, uvicorn
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "httpcore";
|
||||
version = "0.14.7";
|
||||
disabled = pythonOlder "3.6";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "encode";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
sha256 = "sha256-h+3MfP1p/ifN0mF/xxrOKPTjD4Q7WzRh94YO4DYSuXE=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace setup.py \
|
||||
--replace "h11>=0.11,<0.13" "h11>=0.11,<0.14"
|
||||
'';
|
||||
|
||||
propagatedBuildInputs = [
|
||||
anyio
|
||||
certifi
|
||||
h11
|
||||
sniffio
|
||||
];
|
||||
|
||||
passthru.optional-dependencies = {
|
||||
http2 = [ h2 ];
|
||||
socks = [ socksio ];
|
||||
};
|
||||
|
||||
checkInputs = [
|
||||
pproxy
|
||||
pytest-asyncio
|
||||
pytestCheckHook
|
||||
pytest-cov
|
||||
pytest-httpbin
|
||||
trio
|
||||
trustme
|
||||
uvicorn
|
||||
] ++ passthru.optional-dependencies.http2
|
||||
++ passthru.optional-dependencies.socks;
|
||||
|
||||
pythonImportsCheck = [ "httpcore" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "A minimal low-level HTTP client";
|
||||
homepage = "https://github.com/encode/httpcore";
|
||||
license = licenses.bsd3;
|
||||
maintainers = with maintainers; [ ris ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue