mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-09-30 11:50:06 +00:00
python3Packages.jinja2-humanize-extension: init at 0.4.0
jinja2-humanize: add tests
This commit is contained in:
@@ -0,0 +1,47 @@
|
||||
{
|
||||
lib,
|
||||
buildPythonPackage,
|
||||
fetchFromGitHub,
|
||||
setuptools,
|
||||
humanize,
|
||||
jinja2,
|
||||
pytestCheckHook,
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "jinja2-humanize-extension";
|
||||
version = "0.4.0";
|
||||
pyproject = true;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "metwork-framework";
|
||||
repo = "jinja2_humanize_extension";
|
||||
tag = "v${version}";
|
||||
hash = "sha256-bSSwPCPLIWIRhIgaSwHnVTj5mpvwn259GXYeGr5NHBQ=";
|
||||
};
|
||||
|
||||
build-system = [
|
||||
setuptools
|
||||
];
|
||||
|
||||
dependencies = [
|
||||
humanize
|
||||
jinja2
|
||||
];
|
||||
|
||||
pythonImportsCheck = [
|
||||
"jinja2_humanize_extension"
|
||||
];
|
||||
|
||||
nativeCheckInputs = [
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
meta = {
|
||||
description = "A jinja2 extension to use humanize library inside jinja2 templates";
|
||||
homepage = "https://github.com/metwork-framework/jinja2_humanize_extension";
|
||||
changelog = "https://github.com/metwork-framework/jinja2_humanize_extension/blob/${src.tag}/CHANGELOG.md";
|
||||
license = lib.licenses.bsd3;
|
||||
maintainers = with lib.maintainers; [ happysalada ];
|
||||
};
|
||||
}
|
||||
@@ -6733,6 +6733,8 @@ self: super: with self; {
|
||||
|
||||
jinja2-git = callPackage ../development/python-modules/jinja2-git { };
|
||||
|
||||
jinja2-humanize-extension = callPackage ../development/python-modules/jinja2-humanize-extension { };
|
||||
|
||||
jinja2-pluralize = callPackage ../development/python-modules/jinja2-pluralize { };
|
||||
|
||||
jinja2-strcase = callPackage ../development/python-modules/jinja2-strcase { };
|
||||
|
||||
Reference in New Issue
Block a user