33afbf39f6
checkInputs used to be added to nativeBuildInputs. Now we have nativeCheckInputs to do that instead. Doing this treewide change allows to keep hashes identical to before the introduction of nativeCheckInputs.
67 lines
1.3 KiB
Nix
67 lines
1.3 KiB
Nix
{ lib
|
|
, aiohttp
|
|
, asynctest
|
|
, buildPythonPackage
|
|
, click
|
|
, fetchFromGitHub
|
|
, mock
|
|
, prompt-toolkit
|
|
, pygments
|
|
, pyserial
|
|
, pyserial-asyncio
|
|
, pytest-asyncio
|
|
, pytestCheckHook
|
|
, redis
|
|
, sqlalchemy
|
|
, tornado
|
|
, twisted
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pymodbus";
|
|
version = "3.0.2";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "riptideio";
|
|
repo = pname;
|
|
rev = "refs/tags/v${version}";
|
|
sha256 = "sha256-7zuFKJuKc+J4g7qoK22xed8dmXJatQbQXz4aKAOcvN8=";
|
|
};
|
|
|
|
# Twisted asynchronous version is not supported due to a missing dependency
|
|
propagatedBuildInputs = [
|
|
aiohttp
|
|
click
|
|
prompt-toolkit
|
|
pygments
|
|
pyserial
|
|
pyserial-asyncio
|
|
tornado
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
asynctest
|
|
mock
|
|
pytest-asyncio
|
|
pytestCheckHook
|
|
redis
|
|
sqlalchemy
|
|
twisted
|
|
];
|
|
|
|
pythonImportsCheck = [ "pymodbus" ];
|
|
|
|
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/riptideio/pymodbus";
|
|
license = with licenses; [ bsd3 ];
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|