summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/mandown/default.nix
blob: 3f18f9a419234661d4dc0d0602d9362b0154de71 (plain)
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
{
  beautifulsoup4,
  buildPythonPackage,
  comicon,
  feedparser,
  fetchFromGitHub,
  filetype,
  lib,
  lxml,
  natsort,
  nix-update-script,
  pillow,
  poetry-core,
  pyside6,
  python-slugify,
  requests,
  typer,
}:

buildPythonPackage rec {
  pname = "mandown";
  version = "1.12.2";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "potatoeggy";
    repo = "mandown";
    tag = "v${version}";
    hash = "sha256-kbzh6qbex3PzdE53rx9Sxff1lhh1yYjehdEJ9Srq5gY=";
  };

  build-system = [
    poetry-core
  ];

  dependencies = [
    beautifulsoup4
    comicon
    feedparser
    filetype
    lxml
    natsort
    pillow
    python-slugify
    requests
    typer
  ];

  pythonRelaxDeps = [
    "beautifulsoup4"
    "lxml"
    "pillow"
    "typer"
  ];

  optional-dependencies = {
    gui = [ pyside6 ];
  };

  pythonImportsCheck = [ "mandown" ];

  passthru.updateScript = nix-update-script { };

  meta = {
    changelog = "https://github.com/potatoeggy/mandown/releases/tag/v${version}";
    description = "Comic/manga/webtoon downloader and CBZ/EPUB/MOBI/PDF converter";
    homepage = "https://github.com/potatoeggy/mandown";
    license = lib.licenses.agpl3Only;
    maintainers = with lib.maintainers; [ Scrumplex ];
  };
}