1{ lib 2, aiohttp 3, aresponses 4, buildPythonPackage 5, fetchFromGitHub 6, inflection 7, pyjwt 8, pytest-asyncio 9, pytestCheckHook 10, python-dateutil 11, pythonOlder 12}: 13 14buildPythonPackage rec { 15 pname = "python-smarttub"; 16 version = "0.0.27"; 17 disabled = pythonOlder "3.8"; 18 19 src = fetchFromGitHub { 20 owner = "mdz"; 21 repo = pname; 22 rev = "v${version}"; 23 sha256 = "sha256-EoZn5yxj18hi4oEMuUcB5UN2xQFkLbSG/awp+Qh029E="; 24 }; 25 26 propagatedBuildInputs = [ 27 aiohttp 28 inflection 29 pyjwt 30 python-dateutil 31 ]; 32 33 checkInputs = [ 34 aresponses 35 pytest-asyncio 36 pytestCheckHook 37 ]; 38 39 pythonImportsCheck = [ "smarttub" ]; 40 41 meta = with lib; { 42 description = "Python API for SmartTub enabled hot tubs"; 43 homepage = "https://github.com/mdz/python-smarttub"; 44 license = with licenses; [ mit ]; 45 maintainers = with maintainers; [ fab ]; 46 }; 47}