1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, pytestCheckHook 5}: 6 7buildPythonPackage rec { 8 pname = "prometheus-client"; 9 version = "0.11.0"; 10 11 src = fetchFromGitHub { 12 owner = "prometheus"; 13 repo = "client_python"; 14 rev = "v${version}"; 15 sha256 = "14swmy4dgpk6cyjsm2advgc2c8api7xaca1sl7swznblh5fyzgzg"; 16 }; 17 18 checkInputs = [ 19 pytestCheckHook 20 ]; 21 22 pythonImportsCheck = [ "prometheus_client" ]; 23 24 meta = with lib; { 25 description = "Prometheus instrumentation library for Python applications"; 26 homepage = "https://github.com/prometheus/client_python"; 27 license = licenses.asl20; 28 }; 29}