2022-03-05 16:20:37 +00:00
|
|
|
{ lib
|
2023-03-24 00:07:29 +00:00
|
|
|
, python3
|
2024-07-27 06:49:29 +00:00
|
|
|
, python311
|
2022-03-05 16:20:37 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-07-27 06:49:29 +00:00
|
|
|
let
|
|
|
|
python = if (builtins.tryEval python3.pkgs.nose.outPath).success
|
|
|
|
then python3
|
|
|
|
else python311;
|
|
|
|
in
|
|
|
|
|
|
|
|
python.pkgs.buildPythonApplication rec {
|
2021-07-14 22:03:04 +00:00
|
|
|
pname = "flexget";
|
2024-07-27 06:49:29 +00:00
|
|
|
version = "3.11.41";
|
2024-01-02 11:29:13 +00:00
|
|
|
pyproject = true;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-08-22 07:53:02 +00:00
|
|
|
# Fetch from GitHub in order to use `requirements.in`
|
|
|
|
src = fetchFromGitHub {
|
2023-03-24 00:07:29 +00:00
|
|
|
owner = "Flexget";
|
|
|
|
repo = "Flexget";
|
2022-05-18 14:49:53 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2024-07-27 06:49:29 +00:00
|
|
|
hash = "sha256-ZSqkD53fdDnKulVPgM9NWXVFXDR0sZ94mRyV1iKS87o=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
postPatch = ''
|
2022-11-21 17:40:18 +00:00
|
|
|
# remove dependency constraints but keep environment constraints
|
|
|
|
sed 's/[~<>=][^;]*//' -i requirements.txt
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
2024-07-27 06:49:29 +00:00
|
|
|
build-system = with python.pkgs; [
|
2023-08-10 07:59:29 +00:00
|
|
|
setuptools
|
|
|
|
wheel
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-07-27 06:49:29 +00:00
|
|
|
dependencies = with python.pkgs; [
|
|
|
|
# See https://github.com/Flexget/Flexget/blob/master/pyproject.toml
|
2023-03-15 16:39:30 +00:00
|
|
|
apscheduler
|
2020-04-24 23:36:52 +00:00
|
|
|
beautifulsoup4
|
2022-04-27 09:35:20 +00:00
|
|
|
colorama
|
2020-04-24 23:36:52 +00:00
|
|
|
feedparser
|
|
|
|
guessit
|
|
|
|
html5lib
|
|
|
|
jinja2
|
|
|
|
jsonschema
|
|
|
|
loguru
|
2021-10-28 06:52:43 +00:00
|
|
|
psutil
|
2024-07-31 10:19:44 +00:00
|
|
|
pydantic
|
2020-04-24 23:36:52 +00:00
|
|
|
pynzb
|
2023-03-15 16:39:30 +00:00
|
|
|
pyrss2gen
|
2021-07-04 02:40:35 +00:00
|
|
|
python-dateutil
|
2020-04-24 23:36:52 +00:00
|
|
|
pyyaml
|
|
|
|
rebulk
|
|
|
|
requests
|
2021-10-28 06:52:43 +00:00
|
|
|
rich
|
2020-04-24 23:36:52 +00:00
|
|
|
rpyc
|
|
|
|
sqlalchemy
|
2021-10-28 06:52:43 +00:00
|
|
|
|
|
|
|
# WebUI requirements
|
|
|
|
cherrypy
|
|
|
|
flask-compress
|
|
|
|
flask-cors
|
2022-10-21 18:38:19 +00:00
|
|
|
flask-login
|
2021-10-28 06:52:43 +00:00
|
|
|
flask-restx
|
|
|
|
flask
|
2024-07-27 06:49:29 +00:00
|
|
|
packaging
|
2021-10-28 06:52:43 +00:00
|
|
|
pyparsing
|
2022-04-27 09:35:20 +00:00
|
|
|
werkzeug
|
2020-04-24 23:36:52 +00:00
|
|
|
zxcvbn
|
2024-07-27 06:49:29 +00:00
|
|
|
pendulum
|
2021-10-28 06:52:43 +00:00
|
|
|
|
|
|
|
# Plugins requirements
|
2021-03-09 03:18:52 +00:00
|
|
|
transmission-rpc
|
2024-07-27 06:49:29 +00:00
|
|
|
qbittorrent-api
|
|
|
|
deluge-client
|
|
|
|
cloudscraper
|
|
|
|
python-telegram-bot
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
2023-03-15 16:39:30 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"flexget"
|
2024-07-27 06:49:29 +00:00
|
|
|
"flexget.api.core.authentication"
|
|
|
|
"flexget.api.core.database"
|
|
|
|
"flexget.api.core.plugins"
|
|
|
|
"flexget.api.core.schema"
|
|
|
|
"flexget.api.core.server"
|
|
|
|
"flexget.api.core.tasks"
|
|
|
|
"flexget.api.core.user"
|
|
|
|
"flexget.components.thetvdb.api"
|
|
|
|
"flexget.components.tmdb.api"
|
|
|
|
"flexget.components.trakt.api"
|
|
|
|
"flexget.components.tvmaze.api"
|
|
|
|
"flexget.plugins.clients.aria2"
|
|
|
|
"flexget.plugins.clients.deluge"
|
|
|
|
"flexget.plugins.clients.nzbget"
|
|
|
|
"flexget.plugins.clients.pyload"
|
|
|
|
"flexget.plugins.clients.qbittorrent"
|
|
|
|
"flexget.plugins.clients.rtorrent"
|
2023-04-12 12:48:02 +00:00
|
|
|
"flexget.plugins.clients.transmission"
|
2024-07-27 06:49:29 +00:00
|
|
|
"flexget.plugins.services.kodi_library"
|
|
|
|
"flexget.plugins.services.myepisodes"
|
|
|
|
"flexget.plugins.services.pogcal_acquired"
|
2023-03-15 16:39:30 +00:00
|
|
|
];
|
|
|
|
|
2023-08-10 07:59:29 +00:00
|
|
|
# ~400 failures
|
|
|
|
doCheck = false;
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
meta = with lib; {
|
2021-07-14 22:03:04 +00:00
|
|
|
homepage = "https://flexget.com/";
|
2022-12-17 10:02:37 +00:00
|
|
|
changelog = "https://github.com/Flexget/Flexget/releases/tag/v${version}";
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Multipurpose automation tool for all of your media";
|
2021-07-14 22:03:04 +00:00
|
|
|
license = licenses.mit;
|
2024-05-15 15:35:15 +00:00
|
|
|
maintainers = with maintainers; [ pbsds ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|