Merge pull request #35557 from rnhmjoj/flexget
flexget: 2.10.82 -> 2.12.8
This commit is contained in:
commit
c32e94c0c5
|
@ -1,80 +1,72 @@
|
||||||
{ lib
|
{ lib, python
|
||||||
, fetchFromGitHub
|
, delugeSupport ? true, deluge ? null
|
||||||
, python
|
|
||||||
, transmission
|
|
||||||
, deluge
|
|
||||||
, config
|
|
||||||
}:
|
}:
|
||||||
|
|
||||||
with python.pkgs;
|
assert delugeSupport -> deluge != null;
|
||||||
|
|
||||||
|
# Flexget have been a trouble maker in the past,
|
||||||
|
# if you see flexget breaking when updating packages, don't worry.
|
||||||
|
# The current state is that we have no active maintainers for this package.
|
||||||
|
# -- Mic92
|
||||||
|
|
||||||
|
let
|
||||||
|
python' = python.override { inherit packageOverrides; };
|
||||||
|
|
||||||
|
packageOverrides = self: super: {
|
||||||
|
sqlalchemy = super.sqlalchemy.overridePythonAttrs (old: rec {
|
||||||
|
version = "1.1.10";
|
||||||
|
src = old.src.override {
|
||||||
|
inherit version;
|
||||||
|
sha256 = "1lvb14qclrx0qf6qqx8a8hkx5akk5lk3dvcqz8760v9hya52pnfv";
|
||||||
|
};
|
||||||
|
});
|
||||||
|
};
|
||||||
|
|
||||||
|
in
|
||||||
|
|
||||||
|
with python'.pkgs;
|
||||||
|
|
||||||
buildPythonApplication rec {
|
buildPythonApplication rec {
|
||||||
version = "2.10.82";
|
pname = "FlexGet";
|
||||||
name = "FlexGet-${version}";
|
version = "2.13.5";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchPypi {
|
||||||
owner = "Flexget";
|
inherit pname version;
|
||||||
repo = "Flexget";
|
sha256 = "1lkmxwy7k4zlcqpigwk8skc2zi8a70vrw21pz80wvmf9yg0wc9z9";
|
||||||
rev = version;
|
|
||||||
sha256 = "15508ihswfjbkzhf1f0qhn2ar1aiibz2ggp5d6r33icy8xwhpv09";
|
|
||||||
};
|
};
|
||||||
|
|
||||||
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 = ''
|
postPatch = ''
|
||||||
substituteInPlace requirements.txt \
|
# remove dependency constraints
|
||||||
--replace "chardet==3.0.3" "chardet" \
|
sed 's/==\([0-9]\.\?\)\+//' -i requirements.txt
|
||||||
--replace "rebulk==0.8.2" "rebulk" \
|
|
||||||
--replace "cherrypy==10.2.2" "cherrypy" \
|
|
||||||
--replace "portend==1.8" "portend" \
|
|
||||||
--replace "sqlalchemy==1.1.10" "sqlalchemy" \
|
|
||||||
--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 "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"
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
checkPhase = ''
|
# ~400 failures
|
||||||
export HOME=.
|
doCheck = false;
|
||||||
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"
|
|
||||||
'';
|
|
||||||
|
|
||||||
buildInputs = [ pytest mock vcrpy pytest-catchlog boto3 ];
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
feedparser sqlalchemy pyyaml chardet
|
feedparser sqlalchemy pyyaml
|
||||||
beautifulsoup4 html5lib PyRSS2Gen pynzb
|
chardet beautifulsoup4 html5lib
|
||||||
rpyc jinja2 jsonschema requests dateutil jsonschema
|
PyRSS2Gen pynzb rpyc jinja2
|
||||||
|
jsonschema requests dateutil
|
||||||
pathpy guessit_2_0 APScheduler
|
pathpy guessit_2_0 APScheduler
|
||||||
terminaltables colorclass
|
terminaltables colorclass
|
||||||
cherrypy flask flask-restful flask-restplus
|
cherrypy flask flask-restful
|
||||||
flask-compress flask_login flask-cors
|
flask-restplus flask-compress
|
||||||
pyparsing safe future zxcvbn-python
|
flask_login flask-cors safe
|
||||||
werkzeug tempora cheroot rebulk portend
|
pyparsing future zxcvbn-python
|
||||||
|
werkzeug tempora cheroot rebulk
|
||||||
|
portend transmissionrpc aniso8601
|
||||||
|
babelfish certifi click futures
|
||||||
|
idna itsdangerous markupsafe
|
||||||
|
plumbum pytz six tzlocal urllib3
|
||||||
|
webencodings werkzeug zxcvbn-python
|
||||||
] ++ lib.optional (pythonOlder "3.4") pathlib
|
] ++ lib.optional (pythonOlder "3.4") pathlib
|
||||||
# enable deluge and transmission plugin support, if they're installed
|
++ lib.optional delugeSupport deluge;
|
||||||
++ lib.optional (config.deluge or false) deluge
|
|
||||||
++ lib.optional (transmission != null) transmissionrpc;
|
|
||||||
|
|
||||||
meta = {
|
meta = with lib; {
|
||||||
homepage = https://flexget.com/;
|
homepage = https://flexget.com/;
|
||||||
description = "Multipurpose automation tool for content like torrents";
|
description = "Multipurpose automation tool for content like torrents";
|
||||||
license = lib.licenses.mit;
|
license = licenses.mit;
|
||||||
maintainers = with lib.maintainers; [ domenkozar tari ];
|
maintainers = with maintainers; [ ];
|
||||||
broken = true; # as of 2018-02-09
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue