Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
2.1 kB · 97 lines
Nix
at llvm-cleanup
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798{ lib, aiohttp, buildPythonPackage, click, fetchFromGitHub, prompt-toolkit, pygments, pyserial, pytest-asyncio, pytest-xdist, pytestCheckHook, pythonOlder, redis, setuptools, sqlalchemy, twisted, typer,}:
buildPythonPackage rec { pname = "pymodbus"; version = "3.6.8"; pyproject = true;
disabled = pythonOlder "3.9";
src = fetchFromGitHub { owner = "pymodbus-dev"; repo = "pymodbus"; rev = "refs/tags/v${version}"; hash = "sha256-6Rt5fbuaeAgbW5KKse1zZIJyq/p2P2MjXGwA7q0C7wA="; };
postPatch = '' substituteInPlace pyproject.toml \ --replace-fail "--cov-report html " "" '';
build-system = [ setuptools ];
passthru.optional-dependencies = { repl = [ aiohttp typer prompt-toolkit pygments click ] ++ typer.optional-dependencies.all; serial = [ pyserial ]; };
nativeCheckInputs = [ pytest-asyncio pytest-xdist pytestCheckHook redis sqlalchemy twisted ] ++ lib.flatten (builtins.attrValues passthru.optional-dependencies);
preCheck = '' pushd test '';
postCheck = '' popd '';
pythonImportsCheck = [ "pymodbus" ];
disabledTests = [ # Tests often hang "test_connected" ] ++ lib.optionals (lib.versionAtLeast aiohttp.version "3.9.0") [ "test_split_serial_packet" "test_serial_poll" "test_simulator" ];
meta = with lib; { description = "Python implementation of the Modbus protocol"; longDescription = '' Pymodbus is a full Modbus protocol implementation using twisted, torndo or asyncio for its asynchronous communications core. It can also be used without any third party dependencies if a more lightweight project is needed. ''; homepage = "https://github.com/pymodbus-dev/pymodbus"; changelog = "https://github.com/pymodbus-dev/pymodbus/releases/tag/v${version}"; license = with licenses; [ bsd3 ]; maintainers = with maintainers; [ fab ]; mainProgram = "pymodbus.simulator"; };}