1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 pycryptodomex,
6 pythonOlder,
7 setuptools,
8}:
9
10buildPythonPackage rec {
11 pname = "motionblinds";
12 version = "0.6.30";
13 pyproject = true;
14
15 disabled = pythonOlder "3.7";
16
17 src = fetchFromGitHub {
18 owner = "starkillerOG";
19 repo = "motion-blinds";
20 tag = version;
21 hash = "sha256-xV9od7xTKBBE4f4Mqg57Mp0MXO8/lG+bBKzG+jv6gf4=";
22 };
23
24 build-system = [ setuptools ];
25
26 dependencies = [ pycryptodomex ];
27
28 # Module has no tests
29 doCheck = false;
30
31 pythonImportsCheck = [ "motionblinds" ];
32
33 meta = with lib; {
34 description = "Python library for interfacing with Motion Blinds";
35 homepage = "https://github.com/starkillerOG/motion-blinds";
36 changelog = "https://github.com/starkillerOG/motion-blinds/releases/tag/${src.tag}";
37 license = with licenses; [ mit ];
38 maintainers = with maintainers; [ fab ];
39 };
40}