depot/third_party/nixpkgs/pkgs/development/python-modules/tplink-omada-client/default.nix
Default email 9c6ee729d6 Project import generated by Copybara.
GitOrigin-RevId: 6cee3b5893090b0f5f0a06b4cf42ca4e60e5d222
2023-07-15 19:15:38 +02:00

47 lines
947 B
Nix

{ lib
, aiohttp
, awesomeversion
, buildPythonPackage
, fetchPypi
, hatchling
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "tplink-omada-client";
version = "1.3.0";
format = "pyproject";
disabled = pythonOlder "3.9";
src = fetchPypi {
pname = "tplink_omada_client";
inherit version;
hash = "sha256-+6HEJBMYaw/8VTdl3YK5uaAYTiyhqe1Zvuxsk2ltci8=";
};
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 ];
};
}