nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 aiohttp,
4 buildPythonPackage,
5 fetchPypi,
6 jinja2,
7 pytest-aiohttp,
8 pytest-cov-stub,
9 pytestCheckHook,
10 setuptools,
11}:
12
13buildPythonPackage rec {
14 pname = "aiohttp-jinja2";
15 version = "1.6";
16 pyproject = true;
17
18 src = fetchPypi {
19 inherit pname version;
20 hash = "sha256-o6f/UmTlvKUuiuVHu/0HYbcklSMNQ40FtsCRW+YZsOI=";
21 };
22
23 build-system = [ setuptools ];
24
25 dependencies = [
26 aiohttp
27 jinja2
28 ];
29
30 nativeCheckInputs = [
31 pytest-aiohttp
32 pytest-cov-stub
33 pytestCheckHook
34 ];
35
36 __darwinAllowLocalNetworking = true;
37
38 pytestFlags = [
39 "-Wignore::DeprecationWarning"
40 ];
41
42 pythonImportsCheck = [ "aiohttp_jinja2" ];
43
44 meta = {
45 description = "Jinja2 support for aiohttp";
46 homepage = "https://github.com/aio-libs/aiohttp_jinja2";
47 license = lib.licenses.asl20;
48 maintainers = [ ];
49 };
50}