1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5
6 # build-system
7 setuptools,
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.16";
20 pyproject = true;
21
22 src = fetchFromGitHub {
23 owner = "bdraco";
24 repo = "pyserial-asyncio-fast";
25 rev = version;
26 hash = "sha256-bEJySiVVy77vSF/M5f3WGxjeay/36vU8oBbmkpDCFrI=";
27 };
28
29 build-system = [ setuptools ];
30
31 dependencies = [ pyserial ];
32
33 pythonImportsCheck = [ "serial_asyncio_fast" ];
34
35 nativeCheckInputs = [
36 pytestCheckHook
37 pytest-asyncio
38 ];
39
40 meta = with lib; {
41 changelog = "https://github.com/home-assistant-libs/pyserial-asyncio-fast/releases/tag/${version}";
42 description = "Fast asyncio extension package for pyserial that implements eager writes";
43 homepage = "https://github.com/bdraco/pyserial-asyncio-fast";
44 license = licenses.bsd3;
45 maintainers = with maintainers; [ hexa ];
46 };
47}