Unverified Commit b28301d7 authored by Nikolay Korotkiy's avatar Nikolay Korotkiy
Browse files

thonny: nixfmt-rfc-style

parent 7d0b98b4
Loading
Loading
Loading
Loading
+41 −24
Original line number Diff line number Diff line
{ lib, stdenv, fetchFromGitHub, python3, makeDesktopItem, copyDesktopItems, desktopToDarwinBundle }:
{
  lib,
  stdenv,
  fetchFromGitHub,
  python3,
  makeDesktopItem,
  copyDesktopItems,
  desktopToDarwinBundle,
}:

with python3.pkgs;

@@ -13,19 +21,26 @@ buildPythonApplication rec {
    hash = "sha256-/ms2RESnV3bsJpK1zYYLHNUu1FtA6PntaseTbKMfUMc=";
  };

  nativeBuildInputs = [ copyDesktopItems ]
    ++ lib.optional stdenv.isDarwin desktopToDarwinBundle;
  nativeBuildInputs = [ copyDesktopItems ] ++ lib.optional stdenv.isDarwin desktopToDarwinBundle;

  desktopItems = [ (makeDesktopItem {
  desktopItems = [
    (makeDesktopItem {
      name = "Thonny";
      exec = "thonny";
      icon = "thonny";
      desktopName = "Thonny";
      comment = "Python IDE for beginners";
    categories  = [ "Development" "IDE" ];
  }) ];
      categories = [
        "Development"
        "IDE"
      ];
    })
  ];

  propagatedBuildInputs = with python3.pkgs; ([
  propagatedBuildInputs =
    with python3.pkgs;
    (
      [
        jedi
        pyserial
        tkinter
@@ -35,9 +50,11 @@ buildPythonApplication rec {
        pyperclip
        asttokens
        send2trash
  ] ++ lib.optionals stdenv.isLinux [
      ]
      ++ lib.optionals stdenv.isLinux [
        dbus-next
  ]);
      ]
    );

  preInstall = ''
    export HOME=$(mktemp -d)