1{ lib 2, aiohttp 3, buildPythonPackage 4, fetchFromGitHub 5, pythonOlder 6}: 7 8buildPythonPackage rec { 9 pname = "aiooncue"; 10 version = "0.3.5"; 11 format = "setuptools"; 12 13 disabled = pythonOlder "3.7"; 14 15 src = fetchFromGitHub { 16 owner = "bdraco"; 17 repo = pname; 18 rev = version; 19 hash = "sha256-i3b/W2EeH/rNmMcNW+BA9w2BRzeV6EACSJI3zffVQS4="; 20 }; 21 22 propagatedBuildInputs = [ 23 aiohttp 24 ]; 25 26 # Module doesn't have tests 27 doCheck = false; 28 29 postPatch = '' 30 substituteInPlace setup.py \ 31 --replace '"pytest-runner",' "" 32 ''; 33 34 pythonImportsCheck = [ 35 "aiooncue" 36 ]; 37 38 meta = with lib; { 39 description = "Module to interact with the Kohler Oncue API"; 40 homepage = "https://github.com/bdraco/aiooncue"; 41 license = with licenses; [ asl20 ]; 42 maintainers = with maintainers; [ fab ]; 43 }; 44}