fa5436e0a7
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
73 lines
1.3 KiB
Nix
73 lines
1.3 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
cryptography,
|
|
fetchFromGitHub,
|
|
fonttools,
|
|
lxml,
|
|
matplotlib,
|
|
pandas,
|
|
pillow,
|
|
python-barcode,
|
|
pythonOlder,
|
|
qrcode,
|
|
pytestCheckHook,
|
|
requests,
|
|
setuptools,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "borb";
|
|
version = "2.1.23";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "jorisschellekens";
|
|
repo = "borb";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-cpih7ijoT4dEdoFjh6qQcnzjWd2zusv4tNgPyrIghvg=";
|
|
};
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
dependencies = [
|
|
cryptography
|
|
fonttools
|
|
lxml
|
|
pillow
|
|
python-barcode
|
|
qrcode
|
|
requests
|
|
setuptools
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
matplotlib
|
|
pandas
|
|
pytestCheckHook
|
|
];
|
|
|
|
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/"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Library for reading, creating and manipulating PDF files in Python";
|
|
homepage = "https://borbpdf.com/";
|
|
changelog = "https://github.com/jorisschellekens/borb/releases/tag/v${version}";
|
|
license = licenses.agpl3Only;
|
|
maintainers = with maintainers; [ ];
|
|
};
|
|
}
|