11 buildPythonPackage rec {
12 pname = "prometheus-client";
16 disabled = pythonOlder "3.8";
18 src = fetchFromGitHub {
20 repo = "client_python";
21 rev = "refs/tags/v${version}";
22 hash = "sha256-LrCBCfIcpxNjy/yjwCG4J34eJO4AdUr21kp9FBwSeAY=";
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" ];
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;