1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
|
{
aiohttp,
buildPythonPackage,
doCheck ? false, # cyclic dependency with pymodbus
fetchFromGitHub,
lib,
poetry-core,
prompt-toolkit,
pygments,
pymodbus,
pymodbus-repl,
pytest-cov-stub,
pytestCheckHook,
tabulate,
typer,
}:
buildPythonPackage rec {
pname = "pymodbus-repl";
version = "2.0.5";
pyproject = true;
src = fetchFromGitHub {
owner = "pymodbus-dev";
repo = "repl";
tag = version;
hash = "sha256-jGoYp2nDWMWMX8n0aaG/YP+rQcj2npFbhdy7T1qxByc=";
};
build-system = [ poetry-core ];
pythonRelaxDeps = [
"typer"
];
dependencies = [
aiohttp
prompt-toolkit
pygments
tabulate
typer
];
pythonImportsCheck = [ "pymodbus_repl" ];
inherit doCheck;
nativeCheckInputs = [
pymodbus
pytest-cov-stub
pytestCheckHook
];
passthru.tests = {
# currently expected to fail: https://github.com/pymodbus-dev/repl/pull/26
pytest = pymodbus-repl.override { doCheck = true; };
};
meta = {
changelog = "https://github.com/pymodbus-dev/repl/releases/tag/${src.tag}";
description = "REPL client and server for pymodbus";
homepage = "https://github.com/pymodbus-dev/repl";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ dotlambda ];
};
}
|