Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 21.05 45 lines 877 B view raw
1{ lib 2, aiohttp 3, asynctest 4, buildPythonPackage 5, fetchFromGitHub 6, poetry 7, pytest-aiohttp 8, pytest-asyncio 9, pytest-sugar 10, pytestCheckHook 11}: 12 13buildPythonPackage rec { 14 pname = "aioswitcher"; 15 version = "1.2.2"; 16 format = "pyproject"; 17 18 src = fetchFromGitHub { 19 owner = "TomerFi"; 20 repo = pname; 21 rev = version; 22 sha256 = "0wvca1jbyj4bwrpkpklbxnkvdp9zs7mrvg5b9vkx2hpyr81vyxam"; 23 }; 24 25 nativeBuildInputs = [ poetry ]; 26 27 propagatedBuildInputs = [ aiohttp ]; 28 29 checkInputs = [ 30 asynctest 31 pytest-aiohttp 32 pytest-asyncio 33 pytest-sugar 34 pytestCheckHook 35 ]; 36 37 pythonImportsCheck = [ "aioswitcher" ]; 38 39 meta = with lib; { 40 description = "Python module to interact with Switcher water heater"; 41 homepage = "https://github.com/TomerFi/aioswitcher"; 42 license = with licenses; [ mit ]; 43 maintainers = with maintainers; [ fab ]; 44 }; 45}