2c76a4cb41
GitOrigin-RevId: c757e9bd77b16ca2e03c89bf8bc9ecb28e0c06ad
47 lines
947 B
Nix
47 lines
947 B
Nix
{ lib
|
|
, aiohttp
|
|
, awesomeversion
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, hatchling
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "tplink-omada-client";
|
|
version = "1.3.6";
|
|
format = "pyproject";
|
|
|
|
disabled = pythonOlder "3.9";
|
|
|
|
src = fetchPypi {
|
|
pname = "tplink_omada_client";
|
|
inherit version;
|
|
hash = "sha256-8NP+5qBdWiBUPf5DJWMrHJfZwpRNkCewjrjTbvgD3AA=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
hatchling
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
aiohttp
|
|
awesomeversion
|
|
];
|
|
|
|
# Module have no tests
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [
|
|
"tplink_omada_client"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Library for the TP-Link Omada SDN Controller API";
|
|
homepage = "https://github.com/MarkGodwin/tplink-omada-api";
|
|
changelog = "https://github.com/MarkGodwin/tplink-omada-api/releases/tag/release%2Fv${version}";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|