forked from mirrors/nixpkgs
python.pkgs.jinja2: enable tests
This commit is contained in:
parent
47c782f7f5
commit
46abd5f764
|
@ -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 ];
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue