diff options
author | Martin Weinelt <hexa@darmstadt.ccc.de> | 2023-10-05 02:06:07 +0200 |
---|---|---|
committer | Martin Weinelt <hexa@darmstadt.ccc.de> | 2023-10-05 05:09:54 +0200 |
commit | 3180c9c4c485c571a0d53f4a09cd8fb2bf60c9ee (patch) | |
tree | 7f2d1f38924cd1691ac79b5de405f643fa06075a /pkgs | |
parent | 88bbc7fb16a8ce24c8386eb90b190ec3ec8775be (diff) |
python311Packages.pyserial-asyncio-fast: init at 0.11
Fast asyncio extension package for pyserial that implements eager writes.
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/development/python-modules/pyserial-asyncio-fast/default.nix | 53 | ||||
-rw-r--r-- | pkgs/top-level/python-packages.nix | 2 |
2 files changed, 55 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/pyserial-asyncio-fast/default.nix b/pkgs/development/python-modules/pyserial-asyncio-fast/default.nix new file mode 100644 index 0000000000000..d935b2c171551 --- /dev/null +++ b/pkgs/development/python-modules/pyserial-asyncio-fast/default.nix @@ -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 ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index a3e8bb1255b9f..67ad8fc444a78 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -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 { }; |