From 3bbd6325b21ac33fa2c93ea31eef6b1f1ffed792 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Mon, 14 Feb 2022 12:47:22 +0100 Subject: [PATCH] python3Packages.aiohttp-apispec: enable tests --- .../python-modules/aiohttp-apispec/default.nix | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/pkgs/development/python-modules/aiohttp-apispec/default.nix b/pkgs/development/python-modules/aiohttp-apispec/default.nix index b0184c294c27..ffd8e698c58e 100644 --- a/pkgs/development/python-modules/aiohttp-apispec/default.nix +++ b/pkgs/development/python-modules/aiohttp-apispec/default.nix @@ -7,6 +7,8 @@ , fetchPypi , jinja2 , packaging +, pytest-aiohttp +, pytestCheckHook , pythonOlder , webargs }: @@ -33,6 +35,11 @@ buildPythonPackage rec { webargs ]; + checkInputs = [ + pytest-aiohttp + pytestCheckHook + ]; + postPatch = '' substituteInPlace requirements.txt \ --replace "jinja2<3.0" "jinja2" @@ -42,9 +49,6 @@ buildPythonPackage rec { "aiohttp_apispec" ]; - # Requires pytest-sanic, currently broken in nixpkgs - doCheck = false; - meta = with lib; { description = "Build and document REST APIs with aiohttp and apispec"; homepage = "https://github.com/maximdanilchenko/aiohttp-apispec/";