1{ 2 lib, 3 aiohttp, 4 buildPythonPackage, 5 fetchFromGitHub, 6 pytestCheckHook, 7 pythonOlder, 8 setuptools, 9 wheel, 10}: 11 12buildPythonPackage rec { 13 pname = "aioqsw"; 14 version = "0.3.5"; 15 format = "pyproject"; 16 17 disabled = pythonOlder "3.11"; 18 19 src = fetchFromGitHub { 20 owner = "Noltari"; 21 repo = pname; 22 rev = "refs/tags/${version}"; 23 hash = "sha256-kSwTHwVSMGyXA0SF74f9gyBN82XhdjdN6DWrQV0PiaU="; 24 }; 25 26 nativeBuildInputs = [ 27 setuptools 28 wheel 29 ]; 30 31 propagatedBuildInputs = [ aiohttp ]; 32 33 # Module has no tests 34 doCheck = false; 35 36 pythonImportsCheck = [ "aioqsw" ]; 37 38 meta = with lib; { 39 description = "Library to fetch data from QNAP QSW switches"; 40 homepage = "https://github.com/Noltari/aioqsw"; 41 changelog = "https://github.com/Noltari/aioqsw/releases/tag/${version}"; 42 license = with licenses; [ asl20 ]; 43 maintainers = with maintainers; [ fab ]; 44 }; 45}