1{
2 lib,
3 buildPythonPackage,
4 click,
5 fetchFromGitHub,
6 justbackoff,
7 pythonOlder,
8 pytest-asyncio,
9 pytestCheckHook,
10}:
11
12buildPythonPackage rec {
13 pname = "nessclient";
14 version = "1.0.0";
15 format = "setuptools";
16
17 disabled = pythonOlder "3.8";
18
19 src = fetchFromGitHub {
20 owner = "nickw444";
21 repo = pname;
22 rev = "refs/tags/${version}";
23 hash = "sha256-UqHXKfS4zF1YhFbNKSVESmsxD0CYJKOmjMOE3blGdI8=";
24 };
25
26 propagatedBuildInputs = [
27 justbackoff
28 click
29 ];
30
31 nativeCheckInputs = [
32 pytest-asyncio
33 pytestCheckHook
34 ];
35
36 pythonImportsCheck = [ "nessclient" ];
37
38 meta = with lib; {
39 description = "Python implementation/abstraction of the Ness D8x/D16x Serial Interface ASCII protocol";
40 mainProgram = "ness-cli";
41 homepage = "https://github.com/nickw444/nessclient";
42 changelog = "https://github.com/nickw444/nessclient/releases/tag/${version}";
43 license = with licenses; [ mit ];
44 maintainers = with maintainers; [ fab ];
45 };
46}