1{ lib
2, bleak
3, buildPythonPackage
4, fetchFromGitHub
5, pytest-mock
6, pytestCheckHook
7, pythonOlder
8}:
9
10buildPythonPackage rec {
11 pname = "fjaraskupan";
12 version = "1.0.2";
13 format = "setuptools";
14
15 disabled = pythonOlder "3.8";
16
17 src = fetchFromGitHub {
18 owner = "elupus";
19 repo = pname;
20 rev = version;
21 sha256 = "sha256-nUrgV4keJpYRkKZE+udvmPdCW3O3YQTS1ye40IdA7vA=";
22 };
23
24 propagatedBuildInputs = [
25 bleak
26 ];
27
28 checkInputs = [
29 pytest-mock
30 pytestCheckHook
31 ];
32
33 pythonImportsCheck = [ "fjaraskupan" ];
34
35 meta = with lib; {
36 description = "Python module for controlling Fjäråskupan kitchen fans";
37 homepage = "https://github.com/elupus/fjaraskupan";
38 license = with licenses; [ mit ];
39 maintainers = with maintainers; [ fab ];
40 };
41}