2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
pythonOlder,
|
|
|
|
jinja2,
|
|
|
|
poetry-core,
|
2021-08-22 07:53:02 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "jinja2-git";
|
2023-10-19 13:55:26 +00:00
|
|
|
version = "1.3.0";
|
|
|
|
pyproject = true;
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2021-08-22 07:53:02 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "wemake-services";
|
|
|
|
repo = "jinja2-git";
|
2023-10-19 13:55:26 +00:00
|
|
|
rev = "refs/tags/${version}";
|
|
|
|
hash = "sha256-XuN2L3/HLcZ/WPWiCtufDOmkxj+q4I6IOgjrGQHfNLk=";
|
2021-08-22 07:53:02 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ poetry-core ];
|
2023-10-19 13:55:26 +00:00
|
|
|
|
2021-08-22 07:53:02 +00:00
|
|
|
propagatedBuildInputs = [ jinja2 ];
|
2023-10-19 13:55:26 +00:00
|
|
|
|
|
|
|
# the tests need to be run on the git repository
|
|
|
|
doCheck = false;
|
|
|
|
|
2021-08-22 07:53:02 +00:00
|
|
|
pythonImportsCheck = [ "jinja2_git" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://github.com/wemake-services/jinja2-git";
|
|
|
|
description = "Jinja2 extension to handle git-specific things";
|
2023-10-19 13:55:26 +00:00
|
|
|
changelog = "https://github.com/wemake-services/jinja2-git/blob/${src.rev}/CHANGELOG.md";
|
2021-08-22 07:53:02 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ cpcloud ];
|
|
|
|
};
|
|
|
|
}
|