python311Packages.pyserial-asyncio-fast: init at 0.11

Fast asyncio extension package for pyserial that implements eager writes.
This commit is contained in:
Martin Weinelt
2023-10-05 02:06:07 +02:00
parent 88bbc7fb16
commit 3180c9c4c4
2 changed files with 55 additions and 0 deletions

View File

@@ -0,0 +1,53 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
# build-system
, setuptools
, wheel
# dependencies
, pyserial
# tests
, pytestCheckHook
, pytest-asyncio
}:
buildPythonPackage rec {
pname = "pyserial-asyncio-fast";
version = "0.11";
pyproject = true;
src = fetchFromGitHub {
owner = "bdraco";
repo = "pyserial-asyncio-fast";
rev = version;
hash = "sha256-B1CLk7ggI7l+DaMDlnMjl2tfh+evvaf1nxzBpmqMBZk=";
};
nativeBuildInputs = [
setuptools
wheel
];
propagatedBuildInputs = [
pyserial
];
pythonImportsCheck = [
"serial_asyncio_fast"
];
nativeCheckInputs = [
pytestCheckHook
pytest-asyncio
];
meta = with lib; {
description = "Fast asyncio extension package for pyserial that implements eager writes";
homepage = "https://github.com/bdraco/pyserial-asyncio-fast";
license = licenses.bsd3;
maintainers = with maintainers; [ hexa ];
};
}

View File

@@ -10780,6 +10780,8 @@ self: super: with self; {
pyserial-asyncio = callPackage ../development/python-modules/pyserial-asyncio { };
pyserial-asyncio-fast = callPackage ../development/python-modules/pyserial-asyncio-fast { };
pyserial = callPackage ../development/python-modules/pyserial { };
pysftp = callPackage ../development/python-modules/pysftp { };