Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.3 kB · 61 lines
Nix
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162{ lib, buildPythonPackage, connio, fetchFromGitHub, fetchpatch, pytest-cov-stub, pytestCheckHook, pythonOlder, setuptools, umodbus,}:
buildPythonPackage rec { pname = "async-modbus"; version = "0.2.2"; format = "pyproject";
disabled = pythonOlder "3.7";
src = fetchFromGitHub { owner = "tiagocoutinho"; repo = "async_modbus"; tag = "v${version}"; hash = "sha256-xms2OfX5bHPXswwhLhyh6HFsm1YqDwKclUirxrgL4i0="; };
patches = [ (fetchpatch { # Fix tests; https://github.com/tiagocoutinho/async_modbus/pull/13 url = "https://github.com/tiagocoutinho/async_modbus/commit/d81d8ffe94870f0f505e0c8a0694768c98053ecc.patch"; hash = "sha256-mG3XO2nAFYitatkswU7er29BJc/A0IL1rL2Zu4daZ7k="; }) ];
postPatch = '' substituteInPlace pyproject.toml \ --replace '"--durations=2", "--verbose"' "" '';
nativeBuildInputs = [ setuptools ];
propagatedBuildInputs = [ connio umodbus ];
nativeCheckInputs = [ pytest-cov-stub pytestCheckHook ];
pythonImportsCheck = [ "async_modbus" ];
meta = with lib; { description = "Library for Modbus communication"; homepage = "https://github.com/tiagocoutinho/async_modbus"; license = with licenses; [ gpl3Plus ]; maintainers = with maintainers; [ fab ]; };}