From 6925b07db94437d644a27776cce1f5daf95d2b5e Mon Sep 17 00:00:00 2001 From: Peter Marheine Date: Fri, 31 Mar 2017 02:37:07 +0000 Subject: [PATCH] flexget: enable tests --- pkgs/applications/networking/flexget/default.nix | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/pkgs/applications/networking/flexget/default.nix b/pkgs/applications/networking/flexget/default.nix index 1f5af89f4c0..9ce0f4d16cd 100644 --- a/pkgs/applications/networking/flexget/default.nix +++ b/pkgs/applications/networking/flexget/default.nix @@ -17,13 +17,20 @@ buildPythonPackage rec { sha256 = "925e6bf62dfae73194dbf8b963ff2b60fb500f2457463b744086706da94dabd7"; }; - # Requires vcrpy - doCheck = false; + doCheck = true; + # test_regexp requires that HOME exist, test_filesystem requires a + # unicode-capable filesystem (and setting LC_ALL doesn't work). + # setlocale: LC_ALL: cannot change locale (en_US.UTF-8) + patchPhase = '' + sed -i '/def test_non_ascii/i\ import pytest\ + @pytest.mark.skip' flexget/tests/test_filesystem.py + ''; checkPhase = '' + export HOME=. py.test ''; - buildInputs = [ pytest mock ]; + buildInputs = [ pytest mock vcrpy pytest-catchlog boto3 ]; propagatedBuildInputs = [ feedparser sqlalchemy pyyaml beautifulsoup4 html5lib pyrss2gen pynzb