nixpkgs/pkgs/by-name/mo/moodle-dl/package.nix

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

42 lines
906 B
Nix
Raw Normal View History

2024-04-28 08:00:44 +00:00
{ lib, python3Packages, fetchFromGitHub, gitUpdater }:
2021-03-30 17:32:10 +00:00
python3Packages.buildPythonApplication rec {
pname = "moodle-dl";
2024-10-27 22:38:54 +00:00
version = "2.3.12";
2021-03-30 17:32:10 +00:00
2024-04-28 08:00:01 +00:00
src = fetchFromGitHub {
owner = "C0D3D3V";
repo = "Moodle-DL";
rev = "refs/tags/${version}";
2024-10-27 22:38:54 +00:00
hash = "sha256-gf8s0+WhPQwLhS4eg3wzcDPvmhrNEgDx5yiBadpf4kI=";
2021-03-30 17:32:10 +00:00
};
propagatedBuildInputs = with python3Packages; [
2024-04-28 08:00:01 +00:00
aiodns
aiofiles
aiohttp
2021-03-30 17:32:10 +00:00
certifi
2024-04-28 08:00:01 +00:00
colorama
colorlog
2021-03-30 17:32:10 +00:00
html2text
2024-04-28 08:00:01 +00:00
readchar
2021-03-30 17:32:10 +00:00
requests
2024-04-28 08:00:01 +00:00
sentry-sdk
xmpppy
yt-dlp
2021-03-30 17:32:10 +00:00
];
2023-02-26 04:04:58 +00:00
# upstream has no tests
doCheck = false;
2024-04-28 08:00:44 +00:00
passthru.updateScript = gitUpdater { };
2021-03-30 17:32:10 +00:00
meta = with lib; {
homepage = "https://github.com/C0D3D3V/Moodle-Downloader-2";
maintainers = [ maintainers.kmein ];
description = "Moodle downloader that downloads course content fast from Moodle";
mainProgram = "moodle-dl";
2021-03-30 17:32:10 +00:00
license = licenses.gpl3Plus;
};
}