2021-08-22 07:53:02 +00:00
|
|
|
{ lib, python3Packages, fetchFromGitHub }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
python3Packages.buildPythonApplication rec {
|
2021-07-14 22:03:04 +00:00
|
|
|
pname = "flexget";
|
2022-02-10 20:34:41 +00:00
|
|
|
version = "3.2.18";
|
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 {
|
|
|
|
owner = "flexget";
|
|
|
|
repo = "flexget";
|
|
|
|
rev = "v${version}";
|
2022-02-10 20:34:41 +00:00
|
|
|
sha256 = "sha256-68tD7I7MI/Cp94tp6c4lQx+8xwRnJTKTF/3SWz4Ddgg=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
postPatch = ''
|
2021-08-22 07:53:02 +00:00
|
|
|
# Symlink requirements.in because upstream uses `pip-compile` which yields
|
|
|
|
# python-version dependent requirements
|
|
|
|
ln -sf requirements.in requirements.txt
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
# remove dependency constraints
|
|
|
|
sed 's/==\([0-9]\.\?\)\+//' -i requirements.txt
|
|
|
|
|
|
|
|
# "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"
|
|
|
|
'';
|
|
|
|
|
|
|
|
# ~400 failures
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
propagatedBuildInputs = with python3Packages; [
|
|
|
|
# See https://github.com/Flexget/Flexget/blob/master/requirements.in
|
|
|
|
APScheduler
|
|
|
|
beautifulsoup4
|
|
|
|
feedparser
|
|
|
|
guessit
|
|
|
|
html5lib
|
|
|
|
jinja2
|
|
|
|
jsonschema
|
|
|
|
loguru
|
|
|
|
more-itertools
|
2021-10-28 06:52:43 +00:00
|
|
|
psutil
|
2020-04-24 23:36:52 +00:00
|
|
|
pynzb
|
|
|
|
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
|
|
|
|
flask_login
|
|
|
|
flask-restful
|
|
|
|
flask-restx
|
|
|
|
flask
|
|
|
|
pyparsing
|
2020-04-24 23:36:52 +00:00
|
|
|
zxcvbn
|
2021-10-28 06:52:43 +00:00
|
|
|
|
|
|
|
# Plugins requirements
|
2021-03-09 03:18:52 +00:00
|
|
|
transmission-rpc
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
2021-07-14 22:03:04 +00:00
|
|
|
homepage = "https://flexget.com/";
|
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;
|
2020-04-24 23:36:52 +00:00
|
|
|
maintainers = with maintainers; [ marsam ];
|
|
|
|
};
|
|
|
|
}
|