From da55381e2a07f58c325f14704e3328ad3a3a0d61 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Fri, 14 Oct 2022 20:00:13 +0200 Subject: [PATCH] python310Packages.aiocsv: init at 1.2.2 --- .../python-modules/aiocsv/default.nix | 54 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 56 insertions(+) create mode 100644 pkgs/development/python-modules/aiocsv/default.nix diff --git a/pkgs/development/python-modules/aiocsv/default.nix b/pkgs/development/python-modules/aiocsv/default.nix new file mode 100644 index 00000000000..6a4340e5c54 --- /dev/null +++ b/pkgs/development/python-modules/aiocsv/default.nix @@ -0,0 +1,54 @@ +{ lib +, aiofiles +, buildPythonPackage +, cython +, fetchFromGitHub +, pytest-asyncio +, pytestCheckHook +, pythonOlder +}: + +buildPythonPackage rec { + pname = "aiocsv"; + version = "1.2.2"; + format = "setuptools"; + + disabled = pythonOlder "3.7"; + + src = fetchFromGitHub { + owner = "MKuranowski"; + repo = pname; + rev = "refs/tags/v${version}"; + hash = "sha256-lh+yHyHU+XrK4nk1xxrxgF5zGH7lP9jHdJ+m9ncfprw="; + }; + + nativeBuildInputs = [ + cython + ]; + + checkInputs = [ + aiofiles + pytest-asyncio + pytestCheckHook + ]; + + preBuild = '' + export CYTHONIZE=1 + ''; + + pythonImportsCheck = [ + "aiocsv" + ]; + + disabledTestPaths = [ + # Import issue + "tests/test_parser.py" + ]; + + meta = with lib; { + description = "Library for for asynchronous CSV reading/writing"; + homepage = "https://github.com/MKuranowski/aiocsv"; + license = with licenses; [ mit ]; + maintainers = with maintainers; [ fab ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index b49f7e43e1b..a5cfd9d7730 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -291,6 +291,8 @@ in { aiocontextvars = callPackage ../development/python-modules/aiocontextvars { }; + aiocsv = callPackage ../development/python-modules/aiocsv { }; + aiocurrencylayer = callPackage ../development/python-modules/aiocurrencylayer { }; aiodiscover = callPackage ../development/python-modules/aiodiscover { };