portfolio: 0.71.2 -> 0.72.2 (#360387)
[NixPkgs.git] / pkgs / development / python-modules / prometheus-client / default.nix
blob3c465a430a292ae6487fcec772f8890ad5b695da
2   lib,
3   buildPythonPackage,
4   fetchFromGitHub,
5   setuptools,
6   twisted,
7   pytestCheckHook,
8   pythonOlder,
9 }:
11 buildPythonPackage rec {
12   pname = "prometheus-client";
13   version = "0.21.0";
14   pyproject = true;
16   disabled = pythonOlder "3.8";
18   src = fetchFromGitHub {
19     owner = "prometheus";
20     repo = "client_python";
21     rev = "refs/tags/v${version}";
22     hash = "sha256-LrCBCfIcpxNjy/yjwCG4J34eJO4AdUr21kp9FBwSeAY=";
23   };
25   build-system = [ setuptools ];
27   optional-dependencies.twisted = [ twisted ];
29   __darwinAllowLocalNetworking = true;
31   nativeCheckInputs = [ pytestCheckHook ] ++ lib.flatten (lib.attrValues optional-dependencies);
33   pythonImportsCheck = [ "prometheus_client" ];
35   meta = with lib; {
36     description = "Prometheus instrumentation library for Python applications";
37     homepage = "https://github.com/prometheus/client_python";
38     changelog = "https://github.com/prometheus/client_python/releases/tag/v${version}";
39     license = licenses.asl20;
40     maintainers = [ ];
41   };