blob: b68ac63bdd6fff86c06ce4a880c23cca74d3e448 (
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
58
59
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
fetchpatch,
setuptools,
setuptools-scm,
pillow,
pypdfium2,
pytest-cov-stub,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "zebrafy";
version = "1.2.2";
pyproject = true;
src = fetchFromGitHub {
owner = "miikanissi";
repo = "zebrafy";
tag = version;
hash = "sha256-B8jrFQh5swDMfYjdMcY0Hh2VAzknDwarDKVAML6F2r4=";
};
patches = [
# fix compatibility with pypdfium2 5.x: https://github.com/miikanissi/zebrafy/pull/20
(fetchpatch {
url = "https://github.com/miikanissi/zebrafy/pull/20/commits/cc15c4a28d9e8aec022d22397ff752600b9ede52.patch";
hash = "sha256-KAjfKPqmTvfoQN7YPLayPyq2sueDASyU/lMCgLCl1RU=";
})
];
build-system = [
setuptools
setuptools-scm
];
dependencies = [
pillow
pypdfium2
];
pythonImportsCheck = [ "zebrafy" ];
nativeCheckInputs = [
pytestCheckHook
pytest-cov-stub
];
meta = {
description = "Python library for converting PDF and images to and from Zebra Programming Language";
downloadPage = "https://github.com/miikanissi/zebrafy";
changelog = "https://github.com/miikanissi/zebrafy/releases/tag/${version}";
homepage = "https://zebrafy.readthedocs.io/en/latest/";
license = lib.licenses.lgpl3Plus;
maintainers = with lib.maintainers; [ ethancedwards8 ];
};
}
|