Skip to content

Commit

Permalink
flexget: minor tweaks, enable tests
Browse files Browse the repository at this point in the history
Signed-off-by: lucasew <[email protected]>
  • Loading branch information
lucasew committed Dec 30, 2024
1 parent c24cf89 commit d9d133a
Show file tree
Hide file tree
Showing 2 changed files with 67 additions and 9 deletions.
73 changes: 64 additions & 9 deletions pkgs/by-name/fl/flexget/package.nix
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
lib,
python3,
python3Packages,
fetchFromGitHub,
}:

python3.pkgs.buildPythonApplication rec {
python3Packages.buildPythonApplication rec {
pname = "flexget";
version = "3.13.5";
pyproject = true;
Expand All @@ -20,9 +20,9 @@ python3.pkgs.buildPythonApplication rec {
# relax dep constrains, keep environment constraints
pythonRelaxDeps = true;

build-system = with python3.pkgs; [ setuptools ];
build-system = with python3Packages; [ setuptools ];

dependencies = with python3.pkgs; [
dependencies = with python3Packages; [
# See https://github.com/Flexget/Flexget/blob/master/pyproject.toml
# and https://github.com/Flexget/Flexget/blob/develop/requirements.txt
apscheduler
Expand All @@ -40,6 +40,7 @@ python3.pkgs.buildPythonApplication rec {
pyrss2gen
python-dateutil
pyyaml
rarfile
rebulk
requests
rich
Expand All @@ -66,6 +67,7 @@ python3.pkgs.buildPythonApplication rec {
deluge-client
cloudscraper
python-telegram-bot
boto3
];

pythonImportsCheck = [
Expand Down Expand Up @@ -93,14 +95,67 @@ python3.pkgs.buildPythonApplication rec {
"flexget.plugins.services.pogcal_acquired"
];

# ~400 failures
doCheck = false;
nativeCheckInputs = [
python3Packages.pytestCheckHook
python3Packages.pytest-vcr
python3Packages.paramiko
];

disabledTests = [
# reach the Internet
"TestExistsMovie"
"TestImdb"
"TestImdbLookup"
"TestImdbParser"
"TestInputHtml"
"TestInputSites"
"TestNfoLookupWithMovies"
"TestNpoWatchlistInfo"
"TestNpoWatchlistLanguageTheTVDBLookup"
"TestNpoWatchlistPremium"
"TestPlex"
"TestRadarrListActions"
"TestRssOnline"
"TestSeriesRootAPI"
"TestSftpDownload"
"TestSftpList"
"TestSonarrListActions"
"TestSubtitleList"
"TestTMDBMovieLookupAPI"
"TestTVDBEpisodeABSLookupAPI"
"TestTVDBEpisodeAirDateLookupAPI"
"TestTVDBEpisodeLookupAPI"
"TestTVDBExpire"
"TestTVDBFavorites"
"TestTVDBLanguages"
"TestTVDBList"
"TestTVDBLookup"
"TestTVDBLookup"
"TestTVDBSeriesActorsLookupAPI"
"TestTVDBSeriesLookupAPI"
"TestTVDSearchIMDBLookupAPI"
"TestTVDSearchNameLookupAPI"
"TestTVDSearchZAP2ITLookupAPI"
"TestTVMAzeSeriesLookupAPI"
"TestTVMazeSeasonLookup"
"TestTVMazeShowLookup"
"TestTVMazeUnicodeLookup"
"TestTaskParsing::test_selected_parser_cleared"
"TestTheTVDBLanguages"
"TestTheTVDBList"
"TestTmdbLookup"
"TestURLRewriters"
"TestURLRewriters::test_ettv"
# others
"TestRegexp"
"TestYamlLists"
];

meta = with lib; {
meta = {
homepage = "https://flexget.com/";
changelog = "https://github.com/Flexget/Flexget/releases/tag/v${version}";
description = "Multipurpose automation tool for all of your media";
license = licenses.mit;
maintainers = with maintainers; [ pbsds ];
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ pbsds ];
};
}
3 changes: 3 additions & 0 deletions pkgs/development/python-modules/flask-restx/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
pytest-flask,
pytest-mock,
pytest-benchmark,
pytest-vcr,
pytestCheckHook,
setuptools,
}:
Expand Down Expand Up @@ -55,6 +56,7 @@ buildPythonPackage rec {
pytest-benchmark
pytest-flask
pytest-mock
pytest-vcr
pytestCheckHook
];

Expand All @@ -70,6 +72,7 @@ buildPythonPackage rec {
];

disabledTests = [
"test_specs_endpoint_host_and_subdomain"
# broken in werkzeug 2.3 upgrade
"test_media_types_method"
"test_media_types_q"
Expand Down

0 comments on commit d9d133a

Please sign in to comment.