1{
2 lib,
3 aiohttp,
4 buildPythonPackage,
5 fetchFromGitHub,
6 poetry-core,
7 pytestCheckHook,
8 python-dateutil,
9 pythonOlder,
10 urllib3,
11}:
12
13buildPythonPackage rec {
14 pname = "myhome";
15 version = "0.2.1";
16 format = "pyproject";
17
18 disabled = pythonOlder "3.7";
19
20 src = fetchFromGitHub {
21 owner = "speijnik";
22 repo = "myhome";
23 rev = "v${version}";
24 hash = "sha256-DJzwvgvSA9Q0kpueUoQV64pdDDNA7WzGu7r+g5aqutk=";
25 };
26
27 nativeBuildInputs = [ poetry-core ];
28
29 propagatedBuildInputs = [
30 aiohttp
31 python-dateutil
32 urllib3
33 ];
34
35 nativeCheckInputs = [ pytestCheckHook ];
36
37 pythonImportsCheck = [ "myhome" ];
38
39 meta = with lib; {
40 description = "Python library for interacting with MyHomeSERVER1";
41 homepage = "https://github.com/speijnik/myhome";
42 license = licenses.bsd3;
43 maintainers = with maintainers; [ fab ];
44 };
45}