Merge pull request #137271 from fabaff/bump-aiohttp-swagger

python3Packages.aiohttp-swagger: 1.0.5 -> 1.0.15
This commit is contained in:
Fabian Affolter 2021-09-11 08:49:30 +02:00 committed by GitHub
commit 1587fa1a7c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2,27 +2,46 @@
, buildPythonPackage , buildPythonPackage
, fetchFromGitHub , fetchFromGitHub
, aiohttp , aiohttp
, flake8
, jinja2 , jinja2
, pytestCheckHook , markupsafe
, pytest-aiohttp , pytest-aiohttp
, pytestCheckHook
, pythonOlder
, pyyaml , pyyaml
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "aiohttp-swagger"; pname = "aiohttp-swagger";
version = "1.0.5"; version = "1.0.15";
disabled = pythonOlder "3.6";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "cr0hn"; owner = "cr0hn";
repo = pname; repo = pname;
rev = "5a59e86f8c5672d2cc97dd35dc730c2f809d95ce"; # corresponds to 1.0.5 on PyPi, no tag on GitHub rev = version;
sha256 = "1vpfk5b3f7s9qzr2q48g776f39xzqppjwm57scfzqqmbldkk5nv7"; sha256 = "sha256-M43sNpbXWXFRTd549cZhvhO35nBB6OH+ki36BzSk87Q=";
}; };
propagatedBuildInputs = [ aiohttp jinja2 pyyaml ]; propagatedBuildInputs = [
aiohttp
jinja2
markupsafe
pyyaml
];
checkInputs = [ flake8 pytestCheckHook pytest-aiohttp ]; checkInputs = [
pytestCheckHook
pytest-aiohttp
];
postPatch = ''
substituteInPlace requirements.txt \
--replace "markupsafe~=1.1.1" "markupsafe>=1.1.1" \
--replace "jinja2~=2.11.2" "jinja2>=2.11.2"
'';
pythonImportsCheck = [ "aiohttp_swagger" ];
meta = with lib; { meta = with lib; {
description = "Swagger API Documentation builder for aiohttp"; description = "Swagger API Documentation builder for aiohttp";