python310Packages.jinja2-time: normalise attr and path, enable tests, cleanups
This commit is contained in:
parent
5ff52d0441
commit
48932d3408
|
@ -1,6 +1,6 @@
|
|||
{ lib, buildPythonPackage, fetchPypi, isPyPy
|
||||
, pytest, pytest-cov, pytest-mock, freezegun
|
||||
, jinja2, future, binaryornot, click, jinja2_time, requests
|
||||
, jinja2, future, binaryornot, click, jinja2-time, requests
|
||||
, python-slugify
|
||||
, pyyaml
|
||||
}:
|
||||
|
@ -23,7 +23,7 @@ buildPythonPackage rec {
|
|||
jinja2
|
||||
click
|
||||
pyyaml
|
||||
jinja2_time
|
||||
jinja2-time
|
||||
python-slugify
|
||||
requests
|
||||
];
|
||||
|
|
|
@ -1,25 +1,40 @@
|
|||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchpatch
|
||||
, fetchPypi
|
||||
, arrow
|
||||
, freezegun
|
||||
, jinja2
|
||||
, pytestCheckHook
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
version = "0.2.0";
|
||||
pname = "jinja2-time";
|
||||
version = "0.2.0";
|
||||
|
||||
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";
|
||||
sha256 = "sha256-zh4PpAj2GtpgaEap/Yvu6DNY84AwH/YTJlUPRRHPyTs=";
|
||||
})
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [ arrow jinja2 ];
|
||||
|
||||
checkInputs = [ freezegun pytestCheckHook ];
|
||||
|
||||
pythonImportsCheck = [ "jinja2_time" ];
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://github.com/hackebrot/jinja2-time";
|
||||
description = "Jinja2 Extension for Dates and Times";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ ];
|
||||
};
|
||||
|
||||
}
|
|
@ -100,6 +100,7 @@ mapAliases ({
|
|||
ipaddress = throw "ipaddress has been removed because it is no longer required since python 2.7."; # added 2022-05-30
|
||||
influxgraph = throw "influxgraph has been removed because it is no longer maintained"; # added 2022-07-10
|
||||
itanium_demangler = itanium-demangler; # added 2022-1017
|
||||
jinja2_time = jinja2-time; # added 2022-11-07
|
||||
jupyter_client = jupyter-client; # added 2021-10-15
|
||||
Keras = keras; # added 2021-11-25
|
||||
ldap = python-ldap; # added 2022-09-16
|
||||
|
|
|
@ -4722,7 +4722,7 @@ self: super: with self; {
|
|||
|
||||
jinja2_pluralize = callPackage ../development/python-modules/jinja2_pluralize { };
|
||||
|
||||
jinja2_time = callPackage ../development/python-modules/jinja2_time { };
|
||||
jinja2-time = callPackage ../development/python-modules/jinja2-time { };
|
||||
|
||||
jira = callPackage ../development/python-modules/jira { };
|
||||
|
||||
|
|
Loading…
Reference in a new issue