2020-11-04 11:38:27 +00:00
|
|
|
{ lib
|
|
|
|
, python3Packages
|
|
|
|
, fetchFromGitHub
|
|
|
|
, wrapQtAppsHook
|
|
|
|
}:
|
2020-07-14 07:28:13 +01:00
|
|
|
|
|
|
|
with python3Packages;
|
|
|
|
|
|
|
|
buildPythonApplication rec {
|
|
|
|
pname = "inkcut";
|
2020-11-04 11:38:27 +00:00
|
|
|
version = "2.1.2";
|
2020-07-14 07:28:13 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = pname;
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2020-11-04 11:38:27 +00:00
|
|
|
sha256 = "1zn5i69f3kimcwdd2qkqd3hd1hq76a6i5wxxfb91ih2hj04vdbmx";
|
2020-07-14 07:28:13 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ wrapQtAppsHook ];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
enamlx
|
|
|
|
twisted
|
|
|
|
lxml
|
|
|
|
qreactor
|
|
|
|
jsonpickle
|
|
|
|
pyserial
|
|
|
|
pycups
|
|
|
|
qtconsole
|
|
|
|
pyqt5
|
|
|
|
];
|
|
|
|
|
|
|
|
# QtApplication.instance() does not work during tests?
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"inkcut"
|
|
|
|
"inkcut.cli"
|
|
|
|
"inkcut.console"
|
|
|
|
"inkcut.core"
|
|
|
|
"inkcut.device"
|
|
|
|
"inkcut.job"
|
|
|
|
"inkcut.joystick"
|
|
|
|
"inkcut.monitor"
|
|
|
|
"inkcut.preview"
|
|
|
|
];
|
|
|
|
|
|
|
|
dontWrapQtApps = true;
|
|
|
|
makeWrapperArgs = [ "\${qtWrapperArgs[@]}" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://www.codelv.com/projects/inkcut/";
|
|
|
|
description = "Control 2D plotters, cutters, engravers, and CNC machines";
|
|
|
|
license = licenses.gpl3;
|
|
|
|
maintainers = with maintainers; [ raboof ];
|
|
|
|
};
|
|
|
|
}
|