2021-07-20 22:42:24 +02:00
|
|
|
{ lib, buildPythonPackage, fetchPypi, aiohttp, jinja2, pytest, pytest-aiohttp, pytest-cov }:
|
2018-02-28 10:01:19 +08:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "aiohttp-jinja2";
|
2021-08-21 19:54:13 +00:00
|
|
|
version = "1.5";
|
2018-02-28 10:01:19 +08:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-08-21 19:54:13 +00:00
|
|
|
sha256 = "7c3ba5eac060b691f4e50534af2d79fca2a75712ebd2b25e6fcb1295859f910b";
|
2018-02-28 10:01:19 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ aiohttp jinja2 ];
|
|
|
|
|
2021-07-20 22:42:24 +02:00
|
|
|
checkInputs = [ pytest pytest-aiohttp pytest-cov ];
|
2018-02-28 10:01:19 +08:00
|
|
|
|
|
|
|
checkPhase = ''
|
2020-08-05 22:50:56 +02:00
|
|
|
pytest -W ignore::DeprecationWarning
|
2018-02-28 10:01:19 +08:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Jinja2 support for aiohttp";
|
2020-03-31 21:11:51 -04:00
|
|
|
homepage = "https://github.com/aio-libs/aiohttp_jinja2";
|
2018-02-28 10:01:19 +08:00
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ peterhoeg ];
|
|
|
|
};
|
|
|
|
}
|