python312Packages.aiohttp-jinja2: use pyproject = true, enable tests
This commit is contained in:
@@ -6,12 +6,13 @@
|
||||
, pytest-aiohttp
|
||||
, pytestCheckHook
|
||||
, pythonOlder
|
||||
, setuptools
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "aiohttp-jinja2";
|
||||
version = "1.6";
|
||||
format = "setuptools";
|
||||
pyproject = true;
|
||||
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
@@ -20,7 +21,11 @@ buildPythonPackage rec {
|
||||
hash = "sha256-o6f/UmTlvKUuiuVHu/0HYbcklSMNQ40FtsCRW+YZsOI=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
build-system = [
|
||||
setuptools
|
||||
];
|
||||
|
||||
dependencies = [
|
||||
aiohttp
|
||||
jinja2
|
||||
];
|
||||
@@ -31,8 +36,8 @@ buildPythonPackage rec {
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace setup.cfg \
|
||||
--replace " --cov=aiohttp_jinja2 --cov-report xml --cov-report html --cov-report term" ""
|
||||
substituteInPlace pytest.ini \
|
||||
--replace-fail "--cov=aiohttp_jinja2/ --cov=tests/ --cov-report term" ""
|
||||
'';
|
||||
|
||||
pytestFlagsArray = [
|
||||
@@ -44,10 +49,6 @@ buildPythonPackage rec {
|
||||
"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";
|
||||
|
||||
Reference in New Issue
Block a user