23b612e36f
GitOrigin-RevId: ae5c332cbb5827f6b1f02572496b141021de335f
51 lines
924 B
Nix
51 lines
924 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, cryptography
|
|
, fetchPypi
|
|
, fonttools
|
|
, lxml
|
|
, pillow
|
|
, python-barcode
|
|
, pythonOlder
|
|
, qrcode
|
|
, requests
|
|
, setuptools
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "borb";
|
|
version = "2.1.21";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-gnsPsvchvcUlWwmhDIazuc8/83ZRKc29VKhIDFSoFlE=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
cryptography
|
|
fonttools
|
|
lxml
|
|
pillow
|
|
python-barcode
|
|
qrcode
|
|
requests
|
|
setuptools
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"borb.pdf"
|
|
];
|
|
|
|
doCheck = false;
|
|
|
|
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; [ marsam ];
|
|
};
|
|
}
|