summary refs log tree commit diff
path: root/pkgs/applications/networking/flexget/default.nix
diff options
context:
space:
mode:
authorPeter Marheine <peter@taricorp.net>2017-03-31 02:37:07 +0000
committerFrederik Rietdijk <fridh@fridh.nl>2017-05-01 10:10:34 +0200
commit6925b07db94437d644a27776cce1f5daf95d2b5e (patch)
tree33aba9ef10ac660e467cbf025871f61ce993fa46 /pkgs/applications/networking/flexget/default.nix
parente38c47ddd4429592d424a0795790992c78c78a46 (diff)
downloadnixpkgs-6925b07db94437d644a27776cce1f5daf95d2b5e.tar
nixpkgs-6925b07db94437d644a27776cce1f5daf95d2b5e.tar.gz
nixpkgs-6925b07db94437d644a27776cce1f5daf95d2b5e.tar.bz2
nixpkgs-6925b07db94437d644a27776cce1f5daf95d2b5e.tar.lz
nixpkgs-6925b07db94437d644a27776cce1f5daf95d2b5e.tar.xz
nixpkgs-6925b07db94437d644a27776cce1f5daf95d2b5e.tar.zst
nixpkgs-6925b07db94437d644a27776cce1f5daf95d2b5e.zip
flexget: enable tests
Diffstat (limited to 'pkgs/applications/networking/flexget/default.nix')
-rw-r--r--pkgs/applications/networking/flexget/default.nix13
1 files 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