2018-02-25 16:49:36 +00:00
|
|
|
{ lib, python
|
|
|
|
, delugeSupport ? true, deluge ? null
|
2016-12-31 09:02:30 +00:00
|
|
|
}:
|
|
|
|
|
2018-02-25 16:49:36 +00:00
|
|
|
assert delugeSupport -> deluge != null;
|
|
|
|
|
2018-03-15 09:13:08 +00:00
|
|
|
# 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
|
|
|
|
|
2018-02-25 16:49:36 +00:00
|
|
|
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";
|
|
|
|
};
|
|
|
|
});
|
2018-07-10 09:24:24 +00:00
|
|
|
|
|
|
|
guessit = super.guessit.overridePythonAttrs (old: rec {
|
|
|
|
version = "2.1.4";
|
|
|
|
src = old.src.override {
|
|
|
|
inherit version;
|
|
|
|
sha256 = "90e6f9fb49246ad27f34f8b9984357e22562ccc3059241cbc08b4fac1d401c56";
|
|
|
|
};
|
|
|
|
});
|
2018-02-25 16:49:36 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
in
|
|
|
|
|
|
|
|
with python'.pkgs;
|
2016-12-31 09:02:30 +00:00
|
|
|
|
2017-05-01 08:06:20 +00:00
|
|
|
buildPythonApplication rec {
|
2018-02-25 16:49:36 +00:00
|
|
|
pname = "FlexGet";
|
2018-10-16 22:48:23 +00:00
|
|
|
version = "2.16.2";
|
2016-12-31 09:02:30 +00:00
|
|
|
|
2018-02-25 16:49:36 +00:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2018-10-16 22:48:23 +00:00
|
|
|
sha256 = "1b9nyrg1r69kmwhpmw9pxdrwa9pnw5mphpdlki85cpxiii2sms9j";
|
2016-12-31 09:02:30 +00:00
|
|
|
};
|
|
|
|
|
2017-05-01 08:06:20 +00:00
|
|
|
postPatch = ''
|
2018-02-25 16:49:36 +00:00
|
|
|
# remove dependency constraints
|
|
|
|
sed 's/==\([0-9]\.\?\)\+//' -i requirements.txt
|
2017-03-31 02:37:07 +00:00
|
|
|
'';
|
2017-05-01 08:06:20 +00:00
|
|
|
|
2018-02-25 16:49:36 +00:00
|
|
|
# ~400 failures
|
|
|
|
doCheck = false;
|
2016-12-31 09:02:30 +00:00
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
2018-02-25 16:49:36 +00:00
|
|
|
feedparser sqlalchemy pyyaml
|
|
|
|
chardet beautifulsoup4 html5lib
|
|
|
|
PyRSS2Gen pynzb rpyc jinja2
|
|
|
|
jsonschema requests dateutil
|
2018-07-10 09:24:24 +00:00
|
|
|
pathpy guessit APScheduler
|
2017-01-04 08:34:16 +00:00
|
|
|
terminaltables colorclass
|
2018-02-25 16:49:36 +00:00
|
|
|
cherrypy flask flask-restful
|
|
|
|
flask-restplus flask-compress
|
|
|
|
flask_login flask-cors safe
|
|
|
|
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
|
2018-07-06 15:54:17 +00:00
|
|
|
backports_functools_lru_cache
|
2017-09-05 09:16:41 +00:00
|
|
|
] ++ lib.optional (pythonOlder "3.4") pathlib
|
2018-02-25 16:49:36 +00:00
|
|
|
++ lib.optional delugeSupport deluge;
|
2016-12-31 09:02:30 +00:00
|
|
|
|
2018-02-25 16:49:36 +00:00
|
|
|
meta = with lib; {
|
|
|
|
homepage = https://flexget.com/;
|
2016-12-31 09:02:30 +00:00
|
|
|
description = "Multipurpose automation tool for content like torrents";
|
2018-02-25 16:49:36 +00:00
|
|
|
license = licenses.mit;
|
2018-03-15 09:13:08 +00:00
|
|
|
maintainers = with maintainers; [ ];
|
2016-12-31 09:02:30 +00:00
|
|
|
};
|
2017-01-04 08:34:16 +00:00
|
|
|
}
|