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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
|
{
buildPythonPackage,
cargo,
fetchFromGitHub,
lib,
pytest-asyncio,
pytest-xdist,
pytestCheckHook,
rustPlatform,
rustc,
setuptools,
setuptools-rust,
setuptools-scm,
socat,
typing-extensions,
}:
buildPythonPackage (finalAttrs: {
pname = "serialx";
version = "0.6.2";
pyproject = true;
src = fetchFromGitHub {
owner = "puddly";
repo = "serialx";
tag = "v${finalAttrs.version}";
hash = "sha256-AtRh6xrmuRf7+ZL8dSxq4cHFOtKNJox5iQF84eDOY80=";
};
cargoDeps = rustPlatform.fetchCargoVendor {
inherit (finalAttrs) pname version src;
hash = "sha256-mI/6Buuk0VMofcD2LmE3+FpZhISAMzSYxe2IDC2iyAE=";
};
build-system = [
setuptools
setuptools-rust
setuptools-scm
];
nativeBuildInputs = [
cargo
rustPlatform.cargoSetupHook
rustc
];
dependencies = [
typing-extensions
];
pythonImportsCheck = [ "serialx" ];
nativeCheckInputs = [
pytest-asyncio
pytest-xdist
pytestCheckHook
socat
];
meta = {
changelog = "https://github.com/puddly/serialx/releases/tag/${finalAttrs.src.tag}";
description = "Serial library with native async support for Windows and POSIX";
homepage = "https://github.com/puddly/serialx";
license = lib.licenses.asl20;
maintainers = [ lib.maintainers.dotlambda ];
};
})
|