54 lines
1 KiB
Nix
54 lines
1 KiB
Nix
|
{
|
||
|
lib,
|
||
|
buildPythonPackage,
|
||
|
fastapi,
|
||
|
fetchFromGitHub,
|
||
|
hatchling,
|
||
|
hatch-regex-commit,
|
||
|
httpx,
|
||
|
pytest-asyncio,
|
||
|
pytest-cov-stub,
|
||
|
pytest-mock,
|
||
|
pytestCheckHook,
|
||
|
respx,
|
||
|
}:
|
||
|
|
||
|
buildPythonPackage rec {
|
||
|
pname = "httpx-oauth";
|
||
|
version = "0.15.1";
|
||
|
pyproject = true;
|
||
|
|
||
|
src = fetchFromGitHub {
|
||
|
owner = "frankie567";
|
||
|
repo = "httpx-oauth";
|
||
|
rev = "refs/tags/v${version}";
|
||
|
hash = "sha256-f3X3kSw7elTScCA3bNggwXyyHORre6Xzup/D0kgn4DQ=";
|
||
|
};
|
||
|
|
||
|
build-system = [
|
||
|
hatchling
|
||
|
hatch-regex-commit
|
||
|
];
|
||
|
|
||
|
dependencies = [ httpx ];
|
||
|
|
||
|
nativeCheckInputs = [
|
||
|
fastapi
|
||
|
pytest-asyncio
|
||
|
pytest-cov-stub
|
||
|
pytest-mock
|
||
|
pytestCheckHook
|
||
|
respx
|
||
|
];
|
||
|
|
||
|
pythonImportsCheck = [ "httpx_oauth" ];
|
||
|
|
||
|
meta = with lib; {
|
||
|
description = "Async OAuth client using HTTPX";
|
||
|
homepage = "https://github.com/frankie567/httpx-oauth";
|
||
|
changelog = "https://github.com/frankie567/httpx-oauth/releases/tag/v${version}";
|
||
|
license = licenses.mit;
|
||
|
maintainers = with maintainers; [ SuperSandro2000 ];
|
||
|
};
|
||
|
}
|