1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 poetry-core, 6 pytest-asyncio, 7 pytest-cov-stub, 8 pytestCheckHook, 9}: 10 11buildPythonPackage rec { 12 pname = "uart-devices"; 13 version = "0.1.1"; 14 pyproject = true; 15 16 src = fetchFromGitHub { 17 owner = "bdraco"; 18 repo = "uart-devices"; 19 tag = "v${version}"; 20 hash = "sha256-vBwQXeXw9y7eETtlC4dcqGytIgrAm7iomnvoaxhl6JI="; 21 }; 22 23 build-system = [ poetry-core ]; 24 25 nativeCheckInputs = [ 26 pytest-asyncio 27 pytest-cov-stub 28 pytestCheckHook 29 ]; 30 31 pythonImportsCheck = [ "uart_devices" ]; 32 33 meta = with lib; { 34 description = "UART Devices for Linux"; 35 homepage = "https://github.com/bdraco/uart-devices"; 36 changelog = "https://github.com/bdraco/uart-devices/blob/${src.tag}/CHANGELOG.md"; 37 license = licenses.mit; 38 maintainers = with maintainers; [ fab ]; 39 platforms = platforms.linux; 40 }; 41}