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