1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 click,
6 setuptools,
7 pytestCheckHook,
8}:
9
10buildPythonPackage rec {
11 pname = "rctclient";
12 version = "0.0.4";
13 pyproject = true;
14
15 src = fetchFromGitHub {
16 owner = "svalouch";
17 repo = "python-rctclient";
18 tag = "v${version}";
19 hash = "sha256-QPla5h8wSM9Ynj44Uwc1a2yAnu8TXbyBWzVHQeW6jnI=";
20 };
21
22 build-system = [ setuptools ];
23
24 optional-dependencies.cli = [ click ];
25
26 pythonImportsCheck = [ "rctclient" ];
27
28 nativeCheckInputs = [ pytestCheckHook ];
29
30 meta = with lib; {
31 description = "Python implementation of the RCT Power GmbH Serial Communication Protocol";
32 homepage = "https://github.com/svalouch/python-rctclient";
33 changelog = "https://github.com/svalouch/python-rctclient/releases/tag/${src.tag}";
34 license = with licenses; [ gpl3Only ];
35 maintainers = with maintainers; [ _9R ];
36 };
37}