Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib 2, aiohttp 3, buildPythonPackage 4, fetchPypi 5, jinja2 6, pytest-aiohttp 7, pytestCheckHook 8, pythonOlder 9}: 10 11buildPythonPackage rec { 12 pname = "aiohttp-jinja2"; 13 version = "1.5.1"; 14 format = "setuptools"; 15 16 disabled = pythonOlder "3.7"; 17 18 src = fetchPypi { 19 inherit pname version; 20 hash = "sha256-jRSbKlfZH3lLM6OU6lvGa1Z/OMdKWmqUd6/CRQ8QXAE="; 21 }; 22 23 propagatedBuildInputs = [ 24 aiohttp 25 jinja2 26 ]; 27 28 nativeCheckInputs = [ 29 pytest-aiohttp 30 pytestCheckHook 31 ]; 32 33 postPatch = '' 34 substituteInPlace setup.cfg \ 35 --replace " --cov=aiohttp_jinja2 --cov-report xml --cov-report html --cov-report term" "" 36 ''; 37 38 pytestFlagsArray = [ 39 "-W" 40 "ignore::DeprecationWarning" 41 ]; 42 43 pythonImportsCheck = [ 44 "aiohttp_jinja2" 45 ]; 46 47 # Tests are outdated (1.5) 48 # pytest.PytestUnhandledCoroutineWarning: async def functions... 49 doCheck = false; 50 51 meta = with lib; { 52 description = "Jinja2 support for aiohttp"; 53 homepage = "https://github.com/aio-libs/aiohttp_jinja2"; 54 license = licenses.asl20; 55 maintainers = with maintainers; [ ]; 56 }; 57}