1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 setuptools,
6 humanize,
7 jinja2,
8 pytestCheckHook,
9}:
10
11buildPythonPackage rec {
12 pname = "jinja2-humanize-extension";
13 version = "0.4.0";
14 pyproject = true;
15
16 src = fetchFromGitHub {
17 owner = "metwork-framework";
18 repo = "jinja2_humanize_extension";
19 tag = "v${version}";
20 hash = "sha256-bSSwPCPLIWIRhIgaSwHnVTj5mpvwn259GXYeGr5NHBQ=";
21 };
22
23 build-system = [
24 setuptools
25 ];
26
27 dependencies = [
28 humanize
29 jinja2
30 ];
31
32 pythonImportsCheck = [
33 "jinja2_humanize_extension"
34 ];
35
36 nativeCheckInputs = [
37 pytestCheckHook
38 ];
39
40 meta = {
41 description = "Jinja2 extension to use humanize library inside jinja2 templates";
42 homepage = "https://github.com/metwork-framework/jinja2_humanize_extension";
43 changelog = "https://github.com/metwork-framework/jinja2_humanize_extension/blob/${src.tag}/CHANGELOG.md";
44 license = lib.licenses.bsd3;
45 maintainers = with lib.maintainers; [ happysalada ];
46 };
47}