1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 6 # build-system 7 setuptools, 8 wheel, 9 10 # dependencies 11 pyserial, 12 13 # tests 14 pytestCheckHook, 15 pytest-asyncio, 16}: 17 18buildPythonPackage rec { 19 pname = "pyserial-asyncio-fast"; 20 version = "0.11"; 21 pyproject = true; 22 23 src = fetchFromGitHub { 24 owner = "bdraco"; 25 repo = "pyserial-asyncio-fast"; 26 rev = version; 27 hash = "sha256-B1CLk7ggI7l+DaMDlnMjl2tfh+evvaf1nxzBpmqMBZk="; 28 }; 29 30 nativeBuildInputs = [ 31 setuptools 32 wheel 33 ]; 34 35 propagatedBuildInputs = [ pyserial ]; 36 37 pythonImportsCheck = [ "serial_asyncio_fast" ]; 38 39 nativeCheckInputs = [ 40 pytestCheckHook 41 pytest-asyncio 42 ]; 43 44 meta = with lib; { 45 description = "Fast asyncio extension package for pyserial that implements eager writes"; 46 homepage = "https://github.com/bdraco/pyserial-asyncio-fast"; 47 license = licenses.bsd3; 48 maintainers = with maintainers; [ hexa ]; 49 }; 50}