about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/grafanalib/default.nix
blob: aba3fbe4ec951a9706d1c4298c1749be0338ac17 (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
{ attrs
, buildPythonPackage
, fetchFromGitHub
, fetchPypi
, lib
, pytestCheckHook
, pythonOlder
, setuptools
}:

buildPythonPackage rec {
  pname = "grafanalib";
  version = "0.7.1";
  pyproject = true;

  disabled = pythonOlder "3.6";

  src = fetchFromGitHub {
    owner = "weaveworks";
    repo = pname;
    rev = "refs/tags/v${version}";
    hash = "sha256-vXnyAfC9avKz8U4+MJVnu2zoPD0nR2qarWYidhEPW5s=";
  };

  nativeBuildInputs = [
    setuptools
  ];

  propagatedBuildInputs = [
    attrs
  ];

  nativeCheckInputs = [
    pytestCheckHook
  ];

  pythonImportsCheck = [
    "grafanalib"
  ];

  meta = with lib; {
    description = "Library for building Grafana dashboards";
    homepage = "https://github.com/weaveworks/grafanalib/";
    changelog = "https://github.com/weaveworks/grafanalib/releases/tag/v${version}";
    license = licenses.asl20;
    maintainers = with maintainers; [ michaelgrahamevans ];
  };
}