nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 pythonAtLeast,
6
7 # build-system
8 setuptools,
9
10 # dependencies
11 pyserial,
12
13 # tests
14 pytestCheckHook,
15 pytest-asyncio,
16}:
17
18buildPythonPackage rec {
19 pname = "pyserial-asyncio-fast";
20 version = "0.16";
21 pyproject = true;
22
23 # https://github.com/home-assistant-libs/pyserial-asyncio-fast/pull/37
24 disabled = pythonAtLeast "3.14";
25
26 src = fetchFromGitHub {
27 owner = "bdraco";
28 repo = "pyserial-asyncio-fast";
29 rev = version;
30 hash = "sha256-bEJySiVVy77vSF/M5f3WGxjeay/36vU8oBbmkpDCFrI=";
31 };
32
33 build-system = [ setuptools ];
34
35 dependencies = [ pyserial ];
36
37 pythonImportsCheck = [ "serial_asyncio_fast" ];
38
39 nativeCheckInputs = [
40 pytestCheckHook
41 pytest-asyncio
42 ];
43
44 meta = {
45 changelog = "https://github.com/home-assistant-libs/pyserial-asyncio-fast/releases/tag/${version}";
46 description = "Fast asyncio extension package for pyserial that implements eager writes";
47 homepage = "https://github.com/bdraco/pyserial-asyncio-fast";
48 license = lib.licenses.bsd3;
49 maintainers = with lib.maintainers; [ hexa ];
50 };
51}