Files
nixpkgs/pkgs/development/python-modules/jinja2-time/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

49 lines
950 B
Nix

{
lib,
buildPythonPackage,
fetchpatch,
fetchPypi,
arrow,
freezegun,
jinja2,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "jinja2-time";
version = "0.2.0";
format = "setuptools";
src = fetchPypi {
inherit pname version;
sha256 = "0h0dr7cfpjnjj8bgl2vk9063a53649pn37wnlkd8hxjy656slkni";
};
patches = [
# fix usage of arrow in tests
(fetchpatch {
url = "https://github.com/hackebrot/jinja2-time/pull/19/commits/3b2476c266ba53262352153104ca3501722823a4.patch";
hash = "sha256-zh4PpAj2GtpgaEap/Yvu6DNY84AwH/YTJlUPRRHPyTs=";
})
];
propagatedBuildInputs = [
arrow
jinja2
];
nativeCheckInputs = [
freezegun
pytestCheckHook
];
pythonImportsCheck = [ "jinja2_time" ];
meta = {
homepage = "https://github.com/hackebrot/jinja2-time";
description = "Jinja2 Extension for Dates and Times";
license = lib.licenses.mit;
maintainers = [ ];
};
}