about summary refs log tree commit diff
path: root/nixpkgs/pkgs/tools/networking/moodle-dl/default.nix
blob: 76c3e4b1a20a45f036da6f100d3d01fc6dcdb6af (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
{ 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;
  };
}