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

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

86 lines
1.8 KiB
Nix
Raw Normal View History

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