Unverified Commit f2ac4b85 authored by Weijia Wang's avatar Weijia Wang Committed by GitHub
Browse files

Merge pull request #261559 from natsukium/python311Packages-jinja2-git-update

python311Packages.jinja2-git: unstable-2021-07-20 -> 1.3.0
parents d4a16c5f ab78f552
Loading
Loading
Loading
Loading
+13 −7
Original line number Diff line number Diff line
{ lib
, buildPythonPackage
, fetchFromGitHub
, pythonOlder
, jinja2
, poetry-core
}:

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

  disabled = pythonOlder "3.7";

  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";
    rev = "refs/tags/${version}";
    hash = "sha256-XuN2L3/HLcZ/WPWiCtufDOmkxj+q4I6IOgjrGQHfNLk=";
  };

  nativeBuildInputs = [ poetry-core ];

  propagatedBuildInputs = [ jinja2 ];

  # the tests need to be run on the git repository
  doCheck = false;

  pythonImportsCheck = [ "jinja2_git" ];

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