2021-01-21 22:17:44 +00:00
|
|
|
{ lib
|
2022-01-04 02:38:37 +00:00
|
|
|
, copyDesktopItems
|
2021-01-23 23:09:53 +00:00
|
|
|
, makeDesktopItem
|
2022-01-04 02:38:37 +00:00
|
|
|
, python3
|
2021-01-21 22:17:44 +00:00
|
|
|
, qtsvg
|
|
|
|
, wrapQtAppsHook
|
|
|
|
}:
|
|
|
|
|
2021-04-06 21:54:37 +00:00
|
|
|
python3.pkgs.buildPythonApplication rec {
|
2021-01-21 22:17:44 +00:00
|
|
|
pname = "pyspread";
|
2022-01-04 02:38:37 +00:00
|
|
|
version = "2.0.2";
|
2021-01-21 22:17:44 +00:00
|
|
|
|
2021-04-06 21:54:37 +00:00
|
|
|
src = python3.pkgs.fetchPypi {
|
2021-01-21 22:17:44 +00:00
|
|
|
inherit pname version;
|
2022-01-04 02:38:37 +00:00
|
|
|
hash = "sha256-rg2T9Y9FU2a+aWg0XM8jyQB9t8zDVlpad3TjUcx4//8=";
|
2021-01-21 22:17:44 +00:00
|
|
|
};
|
|
|
|
|
2021-04-06 21:54:37 +00:00
|
|
|
nativeBuildInputs = [
|
2022-01-04 02:38:37 +00:00
|
|
|
copyDesktopItems
|
2021-04-06 21:54:37 +00:00
|
|
|
wrapQtAppsHook
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
qtsvg
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = with python3.pkgs; [
|
2021-07-03 11:37:24 +00:00
|
|
|
python-dateutil
|
2021-04-06 21:55:01 +00:00
|
|
|
markdown2
|
2021-01-21 22:17:44 +00:00
|
|
|
matplotlib
|
|
|
|
numpy
|
|
|
|
pyenchant
|
|
|
|
pyqt5
|
2021-04-06 21:55:01 +00:00
|
|
|
setuptools
|
2021-01-21 22:17:44 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
doCheck = false; # it fails miserably with a core dump
|
|
|
|
|
2021-04-06 21:54:37 +00:00
|
|
|
pythonImportsCheck = [ "pyspread" ];
|
|
|
|
|
2022-01-04 02:38:37 +00:00
|
|
|
desktopItems = [
|
|
|
|
(makeDesktopItem rec {
|
|
|
|
name = pname;
|
|
|
|
exec = name;
|
|
|
|
icon = name;
|
|
|
|
desktopName = "Pyspread";
|
|
|
|
genericName = "Spreadsheet";
|
|
|
|
comment = meta.description;
|
2022-02-22 14:56:15 +00:00
|
|
|
categories = [ "Office" "Development" "Spreadsheet" ];
|
2022-01-04 02:38:37 +00:00
|
|
|
})
|
|
|
|
];
|
2021-01-23 23:09:53 +00:00
|
|
|
|
2021-04-06 21:54:37 +00:00
|
|
|
preFixup = ''
|
|
|
|
makeWrapperArgs+=("''${qtWrapperArgs[@]}")
|
2021-01-21 22:17:44 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://pyspread.gitlab.io/";
|
|
|
|
description = "A Python-oriented spreadsheet application";
|
|
|
|
longDescription = ''
|
|
|
|
pyspread is a non-traditional spreadsheet application that is based on and
|
|
|
|
written in the programming language Python. The goal of pyspread is to be
|
|
|
|
the most pythonic spreadsheet.
|
|
|
|
|
|
|
|
pyspread expects Python expressions in its grid cells, which makes a
|
|
|
|
spreadsheet specific language obsolete. Each cell returns a Python object
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|