67 lines
1.3 KiB
Nix
67 lines
1.3 KiB
Nix
{
|
|
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 ];
|
|
};
|
|
}
|