3
0
Fork 0
forked from mirrors/nixpkgs

python.pkgs.jinja2: enable tests

This commit is contained in:
Robin Gloster 2017-12-26 19:55:59 +01:00
parent 47c782f7f5
commit 46abd5f764
No known key found for this signature in database
GPG key ID: D5C458DF6DD97EDF

View file

@ -1,20 +1,24 @@
{ stdenv, buildPythonPackage, fetchPypi { stdenv, buildPythonPackage, fetchFromGitHub
, markupsafe }: , pytest, markupsafe }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "Jinja2"; pname = "Jinja2";
version = "2.9.6"; version = "2.9.6";
name = "${pname}-${version}"; name = "${pname}-${version}";
src = fetchPypi { src = fetchFromGitHub {
inherit pname version; owner = "pallets";
sha256 = "1zzrkywhziqffrzks14kzixz7nd4yh2vc0fb04a68vfd2ai03anx"; repo = "jinja";
rev = version;
sha256 = "1xxc5vdhz214aawmllv0fi4ak6d7zac662yb7gn1xfgqfz392pg5";
}; };
checkInputs = [ pytest ];
propagatedBuildInputs = [ markupsafe ]; propagatedBuildInputs = [ markupsafe ];
# No tests included checkPhase = ''
doCheck = false; pytest -v
'';
meta = with stdenv.lib; { meta = with stdenv.lib; {
homepage = http://jinja.pocoo.org/; homepage = http://jinja.pocoo.org/;
@ -24,7 +28,7 @@ buildPythonPackage rec {
Jinja2 is a template engine written in pure Python. It provides a Jinja2 is a template engine written in pure Python. It provides a
Django inspired non-XML syntax but supports inline expressions and Django inspired non-XML syntax but supports inline expressions and
an optional sandboxed environment. an optional sandboxed environment.
''; '';
platforms = platforms.all; platforms = platforms.all;
maintainers = with maintainers; [ pierron garbas sjourdois ]; maintainers = with maintainers; [ pierron garbas sjourdois ];
}; };