1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 pytest-asyncio, 6 pytestCheckHook, 7 pythonOlder, 8 pyserial, 9 sockio, 10}: 11 12buildPythonPackage rec { 13 pname = "serialio"; 14 version = "2.4.0"; 15 format = "setuptools"; 16 17 disabled = pythonOlder "3.7"; 18 19 src = fetchFromGitHub { 20 owner = "tiagocoutinho"; 21 repo = pname; 22 rev = "refs/tags/v${version}"; 23 hash = "sha256-9TRGT0wpoRRcHqnH1XzlMBh0IcVzdEcOzN7hkeYnoW4="; 24 }; 25 26 propagatedBuildInputs = [ 27 pyserial 28 sockio 29 ]; 30 31 # Module has no tests 32 doCheck = false; 33 34 pythonImportsCheck = [ "serialio" ]; 35 36 meta = with lib; { 37 description = "Library for concurrency agnostic serial communication"; 38 homepage = "https://github.com/tiagocoutinho/serialio"; 39 license = with licenses; [ gpl3Plus ]; 40 maintainers = with maintainers; [ fab ]; 41 }; 42}