47 lines
932 B
Nix
47 lines
932 B
Nix
{
|
|
lib,
|
|
aiohttp,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
pythonOlder,
|
|
requests,
|
|
setuptools,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "meraki";
|
|
version = "1.54.0";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.10";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "meraki";
|
|
repo = "dashboard-api-python";
|
|
tag = version;
|
|
hash = "sha256-eRGVC0M8PtK3UUuECXUXrD5rGnAK04f+3/xVl+2rjAM=";
|
|
};
|
|
|
|
build-system = [
|
|
setuptools
|
|
];
|
|
|
|
dependencies = [
|
|
aiohttp
|
|
requests
|
|
];
|
|
|
|
# All tests require an API key
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [ "meraki" ];
|
|
|
|
meta = {
|
|
description = "Cisco Meraki cloud-managed platform dashboard API python library";
|
|
homepage = "https://github.com/meraki/dashboard-api-python";
|
|
changelog = "https://github.com/meraki/dashboard-api-python/releases/tag/${version}";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ dylanmtaylor ];
|
|
};
|
|
}
|