2021-08-22 06:54:55 +01:00
|
|
|
{ lib, python3Packages, fetchFromGitHub }:
|
2018-02-25 16:49:36 +00:00
|
|
|
|
2020-01-04 09:21:00 +00:00
|
|
|
python3Packages.buildPythonApplication rec {
|
2021-07-09 17:56:21 +01:00
|
|
|
pname = "flexget";
|
2021-11-19 07:25:36 +00:00
|
|
|
version = "3.1.153";
|
2016-12-31 09:02:30 +00:00
|
|
|
|
2021-08-22 06:54:55 +01:00
|
|
|
# Fetch from GitHub in order to use `requirements.in`
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "flexget";
|
|
|
|
repo = "flexget";
|
|
|
|
rev = "v${version}";
|
2021-11-19 07:25:36 +00:00
|
|
|
sha256 = "sha256-xGGSm6IXTh89wSt0/DNgbe1mFBNuG9x3YLerJcBYMmI=";
|
2016-12-31 09:02:30 +00:00
|
|
|
};
|
|
|
|
|
2017-05-01 09:06:20 +01:00
|
|
|
postPatch = ''
|
2021-08-22 06:54:55 +01:00
|
|
|
# Symlink requirements.in because upstream uses `pip-compile` which yields
|
|
|
|
# python-version dependent requirements
|
|
|
|
ln -sf requirements.in requirements.txt
|
|
|
|
|
2018-02-25 16:49:36 +00:00
|
|
|
# remove dependency constraints
|
|
|
|
sed 's/==\([0-9]\.\?\)\+//' -i requirements.txt
|
2019-05-30 13:47:00 +01: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 03:37:07 +01:00
|
|
|
'';
|
2017-05-01 09:06:20 +01:00
|
|
|
|
2018-02-25 16:49:36 +00:00
|
|
|
# ~400 failures
|
|
|
|
doCheck = false;
|
2016-12-31 09:02:30 +00:00
|
|
|
|
2020-01-04 09:21:00 +00:00
|
|
|
propagatedBuildInputs = with python3Packages; [
|
2018-12-23 15:30:57 +00:00
|
|
|
# See https://github.com/Flexget/Flexget/blob/master/requirements.in
|
2020-01-04 09:21:00 +00:00
|
|
|
APScheduler
|
|
|
|
beautifulsoup4
|
|
|
|
feedparser
|
|
|
|
guessit
|
|
|
|
html5lib
|
|
|
|
jinja2
|
|
|
|
jsonschema
|
|
|
|
loguru
|
2020-01-20 23:18:18 +00:00
|
|
|
more-itertools
|
2021-10-28 03:52:23 +01:00
|
|
|
psutil
|
2020-01-04 09:21:00 +00:00
|
|
|
pynzb
|
|
|
|
PyRSS2Gen
|
2021-07-03 12:37:24 +01:00
|
|
|
python-dateutil
|
2020-01-04 09:21:00 +00:00
|
|
|
pyyaml
|
|
|
|
rebulk
|
|
|
|
requests
|
2021-10-28 03:52:23 +01:00
|
|
|
rich
|
2020-01-04 09:21:00 +00:00
|
|
|
rpyc
|
|
|
|
sqlalchemy
|
2021-10-28 03:52:23 +01:00
|
|
|
|
|
|
|
# WebUI requirements
|
|
|
|
cherrypy
|
|
|
|
flask-compress
|
|
|
|
flask-cors
|
|
|
|
flask_login
|
|
|
|
flask-restful
|
|
|
|
flask-restx
|
|
|
|
flask
|
|
|
|
pyparsing
|
2020-01-04 09:21:00 +00:00
|
|
|
zxcvbn
|
2021-10-28 03:52:23 +01:00
|
|
|
|
|
|
|
# Plugins requirements
|
2021-03-05 12:46:20 +00:00
|
|
|
transmission-rpc
|
2020-01-04 09:21:00 +00:00
|
|
|
];
|
2016-12-31 09:02:30 +00:00
|
|
|
|
2018-02-25 16:49:36 +00:00
|
|
|
meta = with lib; {
|
2021-07-09 17:56:21 +01:00
|
|
|
homepage = "https://flexget.com/";
|
2020-01-04 09:21:00 +00:00
|
|
|
description = "Multipurpose automation tool for all of your media";
|
2021-07-09 17:56:21 +01:00
|
|
|
license = licenses.mit;
|
2020-01-04 09:22:00 +00:00
|
|
|
maintainers = with maintainers; [ marsam ];
|
2016-12-31 09:02:30 +00:00
|
|
|
};
|
2017-01-04 08:34:16 +00:00
|
|
|
}
|