1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, pytestCheckHook 5, pythonOlder 6}: 7 8buildPythonPackage rec { 9 pname = "prometheus-client"; 10 version = "0.15.0"; 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-LabvQMNiRH4jclMnN0P4M3w25NQasNQEu1HWvRDQQ2o="; 20 }; 21 22 checkInputs = [ 23 pytestCheckHook 24 ]; 25 26 pythonImportsCheck = [ 27 "prometheus_client" 28 ]; 29 30 meta = with lib; { 31 description = "Prometheus instrumentation library for Python applications"; 32 homepage = "https://github.com/prometheus/client_python"; 33 license = licenses.asl20; 34 maintainers = with maintainers; [ ]; 35 }; 36}