Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / prometheus-client / default.nix
blobb3e1e12400c21ea2f4a28cdbd236545adb3725f3
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , pytestCheckHook
5 , pythonOlder
6 }:
8 buildPythonPackage rec {
9   pname = "prometheus-client";
10   version = "0.17.1";
11   format = "setuptools";
13   disabled = pythonOlder "3.6";
15   src = fetchFromGitHub {
16     owner = "prometheus";
17     repo = "client_python";
18     rev = "refs/tags/v${version}";
19     hash = "sha256-ag9gun47Ar0Sw3ZGIXAHjtv4GdhX8x51UVkgwdQ8A+s=";
20   };
22   __darwinAllowLocalNetworking = true;
24   nativeCheckInputs = [
25     pytestCheckHook
26   ];
28   pythonImportsCheck = [
29     "prometheus_client"
30   ];
32   meta = with lib; {
33     description = "Prometheus instrumentation library for Python applications";
34     homepage = "https://github.com/prometheus/client_python";
35     changelog = "https://github.com/prometheus/client_python/releases/tag/v${version}";
36     license = licenses.asl20;
37     maintainers = with maintainers; [ ];
38   };