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
|
{ lib
, buildPythonPackage
, fetchFromGitHub
, poetry-core
, beautifulsoup4
, comicon
, feedparser
, filetype
, lxml
, natsort
, pillow
, python-slugify
, requests
, typer
, pyside6
}:
buildPythonPackage rec {
pname = "mandown";
version = "1.6.0";
format = "pyproject";
src = fetchFromGitHub {
owner = "potatoeggy";
repo = "mandown";
rev = "refs/tags/v${version}";
hash = "sha256-2kFzB1xLVEvO7Vo39lwQsVirRY6Z8GMczWK2b1oVYTg=";
};
nativeBuildInputs = [
poetry-core
];
propagatedBuildInputs = [
beautifulsoup4
comicon
feedparser
filetype
lxml
natsort
pillow
python-slugify
requests
typer
];
passthru.optional-dependencies = {
gui = [
pyside6
];
};
postPatch = ''
substituteInPlace pyproject.toml --replace 'typer = "^0.7.0"' 'typer = "^0"'
'';
pythonImportsCheck = [ "mandown" ];
meta = with lib; {
description = "Comic/manga/webtoon downloader and CBZ/EPUB/MOBI/PDF converter";
homepage = "https://github.com/potatoeggy/mandown";
license = licenses.agpl3Only;
maintainers = with maintainers; [ Scrumplex ];
};
}
|