1{ 2 lib, 3 buildPythonPackage, 4 fetchpatch, 5 fetchPypi, 6 arrow, 7 freezegun, 8 jinja2, 9 pytestCheckHook, 10}: 11 12buildPythonPackage rec { 13 pname = "jinja2-time"; 14 version = "0.2.0"; 15 format = "setuptools"; 16 17 src = fetchPypi { 18 inherit pname version; 19 sha256 = "0h0dr7cfpjnjj8bgl2vk9063a53649pn37wnlkd8hxjy656slkni"; 20 }; 21 22 patches = [ 23 # fix usage of arrow in tests 24 (fetchpatch { 25 url = "https://github.com/hackebrot/jinja2-time/pull/19/commits/3b2476c266ba53262352153104ca3501722823a4.patch"; 26 hash = "sha256-zh4PpAj2GtpgaEap/Yvu6DNY84AwH/YTJlUPRRHPyTs="; 27 }) 28 ]; 29 30 propagatedBuildInputs = [ 31 arrow 32 jinja2 33 ]; 34 35 nativeCheckInputs = [ 36 freezegun 37 pytestCheckHook 38 ]; 39 40 pythonImportsCheck = [ "jinja2_time" ]; 41 42 meta = with lib; { 43 homepage = "https://github.com/hackebrot/jinja2-time"; 44 description = "Jinja2 Extension for Dates and Times"; 45 license = licenses.mit; 46 maintainers = [ ]; 47 }; 48}