2022-10-30 15:09:59 +00:00
|
|
|
{ lib
|
|
|
|
, fetchFromGitHub
|
2022-11-21 17:40:18 +00:00
|
|
|
, meerk40t-camera
|
2022-10-30 15:09:59 +00:00
|
|
|
, python3
|
|
|
|
, gtk3
|
|
|
|
, wrapGAppsHook
|
|
|
|
}:
|
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
python3.pkgs.buildPythonApplication rec {
|
2022-10-30 15:09:59 +00:00
|
|
|
pname = "MeerK40t";
|
2022-11-21 17:40:18 +00:00
|
|
|
version = "0.8.1000";
|
2022-10-30 15:09:59 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "meerk40t";
|
|
|
|
repo = pname;
|
|
|
|
rev = "refs/tags/${version}";
|
2022-11-21 17:40:18 +00:00
|
|
|
hash = "sha256-YCcnqaH4Npmct5IBHsnufswRz8bS7mUb1YFwTta/Dxc=";
|
2022-10-30 15:09:59 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
wrapGAppsHook
|
|
|
|
];
|
|
|
|
|
|
|
|
# prevent double wrapping
|
|
|
|
dontWrapGApps = true;
|
|
|
|
|
|
|
|
propagatedBuildInputs = with python3.pkgs; [
|
|
|
|
ezdxf
|
|
|
|
meerk40t-camera
|
|
|
|
opencv4
|
|
|
|
pillow
|
|
|
|
pyserial
|
|
|
|
pyusb
|
|
|
|
setuptools
|
2024-01-13 08:15:51 +00:00
|
|
|
wxpython
|
2022-10-30 15:09:59 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
preFixup = ''
|
|
|
|
gappsWrapperArgs+=(
|
|
|
|
--prefix XDG_DATA_DIRS : "${gtk3}/share/gsettings-schemas/${gtk3.name}"
|
|
|
|
)
|
|
|
|
makeWrapperArgs+=("''${gappsWrapperArgs[@]}")
|
|
|
|
'';
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = with python3.pkgs; [
|
2022-10-30 15:09:59 +00:00
|
|
|
unittestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
preCheck = ''
|
|
|
|
export HOME=$TMPDIR
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
changelog = "https://github.com/meerk40t/meerk40t/releases/tag/${version}";
|
|
|
|
description = "MeerK40t LaserCutter Software";
|
|
|
|
homepage = "https://github.com/meerk40t/meerk40t";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ hexa ];
|
|
|
|
};
|
|
|
|
}
|