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

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

81 lines
1.7 KiB
Nix
Raw Normal View History

2022-02-14 16:02:58 +00:00
{ lib
2022-03-02 20:40:49 +00:00
, python3Packages
2022-02-14 16:02:58 +00:00
, fetchFromGitHub
}:
2018-02-25 16:49:36 +00:00
2022-03-02 20:40:49 +00:00
python3Packages.buildPythonApplication rec {
2021-07-09 16:56:21 +00:00
pname = "flexget";
2023-02-25 09:38:23 +00:00
version = "3.5.27";
2022-11-07 07:48:39 +00:00
format = "pyproject";
2021-08-22 05:54:55 +00:00
# Fetch from GitHub in order to use `requirements.in`
src = fetchFromGitHub {
owner = "flexget";
repo = "flexget";
2022-05-08 02:17:13 +00:00
rev = "refs/tags/v${version}";
2023-02-25 09:38:23 +00:00
hash = "sha256-EeQs7WcNpnz2KrgUel9OF9pwW7WzKJrv5pvsZkV4RVg=";
};
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
2019-05-30 12:47:00 +00: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 02:37:07 +00:00
'';
2017-05-01 08:06:20 +00:00
2018-02-25 16:49:36 +00:00
# ~400 failures
doCheck = false;
2022-03-02 20:40:49 +00:00
propagatedBuildInputs = with python3Packages; [
2022-11-07 07:48:39 +00:00
# See https://github.com/Flexget/Flexget/blob/master/requirements.txt
2020-01-04 09:21:00 +00:00
APScheduler
beautifulsoup4
click
colorama
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
2021-10-28 02:52:23 +00:00
psutil
2020-01-04 09:21:00 +00:00
pynzb
PyRSS2Gen
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
flask-login
2021-10-28 02:52:23 +00:00
flask-restful
flask-restx
flask
pyparsing
werkzeug
2020-01-04 09:21:00 +00:00
zxcvbn
2021-10-28 02:52:23 +00:00
# Plugins requirements
transmission-rpc
2020-01-04 09:21:00 +00:00
];
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;
2020-01-04 09:22:00 +00:00
maintainers = with maintainers; [ marsam ];
};
2017-01-04 08:34:16 +00:00
}