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
49
pkgs/development/python-modules/sanic-auth/default.nix
Normal file
49
pkgs/development/python-modules/sanic-auth/default.nix
Normal file
|
|
@ -0,0 +1,49 @@
|
|||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, sanic
|
||||
, sanic-testing
|
||||
, pytestCheckHook
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "Sanic-Auth";
|
||||
version = "0.3.0";
|
||||
format = "setuptools";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "0dc24ynqjraqwgvyk0g9bj87zgpq4xnssl24hnsn7l5vlkmk8198";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
sanic
|
||||
];
|
||||
|
||||
checkInputs = [
|
||||
pytestCheckHook
|
||||
sanic-testing
|
||||
];
|
||||
|
||||
disabledTests = [
|
||||
# incompatible with sanic>=22.3.0
|
||||
"test_login_required"
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
# Support for httpx>=0.20.0
|
||||
substituteInPlace tests/test_auth.py \
|
||||
--replace "allow_redirects=False" "follow_redirects=False"
|
||||
'';
|
||||
|
||||
pythonImportsCheck = [
|
||||
"sanic_auth"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Simple Authentication for Sanic";
|
||||
homepage = "https://github.com/pyx/sanic-auth/";
|
||||
license = licenses.bsdOriginal;
|
||||
maintainers = with maintainers; [ arnoldfarkas ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue