Files
nixpkgs/pkgs/development/python-modules/aioprometheus/default.nix
T
Robert Schütz 1a04744f74 treewide: remove superfluous disabled
There is no need to disable Python packages for Python versions that are
no longer in Nixpkgs.
This change was generated using the following script:

    pattern='^\s*disabled\s*=\s*pythonOlder\s*"3\.\([0-9]\|10\)"\s*;\s*$'
    for f in $(find -name '*.nix'); do
        grep -q "$pattern" "$f" || continue
        sed -i "/$pattern/d" "$f"
        if [ $(grep -c pythonOlder "$f") == 1 ]; then
            sed -i '/^\s*pythonOlder,\s*$/d' "$f"
        fi
        nixfmt "$f"
    done
2026-01-11 09:34:20 -08:00

59 lines
1.2 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
orjson,
quantile-python,
aiohttp,
aiohttp-basicauth,
starlette,
quart,
pytestCheckHook,
httpx,
fastapi,
uvicorn,
}:
buildPythonPackage rec {
pname = "aioprometheus";
version = "unstable-2023-03-14";
format = "setuptools";
src = fetchFromGitHub {
owner = "claws";
repo = "aioprometheus";
rev = "4786678b413d166c0b6e0041558d11bc1a7097b2";
hash = "sha256-2z68rQkMjYqkszg5Noj9owWUWQGOEp/91RGiWiyZVOY=";
};
propagatedBuildInputs = [
orjson
quantile-python
];
optional-dependencies = {
aiohttp = [ aiohttp ];
starlette = [ starlette ];
quart = [ quart ];
};
nativeCheckInputs = [
pytestCheckHook
aiohttp-basicauth
httpx
fastapi
uvicorn
]
++ lib.concatAttrValues optional-dependencies;
pythonImportsCheck = [ "aioprometheus" ];
meta = {
description = "Prometheus Python client library for asyncio-based applications";
homepage = "https://github.com/claws/aioprometheus";
changelog = "https://github.com/claws/aioprometheus/blob/${src.rev}/CHANGELOG.md";
license = lib.licenses.mit;
maintainers = [ ];
};
}