1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, poetry-core
5, beautifulsoup4
6, comicon
7, feedparser
8, filetype
9, lxml
10, natsort
11, pillow
12, python-slugify
13, requests
14, typer
15, pyside6
16}:
17
18buildPythonPackage rec {
19 pname = "mandown";
20 version = "1.6.0";
21 format = "pyproject";
22
23 src = fetchFromGitHub {
24 owner = "potatoeggy";
25 repo = "mandown";
26 rev = "refs/tags/v${version}";
27 hash = "sha256-2kFzB1xLVEvO7Vo39lwQsVirRY6Z8GMczWK2b1oVYTg=";
28 };
29
30 nativeBuildInputs = [
31 poetry-core
32 ];
33
34 propagatedBuildInputs = [
35 beautifulsoup4
36 comicon
37 feedparser
38 filetype
39 lxml
40 natsort
41 pillow
42 python-slugify
43 requests
44 typer
45 ];
46
47 passthru.optional-dependencies = {
48 gui = [
49 pyside6
50 ];
51 };
52
53 postPatch = ''
54 substituteInPlace pyproject.toml --replace 'typer = "^0.7.0"' 'typer = "^0"'
55 '';
56
57 pythonImportsCheck = [ "mandown" ];
58
59 meta = with lib; {
60 description = "Comic/manga/webtoon downloader and CBZ/EPUB/MOBI/PDF converter";
61 homepage = "https://github.com/potatoeggy/mandown";
62 license = licenses.agpl3Only;
63 maintainers = with maintainers; [ Scrumplex ];
64 };
65}