1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, pytestCheckHook 5, pythonOlder 6}: 7 8buildPythonPackage rec { 9 pname = "prometheus-client"; 10 version = "0.17.1"; 11 format = "setuptools"; 12 13 disabled = pythonOlder "3.6"; 14 15 src = fetchFromGitHub { 16 owner = "prometheus"; 17 repo = "client_python"; 18 rev = "refs/tags/v${version}"; 19 hash = "sha256-ag9gun47Ar0Sw3ZGIXAHjtv4GdhX8x51UVkgwdQ8A+s="; 20 }; 21 22 __darwinAllowLocalNetworking = true; 23 24 nativeCheckInputs = [ 25 pytestCheckHook 26 ]; 27 28 pythonImportsCheck = [ 29 "prometheus_client" 30 ]; 31 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 }; 39}