From e0f783ca387bddfdddc3340eb3503df4da9fb10e Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Mon, 14 Feb 2022 12:44:36 +0100 Subject: [PATCH] python3Packages.aiohttp-apispec: 2.2.2 -> 3.0.0b1 --- .../python-modules/aiohttp-apispec/default.nix | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/pkgs/development/python-modules/aiohttp-apispec/default.nix b/pkgs/development/python-modules/aiohttp-apispec/default.nix index b5547cb8a121..b0184c294c27 100644 --- a/pkgs/development/python-modules/aiohttp-apispec/default.nix +++ b/pkgs/development/python-modules/aiohttp-apispec/default.nix @@ -1,16 +1,19 @@ { lib , aiohttp +, apispec , buildPythonPackage , callPackage , fetchFromGitHub , fetchPypi +, jinja2 +, packaging , pythonOlder , webargs }: buildPythonPackage rec { pname = "aiohttp-apispec"; - version = "2.2.2"; + version = "3.0.0b1"; format = "setuptools"; disabled = pythonOlder "3.6"; @@ -19,16 +22,22 @@ buildPythonPackage rec { owner = "maximdanilchenko"; repo = pname; rev = "v${version}"; - hash = "sha256-51QyD56k+1fq2tOqBNUtPRFza9uku79GcvTh8wov04g="; + hash = "sha256-LGdi5ZhJ1G0GxUJVBZnwW3Q+x3Yo9FRV9b6REPlq7As="; }; propagatedBuildInputs = [ aiohttp - apispec3 + apispec jinja2 + packaging webargs ]; + postPatch = '' + substituteInPlace requirements.txt \ + --replace "jinja2<3.0" "jinja2" + ''; + pythonImportsCheck = [ "aiohttp_apispec" ];