flexget: 2.8.17 -> 2.10.40

This commit is contained in:
Frederik Rietdijk 2017-05-01 10:06:20 +02:00
parent c0282dc058
commit 4f74213319

View File

@ -1,45 +1,53 @@
{ lib { lib
, pythonPackages , fetchFromGitHub
, fetchurl , python
, transmission , transmission
, deluge , deluge
, config , config
}: }:
with pythonPackages; with python.pkgs;
buildPythonPackage rec { buildPythonApplication rec {
version = "2.8.17"; version = "2.10.40";
name = "FlexGet-${version}"; name = "FlexGet-${version}";
src = fetchurl { src = fetchFromGitHub {
url = "https://github.com/Flexget/Flexget/archive/${version}.tar.gz"; owner = "Flexget";
sha256 = "925e6bf62dfae73194dbf8b963ff2b60fb500f2457463b744086706da94dabd7"; repo = "Flexget";
rev = version;
sha256 = "0hh21yv1lvdfi198snwjabfsdh04fnpjszpgg28wvg5pd1qq8lqv";
}; };
doCheck = true; doCheck = true;
# test_regexp requires that HOME exist, test_filesystem requires a # test_regexp requires that HOME exist, test_filesystem requires a
# unicode-capable filesystem (and setting LC_ALL doesn't work). # unicode-capable filesystem (and setting LC_ALL doesn't work).
# setlocale: LC_ALL: cannot change locale (en_US.UTF-8) # setlocale: LC_ALL: cannot change locale (en_US.UTF-8)
patchPhase = '' postPatch = ''
sed -i '/def test_non_ascii/i\ import pytest\ sed -i '/def test_non_ascii/i\ import pytest\
@pytest.mark.skip' flexget/tests/test_filesystem.py @pytest.mark.skip' flexget/tests/test_filesystem.py
substituteInPlace requirements.txt --replace "guessit<=2.0.4" "guessit"
''; '';
# Disable 3 failing tests caused by guessit upgrade
# https://github.com/Flexget/Flexget/issues/1804
checkPhase = '' checkPhase = ''
export HOME=. export HOME=.
py.test py.test --disable-pytest-warnings -k "not test_date_options and not test_ep_as_quality and not testFromGroup"
''; '';
buildInputs = [ pytest mock vcrpy pytest-catchlog boto3 ]; buildInputs = [ pytest mock vcrpy pytest-catchlog boto3 ];
propagatedBuildInputs = [ propagatedBuildInputs = [
feedparser sqlalchemy pyyaml feedparser sqlalchemy pyyaml
beautifulsoup4 html5lib pyrss2gen pynzb beautifulsoup4 html5lib PyRSS2Gen pynzb
rpyc jinja2 requests2 dateutil jsonschema rpyc jinja2 requests2 dateutil jsonschema
pathpy pathlib guessit apscheduler pathpy guessit APScheduler
terminaltables colorclass terminaltables colorclass
cherrypy flask flask-restful flask-restplus cherrypy flask flask-restful flask-restplus_0_8
flask-compress flask_login flask-cors flask-compress flask_login flask-cors
pyparsing safe future ] pyparsing safe future zxcvbn-python ]
++ lib.optional (pythonOlder "3.4") pathlib
# enable deluge and transmission plugin support, if they're installed # enable deluge and transmission plugin support, if they're installed
++ lib.optional (config.deluge or false) deluge ++ lib.optional (config.deluge or false) deluge
++ lib.optional (transmission != null) transmissionrpc; ++ lib.optional (transmission != null) transmissionrpc;