2024-01-02 11:29:13 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, httpx
|
|
|
|
, pyjwt
|
2024-02-29 20:09:43 +00:00
|
|
|
, pytest-asyncio
|
2024-01-02 11:29:13 +00:00
|
|
|
, pytest-httpx
|
|
|
|
, pytestCheckHook
|
2024-02-29 20:09:43 +00:00
|
|
|
, pythonOlder
|
|
|
|
, setuptools
|
|
|
|
, setuptools-scm
|
|
|
|
, time-machine
|
2024-01-02 11:29:13 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "httpx-auth";
|
2024-02-29 20:09:43 +00:00
|
|
|
version = "0.21.0";
|
2024-01-02 11:29:13 +00:00
|
|
|
pyproject = true;
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.9";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Colin-b";
|
|
|
|
repo = "httpx_auth";
|
|
|
|
rev = "refs/tags/v${version}";
|
2024-02-29 20:09:43 +00:00
|
|
|
hash = "sha256-tKEYFoIHxiBG18JWyCHzQEwUvrWk/zuCWqj1uYsmh84=";
|
2024-01-02 11:29:13 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
setuptools
|
|
|
|
setuptools-scm
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
httpx
|
|
|
|
];
|
|
|
|
|
|
|
|
nativeCheckInputs = [
|
|
|
|
pyjwt
|
2024-02-29 20:09:43 +00:00
|
|
|
pytest-asyncio
|
2024-01-02 11:29:13 +00:00
|
|
|
pytest-httpx
|
|
|
|
pytestCheckHook
|
2024-02-29 20:09:43 +00:00
|
|
|
time-machine
|
2024-01-02 11:29:13 +00:00
|
|
|
];
|
|
|
|
|
2024-02-29 20:09:43 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"httpx_auth"
|
|
|
|
];
|
2024-01-02 11:29:13 +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 ];
|
|
|
|
};
|
|
|
|
}
|