python313Packages.pymodbus: 3.9.0 -> 3.9.1 (#397518)

This commit is contained in:
dotlambda
2025-04-13 08:20:59 -07:00
committed by GitHub
3 changed files with 73 additions and 12 deletions
@@ -0,0 +1,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 ];
};
}
@@ -6,12 +6,12 @@
fetchFromGitHub,
prompt-toolkit,
pygments,
pymodbus-repl,
pyserial,
pytest-asyncio,
pytest-cov-stub,
pytest-xdist,
pytestCheckHook,
pythonOlder,
redis,
setuptools,
sqlalchemy,
@@ -21,29 +21,22 @@
buildPythonPackage rec {
pname = "pymodbus";
version = "3.9.0";
version = "3.9.1";
pyproject = true;
disabled = pythonOlder "3.9";
src = fetchFromGitHub {
owner = "pymodbus-dev";
repo = "pymodbus";
tag = "v${version}";
hash = "sha256-8v48+wnxVBIXJhCn7/oHyoxPN8smWWNY/i5LMHhKUVk=";
hash = "sha256-O64r8/3AGZYr449FANo3wQCUiIJkIjN5eQ+VoTrvUHo=";
};
build-system = [ setuptools ];
optional-dependencies = {
repl = [
aiohttp
typer
prompt-toolkit
pygments
click
];
repl = [ pymodbus-repl ];
serial = [ pyserial ];
simulator = [ aiohttp ];
};
nativeCheckInputs = [
+2
View File
@@ -12664,6 +12664,8 @@ self: super: with self; {
pymodbus = callPackage ../development/python-modules/pymodbus { };
pymodbus-repl = callPackage ../development/python-modules/pymodbus-repl { };
pymodes = callPackage ../development/python-modules/pymodes { };
pymonctl = callPackage ../development/python-modules/pymonctl { };