1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 pythonOlder,
6 jinja2,
7 poetry-core,
8}:
9
10buildPythonPackage rec {
11 pname = "jinja2-git";
12 version = "1.4.0";
13 pyproject = true;
14
15 disabled = pythonOlder "3.9";
16
17 src = fetchFromGitHub {
18 owner = "wemake-services";
19 repo = "jinja2-git";
20 tag = version;
21 hash = "sha256-ZcKRLHcZ/rpiUyYK4ifDJaZriN+YyRF1RKCjIKum98U=";
22 };
23
24 build-system = [ poetry-core ];
25
26 dependencies = [ jinja2 ];
27
28 # the tests need to be run on the git repository
29 doCheck = false;
30
31 pythonImportsCheck = [ "jinja2_git" ];
32
33 meta = with lib; {
34 homepage = "https://github.com/wemake-services/jinja2-git";
35 description = "Jinja2 extension to handle git-specific things";
36 changelog = "https://github.com/wemake-services/jinja2-git/blob/${src.rev}/CHANGELOG.md";
37 license = licenses.mit;
38 maintainers = with maintainers; [ cpcloud ];
39 };
40}