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