depot/third_party/nixpkgs/pkgs/development/python-modules/reportlab-qrcode/default.nix
Default email 472aeafc57 Project import generated by Copybara.
GitOrigin-RevId: c31898adf5a8ed202ce5bea9f347b1c6871f32d1
2024-10-04 18:56:33 +02:00

50 lines
851 B
Nix

{
lib,
buildPythonPackage,
fetchPypi,
setuptools,
wheel,
qrcode,
reportlab,
pillow,
pytest,
pyzbar,
}:
buildPythonPackage rec {
pname = "reportlab-qrcode";
version = "0.1.6";
pyproject = true;
src = fetchPypi {
inherit pname version;
hash = "sha256-m/oeuA797MEBOJBIG157VIa7TbEbRRVK/O8Arz/oO/o=";
};
nativeBuildInputs = [
setuptools
wheel
];
propagatedBuildInputs = [
qrcode
reportlab
];
optional-dependencies = {
testing = [
pillow
pytest
pyzbar
];
};
pythonImportsCheck = [ "reportlab_qrcode" ];
meta = with lib; {
description = "Allows to create QR codes for use with the ReportLab PDF library";
homepage = "https://pypi.org/project/reportlab-qrcode/";
license = licenses.mit;
maintainers = with maintainers; [ xanderio ];
};
}