mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-28 18:03:04 +00:00
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:
commit
f2ac4b8599
@ -1,32 +1,38 @@
|
||||
{ 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 ];
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user