2022-02-14 16:02:58 +00:00
|
|
|
{ lib
|
2023-03-19 04:20:00 +00:00
|
|
|
, python3
|
2023-05-25 14:51:30 +00:00
|
|
|
, fetchPypi
|
2022-02-14 16:02:58 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
}:
|
2018-02-25 16:49:36 +00:00
|
|
|
|
2024-02-11 04:20:00 +00:00
|
|
|
python3.pkgs.buildPythonApplication rec {
|
2021-07-09 16:56:21 +00:00
|
|
|
pname = "flexget";
|
2024-04-28 16:58:53 +00:00
|
|
|
version = "3.11.30";
|
2023-12-27 04:20:00 +00:00
|
|
|
pyproject = true;
|
2016-12-31 09:02:30 +00:00
|
|
|
|
2021-08-22 05:54:55 +00:00
|
|
|
# Fetch from GitHub in order to use `requirements.in`
|
|
|
|
src = fetchFromGitHub {
|
2023-03-19 04:20:00 +00:00
|
|
|
owner = "Flexget";
|
|
|
|
repo = "Flexget";
|
2022-05-08 02:17:13 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2024-04-28 16:58:53 +00:00
|
|
|
hash = "sha256-msvNZ3kE48dNnhtUWLGxulb2iZ78hhyg7fVL2OSOdyY=";
|
2016-12-31 09:02:30 +00:00
|
|
|
};
|
|
|
|
|
2017-05-01 08:06:20 +00:00
|
|
|
postPatch = ''
|
2022-11-07 07:48:39 +00:00
|
|
|
# remove dependency constraints but keep environment constraints
|
|
|
|
sed 's/[~<>=][^;]*//' -i requirements.txt
|
2017-03-31 02:37:07 +00:00
|
|
|
'';
|
2017-05-01 08:06:20 +00:00
|
|
|
|
2024-03-28 08:32:04 +00:00
|
|
|
build-system = with python3.pkgs; [
|
2023-08-05 19:43:29 +00:00
|
|
|
setuptools
|
|
|
|
wheel
|
|
|
|
];
|
2016-12-31 09:02:30 +00:00
|
|
|
|
2024-03-28 08:32:04 +00:00
|
|
|
dependencies = with python3.pkgs; [
|
2022-11-07 07:48:39 +00:00
|
|
|
# See https://github.com/Flexget/Flexget/blob/master/requirements.txt
|
2023-02-19 16:15:19 +00:00
|
|
|
apscheduler
|
2020-01-04 09:21:00 +00:00
|
|
|
beautifulsoup4
|
2022-04-24 15:42:26 +00:00
|
|
|
click
|
|
|
|
colorama
|
2023-03-17 08:16:38 +00:00
|
|
|
commonmark
|
2020-01-04 09:21:00 +00:00
|
|
|
feedparser
|
|
|
|
guessit
|
|
|
|
html5lib
|
|
|
|
jinja2
|
|
|
|
jsonschema
|
|
|
|
loguru
|
2020-01-20 23:18:18 +00:00
|
|
|
more-itertools
|
2022-07-16 04:20:00 +00:00
|
|
|
packaging
|
2024-03-08 14:11:08 +00:00
|
|
|
pendulum
|
2021-10-28 02:52:23 +00:00
|
|
|
psutil
|
2020-01-04 09:21:00 +00:00
|
|
|
pynzb
|
2023-08-05 19:43:29 +00:00
|
|
|
pyrsistent
|
2023-02-19 17:49:38 +00:00
|
|
|
pyrss2gen
|
2021-07-03 11:37:24 +00:00
|
|
|
python-dateutil
|
2020-01-04 09:21:00 +00:00
|
|
|
pyyaml
|
|
|
|
rebulk
|
|
|
|
requests
|
2021-10-28 02:52:23 +00:00
|
|
|
rich
|
2020-01-04 09:21:00 +00:00
|
|
|
rpyc
|
|
|
|
sqlalchemy
|
2022-11-07 07:48:39 +00:00
|
|
|
typing-extensions
|
2021-10-28 02:52:23 +00:00
|
|
|
|
|
|
|
# WebUI requirements
|
|
|
|
cherrypy
|
|
|
|
flask-compress
|
|
|
|
flask-cors
|
2022-10-17 18:39:24 +00:00
|
|
|
flask-login
|
2021-10-28 02:52:23 +00:00
|
|
|
flask-restful
|
|
|
|
flask-restx
|
|
|
|
flask
|
|
|
|
pyparsing
|
2022-04-24 15:42:26 +00:00
|
|
|
werkzeug
|
2020-01-04 09:21:00 +00:00
|
|
|
zxcvbn
|
2021-10-28 02:52:23 +00: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
|
|
|
|
2023-03-10 04:20:00 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"flexget"
|
2023-04-10 04:20:00 +00:00
|
|
|
"flexget.plugins.clients.transmission"
|
2023-03-10 04:20:00 +00:00
|
|
|
];
|
|
|
|
|
2023-08-05 19:43:29 +00:00
|
|
|
# ~400 failures
|
|
|
|
doCheck = false;
|
|
|
|
|
2018-02-25 16:49:36 +00:00
|
|
|
meta = with lib; {
|
2021-07-09 16:56:21 +00:00
|
|
|
homepage = "https://flexget.com/";
|
2022-12-12 09:54:47 +00:00
|
|
|
changelog = "https://github.com/Flexget/Flexget/releases/tag/v${version}";
|
2020-01-04 09:21:00 +00:00
|
|
|
description = "Multipurpose automation tool for all of your media";
|
2021-07-09 16:56:21 +00:00
|
|
|
license = licenses.mit;
|
2024-04-24 04:20:00 +00:00
|
|
|
maintainers = with maintainers; [ ];
|
2016-12-31 09:02:30 +00:00
|
|
|
};
|
2017-01-04 08:34:16 +00:00
|
|
|
}
|