1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 poetry-core, 6 pytest-asyncio, 7 pythonOlder, 8 pytestCheckHook, 9}: 10 11buildPythonPackage rec { 12 pname = "uart-devices"; 13 version = "0.1.0"; 14 pyproject = true; 15 16 disabled = pythonOlder "3.8"; 17 18 src = fetchFromGitHub { 19 owner = "bdraco"; 20 repo = "uart-devices"; 21 rev = "refs/tags/v${version}"; 22 hash = "sha256-rmOWyTdOwnlr8Rwsvd2oeZq79LuGVJDAkIW2/9gGrKQ="; 23 }; 24 25 postPatch = '' 26 substituteInPlace pyproject.toml \ 27 --replace-fail "-Wdefault --cov=uart_devices --cov-report=term-missing:skip-covered" "" 28 ''; 29 30 nativeBuildInputs = [ poetry-core ]; 31 32 nativeCheckInputs = [ 33 pytest-asyncio 34 pytestCheckHook 35 ]; 36 37 pythonImportsCheck = [ "uart_devices" ]; 38 39 meta = with lib; { 40 description = "UART Devices for Linux"; 41 homepage = "https://github.com/bdraco/uart-devices"; 42 changelog = "https://github.com/bdraco/uart-devices/blob/${version}/CHANGELOG.md"; 43 license = licenses.mit; 44 maintainers = with maintainers; [ fab ]; 45 platforms = platforms.linux; 46 }; 47}