1{ lib
2, aiohttp
3, buildPythonPackage
4, fetchFromGitHub
5, setuptools
6, pythonOlder
7, wheel
8}:
9
10buildPythonPackage rec {
11 pname = "pyyardian";
12 version = "1.2.0";
13 pyproject = true;
14
15 disabled = pythonOlder "3.7";
16
17 src = fetchFromGitHub {
18 owner = "h3l1o5";
19 repo = "pyyardian";
20 rev = "refs/tags/${version}";
21 hash = "sha256-JBb62pFDuVcXIGRc6UOp5/ciUtbGm4XnKZjt1icF/jQ=";
22 };
23
24 nativeBuildInputs = [
25 setuptools
26 wheel
27 ];
28
29 propagatedBuildInputs = [
30 aiohttp
31 ];
32
33 # Tests require network access
34 doCheck = false;
35
36 pythonImportsCheck = [
37 "pyyardian"
38 ];
39
40 meta = with lib; {
41 description = "Module for interacting with the Yardian irrigation controller";
42 homepage = "https://github.com/h3l1o5/pyyardian";
43 license = licenses.mit;
44 maintainers = with maintainers; [ fab ];
45 };
46}