Merge pull request #185607 from fabaff/aiohttp-jinja2-bump
python310Packages.aiohttp-jinja2: disable tests
This commit is contained in:
commit
82418f4e45
@ -1,22 +1,53 @@
|
||||
{ lib, buildPythonPackage, fetchPypi, aiohttp, jinja2, pytest, pytest-aiohttp, pytest-cov }:
|
||||
{ lib
|
||||
, aiohttp
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, jinja2
|
||||
, pytest-aiohttp
|
||||
, pytestCheckHook
|
||||
, pythonOlder
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "aiohttp-jinja2";
|
||||
version = "1.5";
|
||||
format = "setuptools";
|
||||
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "7c3ba5eac060b691f4e50534af2d79fca2a75712ebd2b25e6fcb1295859f910b";
|
||||
hash = "sha256-fDul6sBgtpH05QU0ry15/KKnVxLr0rJeb8sSlYWfkQs=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ aiohttp jinja2 ];
|
||||
propagatedBuildInputs = [
|
||||
aiohttp
|
||||
jinja2
|
||||
];
|
||||
|
||||
checkInputs = [ pytest pytest-aiohttp pytest-cov ];
|
||||
checkInputs = [
|
||||
pytest-aiohttp
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
checkPhase = ''
|
||||
pytest -W ignore::DeprecationWarning
|
||||
postPatch = ''
|
||||
substituteInPlace setup.cfg \
|
||||
--replace " --cov=aiohttp_jinja2 --cov-report xml --cov-report html --cov-report term" ""
|
||||
'';
|
||||
|
||||
pytestFlagsArray = [
|
||||
"-W"
|
||||
"ignore::DeprecationWarning"
|
||||
];
|
||||
|
||||
pythonImportsCheck = [
|
||||
"aiohttp_jinja2"
|
||||
];
|
||||
|
||||
# Tests are outdated (1.5)
|
||||
# pytest.PytestUnhandledCoroutineWarning: async def functions...
|
||||
doCheck = false;
|
||||
|
||||
meta = with lib; {
|
||||
description = "Jinja2 support for aiohttp";
|
||||
homepage = "https://github.com/aio-libs/aiohttp_jinja2";
|
||||
|
Loading…
Reference in New Issue
Block a user