1 { lib, stdenv, python3, qt5, fetchFromGitHub, wrapPython, pyqt5, pyserial, dos2unix }:
3 stdenv.mkDerivation rec {
4 pname = "sumorobot-manager";
7 src = fetchFromGitHub {
11 sha256 = "07snhwmqqp52vdgr66vx50zxx0nmpmns5cdjgh50hzlhji2z1fl9";
14 buildInputs = [ python3 ];
19 nativeBuildInputs = [ wrapPython qt5.wrapQtAppsHook dos2unix ];
24 mkdir -p $out/opt/sumorobot-manager
25 cp -r main.py lib res $out/opt/sumorobot-manager
26 chmod -R 644 $out/opt/sumorobot-manager/lib/*
28 dos2unix $out/opt/sumorobot-manager/main.py
29 makeQtWrapper $out/opt/sumorobot-manager/main.py $out/bin/sumorobot-manager \
30 --chdir "$out/opt/sumorobot-manager"
34 patchShebangs $out/opt/sumorobot-manager/main.py
35 wrapPythonProgramsIn "$out/opt" "$pythonPath"
39 description = "Desktop App for managing SumoRobots";
40 mainProgram = "sumorobot-manager";
41 homepage = "https://www.robokoding.com/kits/sumorobot/sumomanager/";
42 license = licenses.mit;
43 maintainers = with maintainers; [ abbradar ];