nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 buildPythonPackage,
3 ebooklib,
4 fetchFromGitHub,
5 lib,
6 lxml,
7 nix-update-script,
8 pillow,
9 poetry-core,
10 pypdf,
11 python-slugify,
12}:
13
14buildPythonPackage rec {
15 pname = "comicon";
16 version = "1.5.0";
17 pyproject = true;
18
19 src = fetchFromGitHub {
20 owner = "potatoeggy";
21 repo = "comicon";
22 tag = "v${version}";
23 hash = "sha256-E5Jmk/dQcEuH7kq5RL80smHUuL/Sw0F1wk4V1/4sKSQ=";
24 };
25
26 build-system = [
27 poetry-core
28 ];
29
30 dependencies = [
31 ebooklib
32 lxml
33 pillow
34 pypdf
35 python-slugify
36 ];
37
38 pythonRelaxDeps = [
39 "ebooklib"
40 "lxml"
41 "pillow"
42 "pypdf"
43 ];
44
45 doCheck = false; # test artifacts are not public
46
47 pythonImportsCheck = [ "comicon" ];
48
49 passthru.updateScript = nix-update-script { };
50
51 meta = {
52 changelog = "https://github.com/potatoeggy/comicon/releases/tag/v${version}";
53 description = "Lightweight comic converter library between CBZ, PDF, and EPUB";
54 homepage = "https://github.com/potatoeggy/comicon";
55 license = lib.licenses.agpl3Only;
56 maintainers = with lib.maintainers; [ Scrumplex ];
57 };
58}