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
48
pkgs/development/python-modules/httpx-ntlm/default.nix
Normal file
48
pkgs/development/python-modules/httpx-ntlm/default.nix
Normal file
|
|
@ -0,0 +1,48 @@
|
|||
{ lib
|
||||
, buildPythonPackage
|
||||
, cryptography
|
||||
, fetchPypi
|
||||
, httpx
|
||||
, pyspnego
|
||||
, pythonOlder
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "httpx-ntlm";
|
||||
version = "1.0.0";
|
||||
format = "setuptools";
|
||||
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
src = fetchPypi {
|
||||
pname = "httpx_ntlm";
|
||||
inherit version;
|
||||
hash = "sha256-pv/OxgcO0JWk2nCZp+bKlOdX7NqV6V5xZRDy5dd13qQ=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
cryptography
|
||||
httpx
|
||||
pyspnego
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace setup.py \
|
||||
--replace "pyspnego==0.3.*" "pyspnego>=0.3.*" \
|
||||
--replace "cryptography==36.0.*" "cryptography>=36.0.*"
|
||||
'';
|
||||
|
||||
# https://github.com/ulodciv/httpx-ntlm/issues/5
|
||||
doCheck = false;
|
||||
|
||||
pythonImportsCheck = [
|
||||
"httpx_ntlm"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "NTLM authentication support for HTTPX";
|
||||
homepage = "https://github.com/ulodciv/httpx-ntlm";
|
||||
license = licenses.isc;
|
||||
maintainers = with maintainers; [ fab ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue