summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/httpx-oauth/default.nix
blob: 74597406118803f6e6b743c50d93ff44358da06d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
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.16.1";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "frankie567";
    repo = "httpx-oauth";
    tag = "v${version}";
    hash = "sha256-/2IBAEZrK0Do7t9g+MWsKuIlcg0ANCfOoagVwTbBso8=";
  };

  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 ];
  };
}