blob: beb1ee9db360b445919b623ef3509b51d1f71f7c (
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
51
52
53
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
httpx,
pyjwt,
pytest-asyncio,
pytest-httpx,
pytestCheckHook,
setuptools,
setuptools-scm,
time-machine,
}:
buildPythonPackage rec {
pname = "httpx-auth";
version = "0.23.1";
pyproject = true;
src = fetchFromGitHub {
owner = "Colin-b";
repo = "httpx_auth";
tag = "v${version}";
hash = "sha256-wrPKUAGBzzuWNtwYtTtqOhb1xqYgc83uxn4rjbfDPmo=";
};
nativeBuildInputs = [
setuptools
setuptools-scm
];
propagatedBuildInputs = [ httpx ];
nativeCheckInputs = [
pyjwt
pytest-asyncio
pytest-httpx
pytestCheckHook
time-machine
];
pythonImportsCheck = [ "httpx_auth" ];
__darwinAllowLocalNetworking = true;
meta = {
description = "Authentication classes to be used with httpx";
homepage = "https://github.com/Colin-b/httpx_auth";
changelog = "https://github.com/Colin-b/httpx_auth/blob/${src.tag}/CHANGELOG.md";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ natsukium ];
};
}
|