1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, jinja2
5, poetry-core
6}:
7
8buildPythonPackage rec {
9 pname = "jinja2-git";
10 version = "unstable-2021-07-20";
11 format = "pyproject";
12
13 src = fetchFromGitHub {
14 owner = "wemake-services";
15 repo = "jinja2-git";
16 # this is master, we can't patch because of poetry.lock :(
17 # luckily, there appear to have been zero API changes since then, only
18 # dependency upgrades
19 rev = "c6d19b207eb6ac07182dc8fea35251d286c82512";
20 sha256 = "0yw0318w57ksn8azmdyk3zmyzfhw0k281fddnxyf4115bx3aph0g";
21 };
22
23 nativeBuildInputs = [ poetry-core ];
24 propagatedBuildInputs = [ jinja2 ];
25 pythonImportsCheck = [ "jinja2_git" ];
26
27 meta = with lib; {
28 homepage = "https://github.com/wemake-services/jinja2-git";
29 description = "Jinja2 extension to handle git-specific things";
30 license = licenses.mit;
31 maintainers = with maintainers; [ cpcloud ];
32 };
33}