1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 setuptools, 6 wheel, 7 qrcode, 8 reportlab, 9 pillow, 10 pytest, 11 pyzbar, 12}: 13 14buildPythonPackage rec { 15 pname = "reportlab-qrcode"; 16 version = "0.1.6"; 17 pyproject = true; 18 19 src = fetchPypi { 20 inherit pname version; 21 hash = "sha256-m/oeuA797MEBOJBIG157VIa7TbEbRRVK/O8Arz/oO/o="; 22 }; 23 24 nativeBuildInputs = [ 25 setuptools 26 wheel 27 ]; 28 29 propagatedBuildInputs = [ 30 qrcode 31 reportlab 32 ]; 33 34 optional-dependencies = { 35 testing = [ 36 pillow 37 pytest 38 pyzbar 39 ]; 40 }; 41 42 pythonImportsCheck = [ "reportlab_qrcode" ]; 43 44 meta = with lib; { 45 description = "Allows to create QR codes for use with the ReportLab PDF library"; 46 homepage = "https://pypi.org/project/reportlab-qrcode/"; 47 license = licenses.mit; 48 maintainers = with maintainers; [ xanderio ]; 49 }; 50}