at 23.05-pre 63 lines 1.1 kB view raw
1{ lib 2, aiohttp 3, aresponses 4, asynctest 5, buildPythonPackage 6, fetchFromGitHub 7, poetry-core 8, pytest-aiohttp 9, pytest-asyncio 10, pytest-mock 11, pytestCheckHook 12, pythonOlder 13}: 14 15buildPythonPackage rec { 16 pname = "regenmaschine"; 17 version = "2022.11.0"; 18 format = "pyproject"; 19 20 disabled = pythonOlder "3.8"; 21 22 src = fetchFromGitHub { 23 owner = "bachya"; 24 repo = pname; 25 rev = "refs/tags/${version}"; 26 sha256 = "sha256-aCgMAaur2ljjiQ7tt/gXm/Vt+o6j/MsCOLN661CkFw4="; 27 }; 28 29 nativeBuildInputs = [ 30 poetry-core 31 ]; 32 33 propagatedBuildInputs = [ 34 aiohttp 35 ]; 36 37 checkInputs = [ 38 aresponses 39 asynctest 40 pytest-aiohttp 41 pytest-asyncio 42 pytest-mock 43 pytestCheckHook 44 ]; 45 46 disabledTestPaths = [ 47 # Examples are prefix with test_ 48 "examples/" 49 ]; 50 51 pythonImportsCheck = [ 52 "regenmaschine" 53 ]; 54 55 __darwinAllowLocalNetworking = true; 56 57 meta = with lib; { 58 description = "Python library for interacting with RainMachine smart sprinkler controllers"; 59 homepage = "https://github.com/bachya/regenmaschine"; 60 license = with licenses; [ mit ]; 61 maintainers = with maintainers; [ fab ]; 62 }; 63}