1{ 2 stdenv, 3 fetchPypi, 4 fetchpatch, 5 buildPythonPackage, 6 future, 7 packbits, 8 pillow, 9 pyusb, 10 pytest, 11 mock, 12 click, 13 attrs, 14 lib, 15}: 16 17buildPythonPackage rec { 18 pname = "brother-ql"; 19 version = "0.9.4"; 20 format = "setuptools"; 21 22 src = fetchPypi { 23 pname = "brother_ql"; 24 inherit version; 25 hash = "sha256-H1xXoDnwEsnCBDl/RwAB9267dINCHr3phdDLPGFOhmA="; 26 }; 27 28 propagatedBuildInputs = [ 29 future 30 packbits 31 pillow 32 pyusb 33 click 34 attrs 35 ]; 36 37 patches = [ 38 (fetchpatch { 39 # Make compatible with Pillow>=10.0; https://github.com/pklaus/brother_ql/pull/143 40 name = "brother-ql-pillow10-compat.patch"; 41 url = "https://github.com/pklaus/brother_ql/commit/a7e1b94b41f3a6e0f8b365598bc34fb47ca95a6d.patch"; 42 hash = "sha256-v3YhmsUWBwE/Vli1SbTQO8q1zbtWYI9iMlVFvz5sxmg="; 43 }) 44 ]; 45 46 meta = with lib; { 47 description = "Python package for the raster language protocol of the Brother QL series label printers"; 48 longDescription = '' 49 Python package for the raster language protocol of the Brother QL series label printers 50 (QL-500, QL-550, QL-570, QL-700, QL-710W, QL-720NW, QL-800, QL-820NWB, QL-1050 and more) 51 ''; 52 homepage = "https://github.com/pklaus/brother_ql"; 53 license = licenses.gpl3; 54 maintainers = with maintainers; [ grahamc ]; 55 mainProgram = "brother_ql"; 56 }; 57}