depot/third_party/nixpkgs/pkgs/development/python-modules/grafanalib/default.nix
Default email 504525a148 Project import generated by Copybara.
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
2024-01-02 12:29:13 +01:00

48 lines
916 B
Nix

{ attrs
, buildPythonPackage
, fetchFromGitHub
, fetchPypi
, lib
, pytestCheckHook
, pythonOlder
, setuptools
}:
buildPythonPackage rec {
pname = "grafanalib";
version = "0.7.0";
pyproject = true;
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "weaveworks";
repo = pname;
rev = "v${version}";
hash = "sha256-yQIDAQMG84onYWqBxIl5IXSaBlJBO/uUIy4CVvoFyGk=";
};
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 ];
};
}