1{
2 lib,
3 bleak,
4 bleak-retry-connector,
5 buildPythonPackage,
6 fetchFromGitHub,
7 pytest-mock,
8 pytestCheckHook,
9 pythonOlder,
10 setuptools,
11}:
12
13buildPythonPackage rec {
14 pname = "fjaraskupan";
15 version = "2.3.3";
16 pyproject = true;
17
18 disabled = pythonOlder "3.8";
19
20 src = fetchFromGitHub {
21 owner = "elupus";
22 repo = "fjaraskupan";
23 tag = version;
24 hash = "sha256-xu5u3hvtD1gbN1f1UuxDQVIHF5pyCOWVwUq36vAgW/Y=";
25 };
26
27 build-system = [ setuptools ];
28
29 dependencies = [
30 bleak
31 bleak-retry-connector
32 ];
33
34 nativeCheckInputs = [
35 pytest-mock
36 pytestCheckHook
37 ];
38
39 pythonImportsCheck = [ "fjaraskupan" ];
40
41 meta = with lib; {
42 description = "Module for controlling Fjäråskupan kitchen fans";
43 homepage = "https://github.com/elupus/fjaraskupan";
44 changelog = "https://github.com/elupus/fjaraskupan/releases/tag/${version}";
45 license = with licenses; [ mit ];
46 maintainers = with maintainers; [ fab ];
47 };
48}