1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 pycryptodomex,
6 pythonOlder,
7 setuptools,
8}:
9
10buildPythonPackage rec {
11 pname = "motionblinds";
12 version = "0.6.23";
13 pyproject = true;
14
15 disabled = pythonOlder "3.7";
16
17 src = fetchFromGitHub {
18 owner = "starkillerOG";
19 repo = "motion-blinds";
20 rev = "refs/tags/${version}";
21 hash = "sha256-f5R58p6tMVqmXAjybae8qjeNI3vxtGJ7qxZOl9H5iKw=";
22 };
23
24 nativeBuildInputs = [ setuptools ];
25
26 propagatedBuildInputs = [ pycryptodomex ];
27
28 # Project 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/${version}";
37 license = with licenses; [ mit ];
38 maintainers = with maintainers; [ fab ];
39 };
40}