Files
nixpkgs/pkgs/development/python-modules/aiohttp-jinja2/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

54 lines
899 B
Nix

{
lib,
aiohttp,
buildPythonPackage,
fetchPypi,
jinja2,
pytest-aiohttp,
pytest-cov-stub,
pytestCheckHook,
pythonOlder,
setuptools,
}:
buildPythonPackage rec {
pname = "aiohttp-jinja2";
version = "1.6";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-o6f/UmTlvKUuiuVHu/0HYbcklSMNQ40FtsCRW+YZsOI=";
};
build-system = [ setuptools ];
dependencies = [
aiohttp
jinja2
];
nativeCheckInputs = [
pytest-aiohttp
pytest-cov-stub
pytestCheckHook
];
__darwinAllowLocalNetworking = true;
pytestFlags = [
"-Wignore::DeprecationWarning"
];
pythonImportsCheck = [ "aiohttp_jinja2" ];
meta = {
description = "Jinja2 support for aiohttp";
homepage = "https://github.com/aio-libs/aiohttp_jinja2";
license = lib.licenses.asl20;
maintainers = [ ];
};
}