Skip to content

Commit

Permalink
WIP: Flexget 2.12.0
Browse files Browse the repository at this point in the history
Tests are broken, not sure why.
  • Loading branch information
tari committed Feb 27, 2018
1 parent 96be241 commit a5d0126
Showing 1 changed file with 13 additions and 17 deletions.
30 changes: 13 additions & 17 deletions pkgs/applications/networking/flexget/default.nix
Expand Up @@ -9,20 +9,17 @@
with python.pkgs;

buildPythonApplication rec {
version = "2.10.82";
version = "2.12.0";
name = "FlexGet-${version}";

src = fetchFromGitHub {
owner = "Flexget";
repo = "Flexget";
rev = version;
sha256 = "15508ihswfjbkzhf1f0qhn2ar1aiibz2ggp5d6r33icy8xwhpv09";
sha256 = "0yilhvi0579n7yblqykzmccrs36sjzj0vdz117pfvf07rbkf965p";
};

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)
postPatch = ''
substituteInPlace requirements.txt \
--replace "chardet==3.0.3" "chardet" \
Expand All @@ -33,28 +30,27 @@ buildPythonApplication rec {
--replace "zxcvbn-python==4.4.15" "zxcvbn-python" \
--replace "flask-cors==3.0.2" "flask-cors" \
--replace "certifi==2017.4.17" "certifi" \
--replace "apscheduler==3.3.1" "apscheduler" \
--replace "apscheduler==3.5.0" "apscheduler" \
--replace "path.py==10.3.1" "path.py" \
--replace "tempora==1.8" "tempora" \
--replace "cheroot==5.5.0" "cheroot" \
--replace "six==1.10.0" "six" \
--replace "aniso8601==1.2.1" "aniso8601"
--replace "aniso8601==1.2.1" "aniso8601" \
--replace "werkzeug==0.12.2" "werkzeug" \
--replace "tzlocal==1.4" "tzlocal" \
--replace "html5lib==0.999999999" "html5lib" \
--replace "plumbum==1.6.3" "plumbum" \
--replace "idna==2.5" "idna" \
--replace "requests==2.16.5" "requests" \
--replace "urllib3==1.21.1" "urllib3"
'';

checkPhase = ''
export HOME=.
py.test --disable-pytest-warnings -k "not test_quality_failures \
and not test_group_quality \
and not crash_report \
and not test_multi_episode \
and not test_double_episodes \
and not test_inject_force \
and not test_double_prefered \
and not test_double \
and not test_non_ascii"
py.test --disable-pytest-warnings -k ""
'';

buildInputs = [ pytest mock vcrpy pytest-catchlog boto3 ];
buildInputs = [ pytest mock vcrpy boto3 ];
propagatedBuildInputs = [
feedparser sqlalchemy pyyaml chardet
beautifulsoup4 html5lib PyRSS2Gen pynzb
Expand Down

0 comments on commit a5d0126

Please sign in to comment.