1{
2 attrs,
3 buildPythonPackage,
4 fetchFromGitHub,
5 fetchPypi,
6 lib,
7 pytestCheckHook,
8 pythonOlder,
9 setuptools,
10}:
11
12buildPythonPackage rec {
13 pname = "grafanalib";
14 version = "0.7.1";
15 pyproject = true;
16
17 disabled = pythonOlder "3.6";
18
19 src = fetchFromGitHub {
20 owner = "weaveworks";
21 repo = pname;
22 rev = "refs/tags/v${version}";
23 hash = "sha256-vXnyAfC9avKz8U4+MJVnu2zoPD0nR2qarWYidhEPW5s=";
24 };
25
26 nativeBuildInputs = [ setuptools ];
27
28 propagatedBuildInputs = [ attrs ];
29
30 nativeCheckInputs = [ pytestCheckHook ];
31
32 pythonImportsCheck = [ "grafanalib" ];
33
34 meta = with lib; {
35 description = "Library for building Grafana dashboards";
36 homepage = "https://github.com/weaveworks/grafanalib/";
37 changelog = "https://github.com/weaveworks/grafanalib/releases/tag/v${version}";
38 license = licenses.asl20;
39 maintainers = with maintainers; [ michaelgrahamevans ];
40 };
41}