1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 aiohttp,
6 setuptools,
7}:
8
9buildPythonPackage rec {
10 pname = "smarthab";
11 version = "0.21";
12 pyproject = true;
13
14 src = fetchPypi {
15 pname = "SmartHab";
16 inherit version;
17 hash = "sha256-v5KUVaL3zB4nWzMd5z2YNYcTio2ReVdJiLoF+hUtPM8=";
18 };
19
20 build-system = [ setuptools ];
21
22 dependencies = [ aiohttp ];
23
24 # no tests on PyPI, no tags on GitLab
25 doCheck = false;
26
27 pythonImportsCheck = [ "pysmarthab" ];
28
29 meta = with lib; {
30 description = "Control devices in a SmartHab-powered home";
31 homepage = "https://gitlab.com/outadoc/python-smarthab";
32 license = licenses.gpl3Plus;
33 maintainers = with maintainers; [ dotlambda ];
34 };
35}