Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 pytestCheckHook, 6 dateparser, 7 httmock, 8 matplotlib, 9 numpy, 10 pandas, 11 requests, 12}: 13 14buildPythonPackage rec { 15 pname = "prometheus-api-client"; 16 version = "0.5.5"; 17 format = "setuptools"; 18 19 src = fetchFromGitHub { 20 owner = "4n4nd"; 21 repo = "prometheus-api-client-python"; 22 rev = "refs/tags/v${version}"; 23 hash = "sha256-tUu0+ZUOFxBCj//lHhNm88rhFbS01j1x508+nqIkCfQ="; 24 }; 25 26 propagatedBuildInputs = [ 27 dateparser 28 matplotlib 29 numpy 30 pandas 31 requests 32 ]; 33 34 nativeCheckInputs = [ pytestCheckHook ]; 35 36 checkInputs = [ httmock ]; 37 38 disabledTestPaths = [ "tests/test_prometheus_connect.py" ]; 39 40 pythonImportsCheck = [ "prometheus_api_client" ]; 41 42 meta = with lib; { 43 description = "Python wrapper for the Prometheus HTTP API"; 44 longDescription = '' 45 The prometheus-api-client library consists of multiple modules which 46 assist in connecting to a Prometheus host, fetching the required metrics 47 and performing various aggregation operations on the time series data. 48 ''; 49 homepage = "https://github.com/4n4nd/prometheus-api-client-python"; 50 changelog = "https://github.com/4n4nd/prometheus-api-client-python/blob/${src.rev}/CHANGELOG.md"; 51 license = licenses.mit; 52 maintainers = with maintainers; [ azahi ]; 53 }; 54}