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