portfolio: 0.71.2 -> 0.72.2 (#360387)
[NixPkgs.git] / pkgs / development / python-modules / prometheus-fastapi-instrumentator / default.nix
blob9ec29ff80bca18372b0ab07585514f014e00ae20
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , pythonOlder
5 , pytestCheckHook
6 , devtools
7 , fastapi
8 , httpx
9 , poetry-core
10 , prometheus-client
11 , requests
12 , starlette
15 buildPythonPackage rec {
16   pname = "prometheus-fastapi-instrumentator";
17   version = "7.0.0";
18   pyproject = true;
20   disabled = pythonOlder "3.9";
22   src = fetchFromGitHub {
23     owner = "trallnag";
24     repo = "prometheus-fastapi-instrumentator";
25     rev = "refs/tags/v${version}";
26     hash = "sha256-yvKdhQdbY0+jEc8TEHNNgtdnqE0abnd4MN/JZFQwQ2E=";
27   };
29   build-system = [
30     poetry-core
31   ];
33   dependencies = [
34     prometheus-client
35     starlette
36   ];
38   nativeCheckInputs = [
39     devtools
40     fastapi
41     httpx
42     pytestCheckHook
43     requests
44   ];
46   pythonImportsCheck = [ "prometheus_fastapi_instrumentator" ];
48   meta = {
49     description = "Instrument FastAPI with Prometheus metrics";
50     homepage = "https://github.com/trallnag/prometheus-fastapi-instrumentator";
51     changelog = "https://github.com/trallnag/prometheus-fastapi-instrumentator/blob/${src.rev}/CHANGELOG.md";
52     license = with lib.licenses; [ isc bsd3 ];
53     maintainers = with lib.maintainers; [ bcdarwin ];
54     platforms = lib.platforms.linux;  # numerous test failures on Darwin
55   };