blob: 3853e79511678a2e19cc415f6c1811079488b6f1 (
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
43
44
45
46
47
48
49
50
51
52
53
54
55
|
{ lib
, buildPythonPackage
, fetchFromGitHub
, cython
, djvulibre
, ghostscript_headless
, packaging
, pkg-config
, requests
, setuptools
, unittestCheckHook
, wheel
}:
buildPythonPackage rec {
pname = "python-djvulibre";
version = "0.9.0";
pyproject = true;
src = fetchFromGitHub {
owner = "FriedrichFroebel";
repo = "python-djvulibre";
rev = version;
hash = "sha256-OrOZFvzDEBwBmIc+i3LjNTh6K2vhe6NWtSJrFTSkrgA=";
};
nativeBuildInputs = [
cython
packaging
pkg-config
setuptools
wheel
];
buildInputs = [
djvulibre
ghostscript_headless
];
preCheck = ''
rm -rf djvu
'';
nativeCheckInputs = [ unittestCheckHook ];
unittestFlagsArray = [ "tests" "-v" ];
meta = with lib; {
description = "Python support for the DjVu image format";
homepage = "https://github.com/FriedrichFroebel/python-djvulibre";
license = licenses.gpl2Only;
changelog = "https://github.com/FriedrichFroebel/python-djvulibre/releases/tag/${version}";
maintainers = with maintainers; [ dansbandit ];
};
}
|