2023-11-21 03:50:04 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
httpx,
|
|
|
|
pyjwt,
|
2024-02-23 20:29:34 +00:00
|
|
|
pytest-asyncio,
|
2023-11-21 03:50:04 +00:00
|
|
|
pytest-httpx,
|
|
|
|
pytestCheckHook,
|
2024-02-23 20:29:34 +00:00
|
|
|
pythonOlder,
|
|
|
|
setuptools,
|
|
|
|
setuptools-scm,
|
|
|
|
time-machine,
|
2023-11-21 03:50:04 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "httpx-auth";
|
2024-03-07 01:53:13 +00:00
|
|
|
version = "0.22.0";
|
2023-11-21 03:50:04 +00:00
|
|
|
pyproject = true;
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.9";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Colin-b";
|
|
|
|
repo = "httpx_auth";
|
|
|
|
rev = "refs/tags/v${version}";
|
2024-03-07 01:53:13 +00:00
|
|
|
hash = "sha256-7azPyep+R55CdRwbdo20y4YNV47c8CwXgOj4q4t25oc=";
|
2023-11-21 03:50:04 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
setuptools
|
|
|
|
setuptools-scm
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ httpx ];
|
|
|
|
|
|
|
|
nativeCheckInputs = [
|
|
|
|
pyjwt
|
2024-02-23 20:29:34 +00:00
|
|
|
pytest-asyncio
|
2023-11-21 03:50:04 +00:00
|
|
|
pytest-httpx
|
|
|
|
pytestCheckHook
|
2024-02-23 20:29:34 +00:00
|
|
|
time-machine
|
2023-11-21 03:50:04 +00:00
|
|
|
];
|
|
|
|
|
2024-02-23 20:29:34 +00:00
|
|
|
pythonImportsCheck = [ "httpx_auth" ];
|
2023-11-21 03:50:04 +00:00
|
|
|
|
|
|
|
__darwinAllowLocalNetworking = true;
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
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.rev}/CHANGELOG.md";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ natsukium ];
|
|
|
|
};
|
|
|
|
}
|