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

python311Packages.jinja2-git: unstable-2021-07-20 -> 1.3.0
This commit is contained in:
Weijia Wang 2023-10-17 22:55:58 +02:00 committed by GitHub
commit f2ac4b8599
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,32 +1,38 @@
{ lib { lib
, buildPythonPackage , buildPythonPackage
, fetchFromGitHub , fetchFromGitHub
, pythonOlder
, jinja2 , jinja2
, poetry-core , poetry-core
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "jinja2-git"; pname = "jinja2-git";
version = "unstable-2021-07-20"; version = "1.3.0";
format = "pyproject"; pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "wemake-services"; owner = "wemake-services";
repo = "jinja2-git"; repo = "jinja2-git";
# this is master, we can't patch because of poetry.lock :( rev = "refs/tags/${version}";
# luckily, there appear to have been zero API changes since then, only hash = "sha256-XuN2L3/HLcZ/WPWiCtufDOmkxj+q4I6IOgjrGQHfNLk=";
# dependency upgrades
rev = "c6d19b207eb6ac07182dc8fea35251d286c82512";
sha256 = "0yw0318w57ksn8azmdyk3zmyzfhw0k281fddnxyf4115bx3aph0g";
}; };
nativeBuildInputs = [ poetry-core ]; nativeBuildInputs = [ poetry-core ];
propagatedBuildInputs = [ jinja2 ]; propagatedBuildInputs = [ jinja2 ];
# the tests need to be run on the git repository
doCheck = false;
pythonImportsCheck = [ "jinja2_git" ]; pythonImportsCheck = [ "jinja2_git" ];
meta = with lib; { meta = with lib; {
homepage = "https://github.com/wemake-services/jinja2-git"; homepage = "https://github.com/wemake-services/jinja2-git";
description = "Jinja2 extension to handle git-specific things"; description = "Jinja2 extension to handle git-specific things";
changelog = "https://github.com/wemake-services/jinja2-git/blob/${src.rev}/CHANGELOG.md";
license = licenses.mit; license = licenses.mit;
maintainers = with maintainers; [ cpcloud ]; maintainers = with maintainers; [ cpcloud ];
}; };