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