depot/third_party/nixpkgs/pkgs/development/python-modules/tplink-omada-client/default.nix
Default email 410b979fe2 Project import generated by Copybara.
GitOrigin-RevId: a64e169e396460d6b5763a1de1dd197df8421688
2023-03-24 01:07:29 +01:00

45 lines
911 B
Nix

{ lib
, aiohttp
, buildPythonPackage
, fetchPypi
, hatchling
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "tplink-omada-client";
version = "1.1.5";
format = "pyproject";
disabled = pythonOlder "3.9";
src = fetchPypi {
pname = "tplink_omada_client";
inherit version;
hash = "sha256-fx954JstCdvJQY1xgoqcfJpB8fZSS4kST/f3yiJZ7lA=";
};
nativeBuildInputs = [
hatchling
];
propagatedBuildInputs = [
aiohttp
];
# 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 ];
};
}