504525a148
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
50 lines
839 B
Nix
50 lines
839 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, cryptography
|
|
, fetchPypi
|
|
, fonttools
|
|
, lxml
|
|
, pillow
|
|
, python-barcode
|
|
, pythonOlder
|
|
, qrcode
|
|
, requests
|
|
, setuptools
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "borb";
|
|
version = "2.1.20";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-HvPwFtqAPtJrG+O+t8OyQmYHVo6DC7StAjSfAxtuFe4=";
|
|
};
|
|
|
|
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/";
|
|
license = licenses.agpl3Only;
|
|
maintainers = with maintainers; [ marsam ];
|
|
};
|
|
}
|