2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
stdenv,
|
|
|
|
fetchPypi,
|
|
|
|
fetchpatch,
|
|
|
|
buildPythonPackage,
|
|
|
|
future,
|
|
|
|
packbits,
|
|
|
|
pillow,
|
|
|
|
pyusb,
|
|
|
|
pytest,
|
|
|
|
mock,
|
|
|
|
click,
|
|
|
|
attrs,
|
|
|
|
lib,
|
2022-01-03 16:56:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "brother-ql";
|
|
|
|
version = "0.9.4";
|
2024-01-02 11:29:13 +00:00
|
|
|
format = "setuptools";
|
2022-01-03 16:56:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
pname = "brother_ql";
|
|
|
|
inherit version;
|
2023-03-15 16:39:30 +00:00
|
|
|
hash = "sha256-H1xXoDnwEsnCBDl/RwAB9267dINCHr3phdDLPGFOhmA=";
|
2022-01-03 16:56:52 +00:00
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
future
|
|
|
|
packbits
|
|
|
|
pillow
|
|
|
|
pyusb
|
|
|
|
click
|
|
|
|
attrs
|
|
|
|
];
|
2022-01-03 16:56:52 +00:00
|
|
|
|
2024-01-02 11:29:13 +00:00
|
|
|
patches = [
|
|
|
|
(fetchpatch {
|
|
|
|
# Make compatible with Pillow>=10.0; https://github.com/pklaus/brother_ql/pull/143
|
|
|
|
name = "brother-ql-pillow10-compat.patch";
|
|
|
|
url = "https://github.com/pklaus/brother_ql/commit/a7e1b94b41f3a6e0f8b365598bc34fb47ca95a6d.patch";
|
|
|
|
hash = "sha256-v3YhmsUWBwE/Vli1SbTQO8q1zbtWYI9iMlVFvz5sxmg=";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2022-01-03 16:56:52 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Python package for the raster language protocol of the Brother QL series label printers";
|
|
|
|
longDescription = ''
|
|
|
|
Python package for the raster language protocol of the Brother QL series label printers
|
|
|
|
(QL-500, QL-550, QL-570, QL-700, QL-710W, QL-720NW, QL-800, QL-820NWB, QL-1050 and more)
|
|
|
|
'';
|
|
|
|
homepage = "https://github.com/pklaus/brother_ql";
|
|
|
|
license = licenses.gpl3;
|
|
|
|
maintainers = with maintainers; [ grahamc ];
|
2023-04-29 16:46:19 +00:00
|
|
|
mainProgram = "brother_ql";
|
2022-01-03 16:56:52 +00:00
|
|
|
};
|
|
|
|
}
|