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