blob: 58b3ac27361e318672341e1941cabbfdfb9b8481 (
plain) (
blame)
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
58
59
60
61
62
|
{ lib
, buildPythonPackage
, fetchFromGitHub
, boto3
, botocore
, dateparser
, matplotlib
, numpy
, pandas
, poetry-core
, prometheus-api-client
, pydantic_1
, requests
}:
buildPythonPackage rec {
pname = "prometrix";
version = "unstable-2024-02-20";
format = "pyproject";
src = fetchFromGitHub {
owner = "robusta-dev";
repo = "prometrix";
rev = "ab2dad2192ed3df91c1a25446a4f54b8f2f6742f";
hash = "sha256-/72Qkd2BojYgiQi5rq7dVsEje7M0aQQXhenvIM7lSy4=";
};
postPatch = ''
substituteInPlace pyproject.toml \
--replace-fail 'pydantic = "^1.8.1"' 'pydantic = "*"'
'';
propagatedBuildInputs = [
boto3
botocore
dateparser
matplotlib
numpy
pandas
prometheus-api-client
pydantic_1
requests
];
nativeBuildInputs = [
poetry-core
];
pythonImportsCheck = [
"prometrix"
];
meta = with lib; {
description = "Unified Prometheus client";
longDescription = ''
This Python package provides a unified Prometheus client that can be used
to connect to and query various types of Prometheus instances.
'';
license = licenses.mit;
maintainers = with maintainers; [ azahi ];
};
}
|