2022-04-20 20:35:26 +00:00
|
|
|
{ lib
|
|
|
|
, aiohttp
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pytestCheckHook
|
|
|
|
, pythonOlder
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "aioqsw";
|
2023-02-25 14:16:00 +00:00
|
|
|
version = "0.3.2";
|
2022-04-20 20:35:26 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Noltari";
|
|
|
|
repo = pname;
|
2022-04-28 09:09:28 +00:00
|
|
|
rev = "refs/tags/${version}";
|
2023-02-25 14:16:00 +00:00
|
|
|
hash = "sha256-Z7Q9b+ameddvGu9KJUNsaqOHiu0qXnpzuiZwg+/0+64=";
|
2022-04-20 20:35:26 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
aiohttp
|
|
|
|
];
|
|
|
|
|
|
|
|
# Module has no tests
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"aioqsw"
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Library to fetch data from QNAP QSW switches";
|
|
|
|
homepage = "https://github.com/Noltari/aioqsw";
|
2022-12-12 10:04:13 +00:00
|
|
|
changelog = "https://github.com/Noltari/aioqsw/releases/tag/${version}";
|
2022-04-20 20:35:26 +00:00
|
|
|
license = with licenses; [ asl20 ];
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|