Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 21.11 52 lines 1.0 kB view raw
1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, aiohttp 5, jinja2 6, markupsafe 7, pytest-aiohttp 8, pytestCheckHook 9, pythonOlder 10, pyyaml 11}: 12 13buildPythonPackage rec { 14 pname = "aiohttp-swagger"; 15 version = "1.0.15"; 16 17 disabled = pythonOlder "3.6"; 18 19 src = fetchFromGitHub { 20 owner = "cr0hn"; 21 repo = pname; 22 rev = version; 23 sha256 = "sha256-M43sNpbXWXFRTd549cZhvhO35nBB6OH+ki36BzSk87Q="; 24 }; 25 26 propagatedBuildInputs = [ 27 aiohttp 28 jinja2 29 markupsafe 30 pyyaml 31 ]; 32 33 checkInputs = [ 34 pytestCheckHook 35 pytest-aiohttp 36 ]; 37 38 postPatch = '' 39 substituteInPlace requirements.txt \ 40 --replace "markupsafe~=1.1.1" "markupsafe>=1.1.1" \ 41 --replace "jinja2~=2.11.2" "jinja2>=2.11.2" 42 ''; 43 44 pythonImportsCheck = [ "aiohttp_swagger" ]; 45 46 meta = with lib; { 47 description = "Swagger API Documentation builder for aiohttp"; 48 homepage = "https://github.com/cr0hn/aiohttp-swagger"; 49 license = licenses.mit; 50 maintainers = with maintainers; [ elohmeier ]; 51 }; 52}