Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, pytestCheckHook 5, pythonOlder 6}: 7 8buildPythonPackage rec { 9 pname = "prometheus-client"; 10 version = "0.16.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-FYQE0toy5VFKNVadSsxG/5NCRANYJOcVR4bGPrCAxvc="; 20 }; 21 22 nativeCheckInputs = [ 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 changelog = "https://github.com/prometheus/client_python/releases/tag/v${version}"; 34 license = licenses.asl20; 35 maintainers = with maintainers; [ ]; 36 }; 37}