2024-06-20 14:57:18 +00:00
|
|
|
{ lib, python3Packages, fetchFromGitHub, gitUpdater }:
|
2021-04-05 15:23:46 +00:00
|
|
|
|
|
|
|
python3Packages.buildPythonApplication rec {
|
|
|
|
pname = "moodle-dl";
|
2024-06-20 14:57:18 +00:00
|
|
|
version = "2.3.9";
|
2021-04-05 15:23:46 +00:00
|
|
|
|
2024-06-20 14:57:18 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "C0D3D3V";
|
|
|
|
repo = "Moodle-DL";
|
|
|
|
rev = "refs/tags/${version}";
|
|
|
|
hash = "sha256-GTOeqHWtFsuf5KcklEidjBNJP/9rtMGnQFym3PSp+ss=";
|
2021-04-05 15:23:46 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = with python3Packages; [
|
2024-06-20 14:57:18 +00:00
|
|
|
aiodns
|
|
|
|
aiofiles
|
|
|
|
aiohttp
|
2021-04-05 15:23:46 +00:00
|
|
|
certifi
|
2024-06-20 14:57:18 +00:00
|
|
|
colorama
|
|
|
|
colorlog
|
2021-04-05 15:23:46 +00:00
|
|
|
html2text
|
2024-06-20 14:57:18 +00:00
|
|
|
readchar
|
2021-04-05 15:23:46 +00:00
|
|
|
requests
|
2024-06-20 14:57:18 +00:00
|
|
|
sentry-sdk
|
|
|
|
xmpppy
|
|
|
|
yt-dlp
|
2021-04-05 15:23:46 +00:00
|
|
|
];
|
|
|
|
|
2023-03-04 12:14:45 +00:00
|
|
|
# upstream has no tests
|
|
|
|
doCheck = false;
|
|
|
|
|
2024-06-20 14:57:18 +00:00
|
|
|
passthru.updateScript = gitUpdater { };
|
|
|
|
|
2021-04-05 15:23:46 +00:00
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://github.com/C0D3D3V/Moodle-Downloader-2";
|
|
|
|
maintainers = [ maintainers.kmein ];
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Moodle downloader that downloads course content fast from Moodle";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "moodle-dl";
|
2021-04-05 15:23:46 +00:00
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
};
|
|
|
|
}
|