diff --git a/pkgs/development/python-modules/pytest-aio/default.nix b/pkgs/development/python-modules/pytest-aio/default.nix new file mode 100644 index 000000000000..b6ecc9eb8829 --- /dev/null +++ b/pkgs/development/python-modules/pytest-aio/default.nix @@ -0,0 +1,43 @@ +{ lib +, buildPythonPackage +, fetchPypi +, pytest +, pytest-mypy +, pytestCheckHook +, pythonOlder +, types-setuptools +}: + +buildPythonPackage rec { + pname = "pytest-aio"; + version = "1.4.1"; + format = "setuptools"; + + disabled = pythonOlder "3.7"; + + src = fetchPypi { + inherit pname version; + sha256 = "ZPG6k+ZNi6FQftIVwr/Lux5rJlo284V/mjtYepNScdQ="; + }; + + buildInputs = [ + pytest + ]; + + checkInputs = [ + pytest-mypy + pytestCheckHook + types-setuptools + ]; + + pythonImportsCheck = [ + "pytest_aio" + ]; + + meta = with lib; { + homepage = "https://github.com/klen/pytest-aio"; + description = "Pytest plugin for aiohttp support"; + license = licenses.mit; + maintainers = with maintainers; [ fab ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 2f415e50f96f..26c70d15e0fa 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -7336,6 +7336,8 @@ in { ''; }); + pytest-aio = callPackage ../development/python-modules/pytest-aio { }; + pytest-aiohttp = callPackage ../development/python-modules/pytest-aiohttp { }; pytest-annotate = callPackage ../development/python-modules/pytest-annotate { };