3
0
Fork 0
forked from mirrors/nixpkgs

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
, fetchFromGitHub
, aiohttp
, flake8
, jinja2
, pytestCheckHook
, markupsafe
, pytest-aiohttp
, pytestCheckHook
, pythonOlder
, pyyaml
}:
buildPythonPackage rec {
pname = "aiohttp-swagger";
version = "1.0.5";
version = "1.0.15";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "cr0hn";
repo = pname;
rev = "5a59e86f8c5672d2cc97dd35dc730c2f809d95ce"; # corresponds to 1.0.5 on PyPi, no tag on GitHub
sha256 = "1vpfk5b3f7s9qzr2q48g776f39xzqppjwm57scfzqqmbldkk5nv7";
rev = version;
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; {
description = "Swagger API Documentation builder for aiohttp";