about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/jinja2-git/default.nix
blob: 59b34f6a4fb396c51e9b2271afba2c7522f753b3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
{ lib
, buildPythonPackage
, fetchFromGitHub
, jinja2
, poetry-core
}:

buildPythonPackage rec {
  pname = "jinja2-git";
  version = "unstable-2021-07-20";
  format = "pyproject";

  src = fetchFromGitHub {
    owner = "wemake-services";
    repo = "jinja2-git";
    # this is master, we can't patch because of poetry.lock :(
    # luckily, there appear to have been zero API changes since then, only
    # dependency upgrades
    rev = "c6d19b207eb6ac07182dc8fea35251d286c82512";
    sha256 = "0yw0318w57ksn8azmdyk3zmyzfhw0k281fddnxyf4115bx3aph0g";
  };

  nativeBuildInputs = [ poetry-core ];
  propagatedBuildInputs = [ jinja2 ];
  pythonImportsCheck = [ "jinja2_git" ];

  meta = with lib; {
    homepage = "https://github.com/wemake-services/jinja2-git";
    description = "Jinja2 extension to handle git-specific things";
    license = licenses.mit;
    maintainers = with maintainers; [ cpcloud ];
  };
}