Unverified Commit 999011cc authored by Nikolay Korotkiy's avatar Nikolay Korotkiy Committed by GitHub
Browse files

thonny: 4.1.4 -> 4.1.6 (#341989)

parents 0465a01b 6cf7d32a
Loading
Loading
Loading
Loading
+85 −0
Original line number Diff line number Diff line
{ lib, fetchFromGitHub, python3, makeDesktopItem, copyDesktopItems }:
{
  lib,
  stdenv,
  fetchFromGitHub,
  python3,
  makeDesktopItem,
  copyDesktopItems,
  desktopToDarwinBundle,
}:

with python3.pkgs;

buildPythonApplication rec {
  pname = "thonny";
  version = "4.1.4";
  version = "4.1.6";

  src = fetchFromGitHub {
    owner = pname;
    repo = pname;
    rev = "refs/tags/v${version}";
    hash = "sha256-f4wR5OPzWbtSqE+hSW2zD8u3pPl5nPTtGvf2LzOXjI4=";
    hash = "sha256-/ms2RESnV3bsJpK1zYYLHNUu1FtA6PntaseTbKMfUMc=";
  };

  nativeBuildInputs = [ copyDesktopItems ];
  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; [
  dependencies =
    with python3.pkgs;
    (
      [
        jedi
        pyserial
        tkinter
@@ -34,12 +50,11 @@ buildPythonApplication rec {
        pyperclip
        asttokens
        send2trash
      ]
      ++ lib.optionals stdenv.isLinux [
        dbus-next
  ];

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

  preFixup = ''
    wrapProgram "$out/bin/thonny" \
@@ -53,7 +68,7 @@ buildPythonApplication rec {
  # Tests need a DISPLAY
  doCheck = false;

  meta = with lib; {
  meta = {
    description = "Python IDE for beginners";
    longDescription = ''
      Thonny is a Python IDE for beginners. It supports different ways
@@ -62,9 +77,9 @@ buildPythonApplication rec {
      for explaining the concepts of references and heap.
    '';
    homepage = "https://www.thonny.org/";
    license = licenses.mit;
    maintainers = with maintainers; [ leenaars ];
    platforms = platforms.unix;
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ leenaars ];
    platforms = lib.platforms.unix;
    mainProgram = "thonny";
  };
}
+0 −2
Original line number Diff line number Diff line
@@ -33605,8 +33605,6 @@ with pkgs;
  thokr = callPackage ../applications/misc/thokr { };
  thonny = callPackage ../applications/editors/thonny { };
  betterbird-unwrapped = callPackage ../applications/networking/mailreaders/betterbird { };
  betterbird = wrapThunderbird betterbird-unwrapped {
    desktopName = "Betterbird";