python312Packages.meraki: modernize

This commit is contained in:
Nick Cao
2025-01-09 09:21:06 -05:00
parent 0b906a3852
commit 5a8db71a0b
@@ -2,24 +2,31 @@
lib,
aiohttp,
buildPythonPackage,
fetchPypi,
fetchFromGitHub,
pythonOlder,
requests,
setuptools,
}:
buildPythonPackage rec {
pname = "meraki";
version = "1.54.0";
format = "setuptools";
pyproject = true;
disabled = pythonOlder "3.8";
disabled = pythonOlder "3.10";
src = fetchPypi {
inherit pname version;
hash = "sha256-GjBFNp4dfP41D8MB+17p6KUVV8q+tMiN4WXVzP20A6w=";
src = fetchFromGitHub {
owner = "meraki";
repo = "dashboard-api-python";
tag = version;
hash = "sha256-eRGVC0M8PtK3UUuECXUXrD5rGnAK04f+3/xVl+2rjAM=";
};
propagatedBuildInputs = [
build-system = [
setuptools
];
dependencies = [
aiohttp
requests
];
@@ -29,11 +36,11 @@ buildPythonPackage rec {
pythonImportsCheck = [ "meraki" ];
meta = with lib; {
description = "Provides all current Meraki dashboard API calls to interface with the Cisco Meraki cloud-managed platform";
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 = licenses.mit;
maintainers = with maintainers; [ dylanmtaylor ];
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ dylanmtaylor ];
};
}