about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/comicon/default.nix
blob: 8d69ae0fc7440194a3c2b2cd78968d78f8c47344 (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
33
34
35
36
37
38
39
40
41
42
{ lib
, buildPythonPackage
, fetchFromGitHub
, poetry-core
, ebooklib
, lxml
, pillow
, pypdf
}:

buildPythonPackage rec {
  pname = "comicon";
  version = "1.0.0";
  format = "pyproject";

  src = fetchFromGitHub {
    owner = "potatoeggy";
    repo = "comicon";
    rev = "v${version}";
    hash = "sha256-D6nK+GlcG/XqMTH7h7mJcbZCRG2xDHRsnooSTtphDNs=";
  };

  nativeBuildInputs = [
    poetry-core
  ];

  propagatedBuildInputs = [
    ebooklib
    lxml
    pillow
    pypdf
  ];

  pythonImportsCheck = [ "comicon" ];

  meta = with lib; {
    description = "Lightweight comic converter library between CBZ, PDF, and EPUB";
    homepage = "https://github.com/potatoeggy/comicon";
    license = licenses.agpl3Only;
    maintainers = with maintainers; [ Scrumplex ];
  };
}