Skip to content

Commit

Permalink
python312Packages.httpx-oauth: init at 0.15.1
Browse files Browse the repository at this point in the history
  • Loading branch information
SuperSandro2000 committed Nov 3, 2024
1 parent c220dfd commit b27fdd1
Show file tree
Hide file tree
Showing 2 changed files with 55 additions and 0 deletions.
53 changes: 53 additions & 0 deletions pkgs/development/python-modules/httpx-oauth/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
{
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 ];
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/python-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5899,6 +5899,8 @@ self: super: with self; {

httpx-ntlm = callPackage ../development/python-modules/httpx-ntlm { };

httpx-oauth = callPackage ../development/python-modules/httpx-oauth { };

httpx-socks = callPackage ../development/python-modules/httpx-socks { };

httpx-sse = callPackage ../development/python-modules/httpx-sse { };
Expand Down

0 comments on commit b27fdd1

Please sign in to comment.