13 buildPythonPackage rec {
14 pname = "async-modbus";
18 disabled = pythonOlder "3.7";
20 src = fetchFromGitHub {
21 owner = "tiagocoutinho";
22 repo = "async_modbus";
23 rev = "refs/tags/v${version}";
24 hash = "sha256-OTt/rUa3KLVSFOIUyMNHnqHvPtISxTposNFAgoixRfk=";
29 # Fix tests; https://github.com/tiagocoutinho/async_modbus/pull/13
30 url = "https://github.com/tiagocoutinho/async_modbus/commit/d81d8ffe94870f0f505e0c8a0694768c98053ecc.patch";
31 hash = "sha256-mG3XO2nAFYitatkswU7er29BJc/A0IL1rL2Zu4daZ7k=";
36 substituteInPlace pyproject.toml \
37 --replace '"--cov=async_modbus",' "" \
38 --replace '"--cov-report=html", "--cov-report=term",' "" \
39 --replace '"--durations=2", "--verbose"' ""
46 propagatedBuildInputs = [
56 pythonImportsCheck = [
61 description = "Library for Modbus communication";
62 homepage = "https://github.com/tiagocoutinho/async_modbus";
63 license = with licenses; [ gpl3Plus ];
64 maintainers = with maintainers; [ fab ];