summary refs log tree commit diff
path: root/pkgs/development/python-modules/jinja2
diff options
context:
space:
mode:
authorMartin Weinelt <hexa@darmstadt.ccc.de>2021-06-02 20:10:37 +0200
committerJonathan Ringer <jonringer117@gmail.com>2021-06-21 16:48:37 -0700
commit19581cb9619d58f76e10293b7a57aaf477db28d9 (patch)
tree78cb3cd4d3f3264ba0a12ad7fe453b725e1beaac /pkgs/development/python-modules/jinja2
parentae2572177e45f0113cda9ad320c7aa495d2d0fd2 (diff)
downloadnixpkgs-19581cb9619d58f76e10293b7a57aaf477db28d9.tar
nixpkgs-19581cb9619d58f76e10293b7a57aaf477db28d9.tar.gz
nixpkgs-19581cb9619d58f76e10293b7a57aaf477db28d9.tar.bz2
nixpkgs-19581cb9619d58f76e10293b7a57aaf477db28d9.tar.lz
nixpkgs-19581cb9619d58f76e10293b7a57aaf477db28d9.tar.xz
nixpkgs-19581cb9619d58f76e10293b7a57aaf477db28d9.tar.zst
nixpkgs-19581cb9619d58f76e10293b7a57aaf477db28d9.zip
python3Packages.jinja2: 2.11.3 -> 3.0.1
Diffstat (limited to 'pkgs/development/python-modules/jinja2')
-rw-r--r--pkgs/development/python-modules/jinja2/default.nix33
1 files changed, 19 insertions, 14 deletions
diff --git a/pkgs/development/python-modules/jinja2/default.nix b/pkgs/development/python-modules/jinja2/default.nix
index dce93d33ab5..d54372379b8 100644
--- a/pkgs/development/python-modules/jinja2/default.nix
+++ b/pkgs/development/python-modules/jinja2/default.nix
@@ -1,39 +1,44 @@
-{ lib, stdenv
+{ lib
+, stdenv
 , buildPythonPackage
-, isPy3k
+, pythonOlder
 , fetchPypi
-, pytest
+, Babel
 , markupsafe
-, setuptools
+, pytestCheckHook
 }:
 
 buildPythonPackage rec {
   pname = "Jinja2";
-  version = "2.11.3";
+  version = "3.0.1";
+  disabled = pythonOlder "3.6";
 
   src = fetchPypi {
     inherit pname version;
-    sha256 = "a6d58433de0ae800347cab1fa3043cebbabe8baa9d29e668f1c768cb87a333c6";
+    sha256 = "197ms1wimxql650245v63wkv04n8bicj549wfhp51bx68x5lhgvh";
   };
 
-  checkInputs = [ pytest ];
-  propagatedBuildInputs = [ markupsafe setuptools ];
+  propagatedBuildInputs = [
+    Babel
+    markupsafe
+  ];
 
   # Multiple tests run out of stack space on 32bit systems with python2.
   # See https://github.com/pallets/jinja/issues/1158
-  doCheck = !stdenv.is32bit || isPy3k;
+  doCheck = !stdenv.is32bit;
 
-  checkPhase = ''
-    pytest -v tests
-  '';
+  checkInputs = [
+    pytestCheckHook
+  ];
 
   meta = with lib; {
     homepage = "http://jinja.pocoo.org/";
     description = "Stand-alone template engine";
     license = licenses.bsd3;
     longDescription = ''
-      Jinja2 is a template engine written in pure Python. It provides a
-      Django inspired non-XML syntax but supports inline expressions and
+      Jinja is a fast, expressive, extensible templating engine. Special
+      placeholders in the template allow writing code similar to Python
+      syntax. Then the template is passed data to render the final document.
       an optional sandboxed environment.
     '';
     maintainers = with maintainers; [ pierron sjourdois ];