2019-04-01 14:59:54 +00:00
|
|
|
{ lib, python3 }:
|
2018-02-25 16:49:36 +00:00
|
|
|
|
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
|
2019-04-01 14:59:54 +00:00
|
|
|
python' = python3.override { inherit packageOverrides; };
|
2018-02-25 16:49:36 +00:00
|
|
|
|
|
|
|
packageOverrides = self: super: {
|
2018-07-10 09:24:24 +00:00
|
|
|
guessit = super.guessit.overridePythonAttrs (old: rec {
|
2018-11-22 16:01:48 +00:00
|
|
|
version = "3.0.3";
|
2018-07-10 09:24:24 +00:00
|
|
|
src = old.src.override {
|
|
|
|
inherit version;
|
2018-11-22 16:01:48 +00:00
|
|
|
sha256 = "1q06b3k31bfb8cxjimpf1rkcrwnc596a9cppjw15minvdangl32r";
|
2018-07-10 09:24:24 +00:00
|
|
|
};
|
|
|
|
});
|
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";
|
2019-10-21 14:33:22 +00:00
|
|
|
version = "2.21.25";
|
2016-12-31 09:02:30 +00:00
|
|
|
|
2018-02-25 16:49:36 +00:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-10-21 14:33:22 +00:00
|
|
|
sha256 = "0l77fgg0w5dca1bwk4fcc1yz1g7njb0x07yx4bazyg821gl15rc9";
|
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
|
2019-05-30 12:47:00 +00:00
|
|
|
|
|
|
|
# "zxcvbn-python" was renamed to "zxcvbn", and we don't have the former in
|
|
|
|
# nixpkgs. See: https://github.com/NixOS/nixpkgs/issues/62110
|
|
|
|
substituteInPlace requirements.txt --replace "zxcvbn-python" "zxcvbn"
|
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-12-23 15:30:57 +00:00
|
|
|
# See https://github.com/Flexget/Flexget/blob/master/requirements.in
|
2018-02-25 16:49:36 +00:00
|
|
|
feedparser sqlalchemy pyyaml
|
2018-12-23 15:30:57 +00:00
|
|
|
beautifulsoup4 html5lib
|
2018-02-25 16:49:36 +00:00
|
|
|
PyRSS2Gen pynzb rpyc jinja2
|
2018-12-23 15:30:57 +00:00
|
|
|
requests dateutil jsonschema
|
2019-04-01 14:59:54 +00:00
|
|
|
pathpy guessit rebulk 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
|
2018-12-23 15:30:57 +00:00
|
|
|
flask_login flask-cors
|
2019-05-30 12:47:00 +00:00
|
|
|
pyparsing zxcvbn future
|
2019-04-01 14:59:54 +00:00
|
|
|
progressbar
|
2018-12-23 15:30:57 +00:00
|
|
|
# Optional requirements
|
|
|
|
deluge-client
|
2019-01-10 14:54:39 +00:00
|
|
|
# Plugins
|
|
|
|
transmissionrpc
|
2018-12-23 15:30:57 +00:00
|
|
|
] ++ lib.optional (pythonOlder "3.4") pathlib;
|
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
|
|
|
}
|