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 = "2021.10.0";
18 format = "pyproject";
19 disabled = pythonOlder "3.6";
20
21 src = fetchFromGitHub {
22 owner = "bachya";
23 repo = pname;
24 rev = version;
25 sha256 = "sha256-vMXDnnIQiRuyLvem1JKop6FJ0fhwR8xP0276PdZi/QI=";
26 };
27
28 nativeBuildInputs = [
29 poetry-core
30 ];
31
32 propagatedBuildInputs = [
33 aiohttp
34 ];
35
36 checkInputs = [
37 aresponses
38 asynctest
39 pytest-aiohttp
40 pytest-asyncio
41 pytest-mock
42 pytestCheckHook
43 ];
44
45 pythonImportsCheck = [ "regenmaschine" ];
46
47 __darwinAllowLocalNetworking = true;
48
49 meta = with lib; {
50 description = "Python library for interacting with RainMachine smart sprinkler controllers";
51 homepage = "https://github.com/bachya/regenmaschine";
52 license = with licenses; [ mit ];
53 maintainers = with maintainers; [ fab ];
54 };
55}