diff options
-rw-r--r-- | pkgs/by-name/py/pyspread/package.nix (renamed from pkgs/applications/office/pyspread/default.nix) | 33 | ||||
-rw-r--r-- | pkgs/top-level/all-packages.nix | 2 |
2 files changed, 20 insertions, 15 deletions
diff --git a/pkgs/applications/office/pyspread/default.nix b/pkgs/by-name/py/pyspread/package.nix index 61a4c7694b7..c5b578f6e9e 100644 --- a/pkgs/applications/office/pyspread/default.nix +++ b/pkgs/by-name/py/pyspread/package.nix @@ -2,19 +2,24 @@ , python3 , fetchPypi , copyDesktopItems -, wrapQtAppsHook -, qtsvg +, libsForQt5 , makeDesktopItem }: -python3.pkgs.buildPythonApplication rec { +let + # get rid of rec pname = "pyspread"; version = "2.0.2"; - src = fetchPypi { inherit pname version; hash = "sha256-rg2T9Y9FU2a+aWg0XM8jyQB9t8zDVlpad3TjUcx4//8="; }; + inherit (libsForQt5) + qtsvg + wrapQtAppsHook; +in +python3.pkgs.buildPythonApplication { + inherit pname version src; nativeBuildInputs = [ copyDesktopItems @@ -35,18 +40,20 @@ python3.pkgs.buildPythonApplication rec { setuptools ]; + strictDeps = true; + doCheck = false; # it fails miserably with a core dump pythonImportsCheck = [ "pyspread" ]; desktopItems = [ - (makeDesktopItem rec { - name = pname; - exec = name; - icon = name; + (makeDesktopItem { + name = "pyspread"; + exec = "pyspread"; + icon = "pyspread"; desktopName = "Pyspread"; genericName = "Spreadsheet"; - comment = meta.description; + comment = "A Python-oriented spreadsheet application"; categories = [ "Office" "Development" "Spreadsheet" ]; }) ]; @@ -55,7 +62,7 @@ python3.pkgs.buildPythonApplication rec { makeWrapperArgs+=("''${qtWrapperArgs[@]}") ''; - meta = with lib; { + meta = { homepage = "https://pyspread.gitlab.io/"; description = "A Python-oriented spreadsheet application"; longDescription = '' @@ -68,8 +75,8 @@ python3.pkgs.buildPythonApplication rec { that can be accessed from other cells. These objects can represent anything including lists or matrices. ''; - license = with licenses; gpl3Plus; - maintainers = with maintainers; [ AndersonTorres ]; - platforms = with platforms; all; + license = with lib.licenses; [ gpl3Plus ]; + mainProgram = "pyspread"; + maintainers = with lib.maintainers; [ AndersonTorres ]; }; } diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index ba91e206d4d..48a4b0d7437 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -12391,8 +12391,6 @@ with pkgs; pypass = with python3Packages; toPythonApplication pypass; - pyspread = libsForQt5.callPackage ../applications/office/pyspread { }; - teapot = callPackage ../applications/office/teapot { }; ticktick = callPackage ../applications/office/ticktick { }; |