23b612e36f
GitOrigin-RevId: ae5c332cbb5827f6b1f02572496b141021de335f
48 lines
926 B
Nix
48 lines
926 B
Nix
{ 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 ];
|
|
};
|
|
}
|