blob: 6ad9c2e20c9360db90d3b174ecf790b58fbfc9dd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
{
lib,
buildPythonPackage,
fetchPypi,
setuptools,
sanic,
sanic-testing,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "sanic-auth";
version = "0.3.0";
pyproject = true;
src = fetchPypi {
pname = "Sanic-Auth";
inherit version;
hash = "sha256-KAU066S70GO1hURQrW0n+L5/kFzpgen341hlia0ngjU=";
};
build-system = [ setuptools ];
dependencies = [ sanic ];
nativeCheckInputs = [
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-fail "allow_redirects=False" "follow_redirects=False"
'';
pythonImportsCheck = [ "sanic_auth" ];
meta = {
description = "Simple Authentication for Sanic";
homepage = "https://github.com/pyx/sanic-auth/";
license = lib.licenses.bsdOriginal;
maintainers = with lib.maintainers; [ arnoldfarkas ];
};
}
|