python.pkgs.forbiddenfruit: disable tests because they are missing in tarball

This commit is contained in:
Robert Schütz 2018-12-02 22:34:27 +01:00 committed by Frederik Rietdijk
parent a568a9e79b
commit 5e013d2429

View File

@ -1,6 +1,7 @@
{ stdenv { stdenv
, buildPythonPackage , buildPythonPackage
, fetchPypi , fetchPypi
, nose
}: }:
buildPythonPackage rec { buildPythonPackage rec {
@ -12,6 +13,15 @@ buildPythonPackage rec {
sha256 = "09ee1959fa34936c15417defa28bfd09cf88ad54c15454bc863d465ed42b8922"; sha256 = "09ee1959fa34936c15417defa28bfd09cf88ad54c15454bc863d465ed42b8922";
}; };
checkInputs = [ nose ];
checkPhase = ''
nosetests
'';
# tests directory missing in PyPI tarball
doCheck = false;
meta = with stdenv.lib; { meta = with stdenv.lib; {
description = "Patch python built-in objects"; description = "Patch python built-in objects";
homepage = https://pypi.python.org/pypi/forbiddenfruit; homepage = https://pypi.python.org/pypi/forbiddenfruit;