anki-bin: 24.06.3 -> 24.11 (#360722)
[NixPkgs.git] / pkgs / development / python-modules / aioprometheus / default.nix
blob2dc49ae5b1f8242cc0fc9a0ab6c4a31830c045b3
2   lib,
3   buildPythonPackage,
4   fetchFromGitHub,
5   orjson,
6   quantile-python,
7   aiohttp,
8   aiohttp-basicauth,
9   starlette,
10   quart,
11   pytestCheckHook,
12   httpx,
13   fastapi,
14   uvicorn,
15   pythonOlder,
18 buildPythonPackage rec {
19   pname = "aioprometheus";
20   version = "unstable-2023-03-14";
21   format = "setuptools";
23   disabled = pythonOlder "3.8";
25   src = fetchFromGitHub {
26     owner = "claws";
27     repo = "aioprometheus";
28     rev = "4786678b413d166c0b6e0041558d11bc1a7097b2";
29     hash = "sha256-2z68rQkMjYqkszg5Noj9owWUWQGOEp/91RGiWiyZVOY=";
30   };
32   propagatedBuildInputs = [
33     orjson
34     quantile-python
35   ];
37   optional-dependencies = {
38     aiohttp = [ aiohttp ];
39     starlette = [ starlette ];
40     quart = [ quart ];
41   };
43   nativeCheckInputs = [
44     pytestCheckHook
45     aiohttp-basicauth
46     httpx
47     fastapi
48     uvicorn
49   ] ++ lib.flatten (builtins.attrValues optional-dependencies);
51   pythonImportsCheck = [ "aioprometheus" ];
53   meta = with lib; {
54     description = "Prometheus Python client library for asyncio-based applications";
55     homepage = "https://github.com/claws/aioprometheus";
56     changelog = "https://github.com/claws/aioprometheus/blob/${src.rev}/CHANGELOG.md";
57     license = licenses.mit;
58     maintainers = with maintainers; [ mbalatsko ];
59   };