nixpkgs-suyu/pkgs/tools/networking/moodle-dl/default.nix
stuebinm ff1a94e523 treewide: add meta.mainProgram to packages with a single binary
The nixpkgs-unstable channel's programs.sqlite was used to identify
packages producing exactly one binary, and these automatically added
to their package definitions wherever possible.
2024-03-19 03:14:51 +01:00

32 lines
727 B
Nix

{ lib, python3Packages, fetchPypi }:
python3Packages.buildPythonApplication rec {
pname = "moodle-dl";
version = "2.2.2.4";
src = fetchPypi {
inherit pname version;
hash = "sha256-76JU/uYJH7nVWCR+d8vvjYCCSMfe/8R9l756AmzZPHU=";
};
propagatedBuildInputs = with python3Packages; [
sentry-sdk
colorama
yt-dlp
certifi
html2text
requests
aioxmpp
];
# upstream has no tests
doCheck = false;
meta = with lib; {
homepage = "https://github.com/C0D3D3V/Moodle-Downloader-2";
maintainers = [ maintainers.kmein ];
description = "A Moodle downloader that downloads course content fast from Moodle";
mainProgram = "moodle-dl";
license = licenses.gpl3Plus;
};
}