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