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.3.0";
13 pyproject = true;
14
15 disabled = pythonOlder "3.7";
16
17 src = fetchFromGitHub {
18 owner = "wemake-services";
19 repo = "jinja2-git";
20 rev = "refs/tags/${version}";
21 hash = "sha256-XuN2L3/HLcZ/WPWiCtufDOmkxj+q4I6IOgjrGQHfNLk=";
22 };
23
24 nativeBuildInputs = [ poetry-core ];
25
26 propagatedBuildInputs = [ 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}