blob: 4af980332d642423324c3e79eaa38739ecbd0061 (
plain)
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
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
cython,
djvulibre,
setuptools,
ghostscript_headless,
pkg-config,
unittestCheckHook,
}:
buildPythonPackage rec {
pname = "python-djvulibre";
version = "0.9.3";
pyproject = true;
src = fetchFromGitHub {
owner = "FriedrichFroebel";
repo = "python-djvulibre";
tag = version;
hash = "sha256-ntDRntNxVchZm+i+qBbiZlfHAXJRKMin9Hi+BoJQjTM=";
};
build-system = [
cython
djvulibre
ghostscript_headless
pkg-config
setuptools
];
dependencies = [
djvulibre
ghostscript_headless
];
preCheck = ''
rm -rf djvu
rm -rf tests/examples
'';
nativeCheckInputs = [ unittestCheckHook ];
unittestFlagsArray = [
"tests"
"-v"
];
meta = {
description = "Python support for the DjVu image format";
homepage = "https://github.com/FriedrichFroebel/python-djvulibre";
license = lib.licenses.gpl2Only;
changelog = "https://github.com/FriedrichFroebel/python-djvulibre/releases/tag/${src.tag}";
maintainers = with lib.maintainers; [ dansbandit ];
};
}
|