1{ 2 attrs, 3 buildPythonPackage, 4 fetchFromGitHub, 5 lib, 6 pytestCheckHook, 7 pythonOlder, 8 setuptools, 9}: 10 11buildPythonPackage rec { 12 pname = "grafanalib"; 13 version = "0.7.1"; 14 pyproject = true; 15 16 disabled = pythonOlder "3.6"; 17 18 src = fetchFromGitHub { 19 owner = "weaveworks"; 20 repo = "grafanalib"; 21 tag = "v${version}"; 22 hash = "sha256-vXnyAfC9avKz8U4+MJVnu2zoPD0nR2qarWYidhEPW5s="; 23 }; 24 25 nativeBuildInputs = [ setuptools ]; 26 27 propagatedBuildInputs = [ attrs ]; 28 29 nativeCheckInputs = [ pytestCheckHook ]; 30 31 pythonImportsCheck = [ "grafanalib" ]; 32 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 }; 40}