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
|
|
@ -0,0 +1,55 @@
|
|||
{ lib
|
||||
, buildPythonPackage
|
||||
, cryptography
|
||||
, fetchFromGitHub
|
||||
, pykerberos
|
||||
, pyspnego
|
||||
, pytest-mock
|
||||
, pytestCheckHook
|
||||
, pythonOlder
|
||||
, requests
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "requests-kerberos";
|
||||
version = "0.14.0";
|
||||
format = "setuptools";
|
||||
|
||||
disabled = pythonOlder "3.6";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "requests";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
hash = "sha256-Y9dTzFCgVmSnbnTE0kEfjpEkXDEA+uOqFHLkSC27YGg=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
cryptography
|
||||
requests
|
||||
pykerberos
|
||||
pyspnego
|
||||
];
|
||||
|
||||
checkInputs = [
|
||||
pytestCheckHook
|
||||
pytest-mock
|
||||
];
|
||||
|
||||
# avoid needing to package krb5
|
||||
postPatch = ''
|
||||
substituteInPlace setup.py \
|
||||
--replace "pyspnego[kerberos]" "pyspnego"
|
||||
'';
|
||||
|
||||
pythonImportsCheck = [
|
||||
"requests_kerberos"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "An authentication handler for using Kerberos with Python Requests";
|
||||
homepage = "https://github.com/requests/requests-kerberos";
|
||||
license = licenses.isc;
|
||||
maintainers = with maintainers; [ catern ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue