nixpkgs/pkgs/applications/networking/flexget/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

82 lines
1.7 KiB
Nix
Raw Normal View History

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