mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-30 17:43:42 +00:00
ebc2389134
diff of `jq <packages.json 'to_entries[]|"\(.key) \(.value.meta.changelog)"' -r`: https://gist.github.com/pbsds/49b2e2ae5c9b967a0972bbc3c2597c12
63 lines
1.3 KiB
Nix
63 lines
1.3 KiB
Nix
{
|
|
lib,
|
|
fetchFromGitHub,
|
|
python3Packages,
|
|
qt6,
|
|
makeDesktopItem,
|
|
copyDesktopItems,
|
|
}:
|
|
python3Packages.buildPythonApplication rec {
|
|
pname = "labelle";
|
|
version = "1.2.3";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "labelle-org";
|
|
repo = "labelle";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-nGWffQAXlnKiWBUnSo/IKGdWsLdwLr9N4jAURcVGfj8=";
|
|
};
|
|
|
|
postPatch = ''
|
|
sed -i 's/hatch-vcs >=0.3.0,<0.4/hatch-vcs >=0.3.0/' pyproject.toml
|
|
'';
|
|
|
|
buildInputs = [ qt6.qtwayland ];
|
|
|
|
nativeBuildInputs = [
|
|
qt6.wrapQtAppsHook
|
|
python3Packages.hatchling
|
|
python3Packages.hatch-vcs
|
|
copyDesktopItems
|
|
];
|
|
|
|
propagatedBuildInputs = with python3Packages; [
|
|
darkdetect
|
|
pillow
|
|
platformdirs
|
|
pyqrcode
|
|
pyqt6
|
|
python-barcode
|
|
pyusb
|
|
rich
|
|
typer
|
|
];
|
|
|
|
desktopItems = [
|
|
(makeDesktopItem {
|
|
name = "labelle GUI";
|
|
exec = "labelle-gui";
|
|
desktopName = "labelle GUI";
|
|
})
|
|
];
|
|
|
|
meta = {
|
|
changelog = "https://github.com/labelle-org/labelle/releases/tag/${lib.removePrefix "refs/tags/" src.rev}";
|
|
description = "Print labels with LabelManager PnP from Dymo";
|
|
homepage = "https://github.com/labelle-org/labelle";
|
|
license = lib.licenses.asl20;
|
|
maintainers = with lib.maintainers; [ fabianrig ];
|
|
mainProgram = "labelle";
|
|
};
|
|
}
|