1{ lib 2, aiohttp 3, aresponses 4, buildPythonPackage 5, fetchFromGitHub 6, poetry-core 7, pytest-aiohttp 8, pytest-asyncio 9, pytest-cov 10, pytestCheckHook 11}: 12 13buildPythonPackage rec { 14 pname = "aioflo"; 15 version = "2021.10.0"; 16 format = "pyproject"; 17 18 src = fetchFromGitHub { 19 owner = "bachya"; 20 repo = pname; 21 rev = version; 22 sha256 = "sha256-BunTgK8IS9uE8y/LMk7624kunouNAWNqe3Xm2DjQ1pY="; 23 }; 24 25 nativeBuildInputs = [ poetry-core ]; 26 27 propagatedBuildInputs = [ aiohttp ]; 28 29 checkInputs = [ 30 aresponses 31 pytest-aiohttp 32 pytest-asyncio 33 pytest-cov 34 pytestCheckHook 35 ]; 36 37 pythonImportsCheck = [ "aioflo" ]; 38 39 meta = with lib; { 40 description = "Python library for Flo by Moen Smart Water Detectors"; 41 homepage = "https://github.com/bachya/aioflo"; 42 license = with licenses; [ mit ]; 43 maintainers = with maintainers; [ fab ]; 44 }; 45}