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