biome: 1.9.2 -> 1.9.3 (#349335)
[NixPkgs.git] / pkgs / development / python-modules / grafanalib / default.nix
blob4e03786a7147934b676349f1da1484669cb7e0b4
2   attrs,
3   buildPythonPackage,
4   fetchFromGitHub,
5   lib,
6   pytestCheckHook,
7   pythonOlder,
8   setuptools,
9 }:
11 buildPythonPackage rec {
12   pname = "grafanalib";
13   version = "0.7.1";
14   pyproject = true;
16   disabled = pythonOlder "3.6";
18   src = fetchFromGitHub {
19     owner = "weaveworks";
20     repo = pname;
21     rev = "refs/tags/v${version}";
22     hash = "sha256-vXnyAfC9avKz8U4+MJVnu2zoPD0nR2qarWYidhEPW5s=";
23   };
25   nativeBuildInputs = [ setuptools ];
27   propagatedBuildInputs = [ attrs ];
29   nativeCheckInputs = [ pytestCheckHook ];
31   pythonImportsCheck = [ "grafanalib" ];
33   meta = with lib; {
34     description = "Library for building Grafana dashboards";
35     homepage = "https://github.com/weaveworks/grafanalib/";
36     changelog = "https://github.com/weaveworks/grafanalib/releases/tag/v${version}";
37     license = licenses.asl20;
38     maintainers = with maintainers; [ michaelgrahamevans ];
39   };