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