summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/prometheus-pandas/default.nix
blob: 3b4f8549e36203f21425e8d1ce24e2f01621df6c (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
{
  lib,
  buildPythonPackage,
  fetchPypi,
  setuptools,
  numpy,
  pandas,
}:

buildPythonPackage rec {
  pname = "prometheus-pandas";
  version = "0.3.3";
  pyproject = true;

  src = fetchPypi {
    inherit pname version;
    hash = "sha256-1eaTmNui3cAisKEhBMEpOv+UndJZwb4GGK2M76xiy7k=";
  };

  nativeBuildInputs = [ setuptools ];

  propagatedBuildInputs = [
    numpy
    pandas
  ];

  # There are no tests. :(
  doCheck = false;

  pythonImportsCheck = [ "prometheus_pandas" ];

  meta = {
    homepage = "https://github.com/dcoles/prometheus-pandas";
    license = lib.licenses.mit;
    description = "Pandas integration for Prometheus";
    maintainers = with lib.maintainers; [ viktornordling ];
  };
}