1{
2 lib,
3 aiohttp,
4 buildPythonPackage,
5 fetchFromGitHub,
6 requests,
7 setuptools,
8}:
9
10buildPythonPackage rec {
11 pname = "somweb";
12 version = "1.2.1";
13 pyproject = true;
14
15 src = fetchFromGitHub {
16 owner = "taarskog";
17 repo = "pySOMweb";
18 rev = "v${version}";
19 hash = "sha256-cLKEKDCMK7lCtbmj2KbhgJUCZpPnPI5tZvO5L+ey8qI=";
20 };
21
22 build-system = [ setuptools ];
23
24 dependencies = [
25 aiohttp
26 requests
27 ];
28
29 pythonImportsCheck = [ "somweb" ];
30
31 doCheck = false; # no tests
32
33 meta = with lib; {
34 changelog = "https://github.com/taarskog/pySOMweb/releases/tag/v${version}";
35 description = "Client library to control garage door operators produced by SOMMER through their SOMweb device";
36 homepage = "https://github.com/taarskog/pysomweb";
37 license = licenses.mit;
38 maintainers = with maintainers; [ uvnikita ];
39 mainProgram = "somweb";
40 };
41}