2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
cryptography,
|
|
|
|
fetchFromGitHub,
|
|
|
|
fonttools,
|
|
|
|
lxml,
|
|
|
|
matplotlib,
|
|
|
|
pandas,
|
|
|
|
pillow,
|
|
|
|
python-barcode,
|
|
|
|
pythonOlder,
|
|
|
|
qrcode,
|
|
|
|
pytestCheckHook,
|
|
|
|
requests,
|
|
|
|
setuptools,
|
2024-01-02 11:29:13 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "borb";
|
2024-09-19 14:19:46 +00:00
|
|
|
version = "2.1.25";
|
2024-06-05 15:53:02 +00:00
|
|
|
pyproject = true;
|
2024-01-02 11:29:13 +00:00
|
|
|
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "jorisschellekens";
|
|
|
|
repo = "borb";
|
|
|
|
rev = "refs/tags/v${version}";
|
2024-09-19 14:19:46 +00:00
|
|
|
hash = "sha256-eVxpcYL3ZgwidkSt6tUav3Bkne4lo1QCshdUFqkA0wI=";
|
2024-01-02 11:29:13 +00:00
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
build-system = [ setuptools ];
|
|
|
|
|
|
|
|
dependencies = [
|
2024-01-02 11:29:13 +00:00
|
|
|
cryptography
|
|
|
|
fonttools
|
|
|
|
lxml
|
|
|
|
pillow
|
|
|
|
python-barcode
|
|
|
|
qrcode
|
|
|
|
requests
|
|
|
|
setuptools
|
|
|
|
];
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeCheckInputs = [
|
|
|
|
matplotlib
|
|
|
|
pandas
|
|
|
|
pytestCheckHook
|
2024-01-02 11:29:13 +00:00
|
|
|
];
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "borb.pdf" ];
|
|
|
|
|
|
|
|
disabledTests = [
|
|
|
|
"test_code_files_are_small "
|
|
|
|
"test_image_has_pdfobject_methods"
|
|
|
|
];
|
|
|
|
|
|
|
|
disabledTestPaths = [
|
|
|
|
# Tests require network access
|
|
|
|
"tests/pdf/"
|
|
|
|
"tests/toolkit/"
|
|
|
|
"tests/license/"
|
|
|
|
];
|
2024-01-02 11:29:13 +00:00
|
|
|
|
2024-07-27 06:49:29 +00:00
|
|
|
meta = {
|
2024-01-02 11:29:13 +00:00
|
|
|
description = "Library for reading, creating and manipulating PDF files in Python";
|
|
|
|
homepage = "https://borbpdf.com/";
|
2024-01-25 14:12:00 +00:00
|
|
|
changelog = "https://github.com/jorisschellekens/borb/releases/tag/v${version}";
|
2024-07-27 06:49:29 +00:00
|
|
|
license = lib.licenses.agpl3Only;
|
|
|
|
maintainers = with lib.maintainers; [ getchoo ];
|
2024-01-02 11:29:13 +00:00
|
|
|
};
|
|
|
|
}
|