git.iko.soy/typeable/nixpkgs
on master help sign in
python.pkgs.flask: disable tests
commit6d3f5cb40906b46e9bc1ebac6b6f959a8f4f3b92 authorFrederik Rietdijk <fridh@fridh.nl> dateWed 6 Sep 2017, 17:31 (9 years ago) parentb1504b4
1 file changed+9−1
pkgs/development/python-modules/flask/default.nix+9−1
pkgs/development/python-modules/flask/default.nix+9−1
@@ -1,5 +1,5 @@
11{ stdenv, buildPythonPackage, fetchPypi
2−, itsdangerous, click, werkzeug, jinja2 }:
2+, itsdangerous, click, werkzeug, jinja2, pytest }:
33
44buildPythonPackage rec {
55 name = "${pname}-${version}";
@@ -11,8 +11,16 @@ buildPythonPackage rec {
1111 sha256 = "1hfs2jr2m5lr51xd4gblb28rncd0xrpycz6c07cyqsbv4dhl9x29";
1212 };
1313
14+ checkInputs = [ pytest ];
1415 propagatedBuildInputs = [ itsdangerous click werkzeug jinja2 ];
1516
17+ checkPhase = ''
18+ py.test
19+ '';
20+
21+ # Tests require extra dependencies
22+ doCheck = false;
23+
1624 meta = with stdenv.lib; {
1725 homepage = http://flask.pocoo.org/;
1826 description = "A microframework based on Werkzeug, Jinja 2, and good intentions";