Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / sanic-auth / default.nix
blob23b38820ff22fc6949d40f89963ace2906c4c76e
1 { lib
2 , buildPythonPackage
3 , fetchPypi
4 , sanic
5 , sanic-testing
6 , pytestCheckHook
7 }:
9 buildPythonPackage rec {
10   pname = "sanic-auth";
11   version = "0.3.0";
12   format = "setuptools";
14   src = fetchPypi {
15     pname = "Sanic-Auth";
16     inherit version;
17     sha256 = "0dc24ynqjraqwgvyk0g9bj87zgpq4xnssl24hnsn7l5vlkmk8198";
18   };
20   propagatedBuildInputs = [
21     sanic
22   ];
24   nativeCheckInputs = [
25     pytestCheckHook
26     sanic-testing
27   ];
29   disabledTests = [
30     # incompatible with sanic>=22.3.0
31     "test_login_required"
32   ];
34   postPatch = ''
35     # Support for httpx>=0.20.0
36     substituteInPlace tests/test_auth.py \
37       --replace "allow_redirects=False" "follow_redirects=False"
38   '';
40   pythonImportsCheck = [
41     "sanic_auth"
42   ];
44   meta = with lib; {
45     description = "Simple Authentication for Sanic";
46     homepage = "https://github.com/pyx/sanic-auth/";
47     license = licenses.bsdOriginal;
48     maintainers = with maintainers; [ arnoldfarkas ];
49   };