1{
2 lib,
3 aiohttp,
4 buildPythonPackage,
5 dnspython,
6 fetchFromGitHub,
7 poetry-core,
8 pythonOlder,
9 tenacity,
10}:
11
12buildPythonPackage rec {
13 pname = "linear-garage-door";
14 version = "0.2.10";
15 pyproject = true;
16
17 disabled = pythonOlder "3.8";
18
19 src = fetchFromGitHub {
20 owner = "IceBotYT";
21 repo = "linear-garage-door";
22 tag = version;
23 hash = "sha256-ibOCqy7krIVC7N75SwEyUII3Tknb60nwA+zGbjOENv4=";
24 };
25
26 build-system = [ poetry-core ];
27
28 pythonRelaxDeps = [ "tenacity" ];
29
30 dependencies = [
31 aiohttp
32 dnspython
33 tenacity
34 ];
35
36 # Module doesn't have tests
37 doCheck = false;
38
39 pythonImportsCheck = [ "linear_garage_door" ];
40
41 meta = with lib; {
42 description = "Control Linear Garage Doors with Python";
43 homepage = "https://github.com/IceBotYT/linear-garage-door";
44 changelog = "https://github.com/IceBotYT/linear-garage-door/blob/${version}/CHANGELOG.md";
45 license = licenses.mit;
46 maintainers = with maintainers; [ fab ];
47 };
48}