1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 httpx,
6 pyjwt,
7 pytest-asyncio,
8 pytest-httpx,
9 pytestCheckHook,
10 pythonOlder,
11 setuptools,
12 setuptools-scm,
13 time-machine,
14}:
15
16buildPythonPackage rec {
17 pname = "httpx-auth";
18 version = "0.23.1";
19 pyproject = true;
20
21 disabled = pythonOlder "3.9";
22
23 src = fetchFromGitHub {
24 owner = "Colin-b";
25 repo = "httpx_auth";
26 tag = "v${version}";
27 hash = "sha256-wrPKUAGBzzuWNtwYtTtqOhb1xqYgc83uxn4rjbfDPmo=";
28 };
29
30 nativeBuildInputs = [
31 setuptools
32 setuptools-scm
33 ];
34
35 propagatedBuildInputs = [ httpx ];
36
37 nativeCheckInputs = [
38 pyjwt
39 pytest-asyncio
40 pytest-httpx
41 pytestCheckHook
42 time-machine
43 ];
44
45 pythonImportsCheck = [ "httpx_auth" ];
46
47 __darwinAllowLocalNetworking = true;
48
49 meta = with lib; {
50 description = "Authentication classes to be used with httpx";
51 homepage = "https://github.com/Colin-b/httpx_auth";
52 changelog = "https://github.com/Colin-b/httpx_auth/blob/${src.tag}/CHANGELOG.md";
53 license = licenses.mit;
54 maintainers = with maintainers; [ natsukium ];
55 };
56}