1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 pythonAtLeast,
6 setuptools,
7 standard-telnetlib,
8 pytestCheckHook,
9}:
10
11buildPythonPackage rec {
12 pname = "ndms2-client";
13 version = "0.1.3";
14
15 pyproject = true;
16
17 src = fetchFromGitHub {
18 owner = "foxel";
19 repo = "python_ndms2_client";
20 rev = version;
21 hash = "sha256-A19olC1rTHTy0xyeSP45fqvv9GUynQSrMgXBgW8ySOs=";
22 };
23
24 dependencies = lib.optionals (pythonAtLeast "3.13") [ standard-telnetlib ];
25
26 nativeBuildInputs = [ setuptools ];
27
28 nativeCheckInputs = [ pytestCheckHook ];
29
30 pythonImportsCheck = [ "ndms2_client" ];
31
32 meta = with lib; {
33 description = "Keenetic NDMS 2.x and 3.x client";
34 homepage = "https://github.com/foxel/python_ndms2_client";
35 license = licenses.mit;
36 maintainers = with maintainers; [ dotlambda ];
37 };
38}