Files
nixpkgs/pkgs/development/python-modules/httpx-oauth/default.nix
2026-05-15 10:47:31 +00:00

54 lines
1.0 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.17.0";
pyproject = true;
src = fetchFromGitHub {
owner = "frankie567";
repo = "httpx-oauth";
tag = "v${version}";
hash = "sha256-I6ffcbmnNjJUGuDctFQo5m1HE6N60wErSJUDcXL9TRw=";
};
build-system = [
hatchling
hatch-regex-commit
];
dependencies = [ httpx ];
nativeCheckInputs = [
fastapi
pytest-asyncio
pytest-cov-stub
pytest-mock
pytestCheckHook
respx
];
pythonImportsCheck = [ "httpx_oauth" ];
meta = {
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 = lib.licenses.mit;
maintainers = with lib.maintainers; [ SuperSandro2000 ];
};
}