nixpkgs/pkgs/by-name/py/pyspread/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

83 lines
1.9 KiB
Nix
Raw Normal View History

2021-01-21 22:17:44 +00:00
{ lib
2022-01-04 02:38:37 +00:00
, python3
, fetchPypi
, copyDesktopItems
2023-10-29 21:03:21 +00:00
, libsForQt5
, makeDesktopItem
2021-01-21 22:17:44 +00:00
}:
2023-10-29 21:03:21 +00:00
let
# get rid of rec
2021-01-21 22:17:44 +00:00
pname = "pyspread";
2024-09-03 09:26:19 +00:00
version = "2.3";
src = fetchPypi {
2021-01-21 22:17:44 +00:00
inherit pname version;
2024-09-03 09:26:19 +00:00
hash = "sha256-vbDZo/kYtnxmOd3JSEG9+0yD0nfM/BGcAySfBD2xogw=";
2021-01-21 22:17:44 +00:00
};
2023-10-29 21:03:21 +00:00
inherit (libsForQt5)
qtsvg
wrapQtAppsHook;
in
python3.pkgs.buildPythonApplication {
inherit pname version src;
2021-01-21 22:17:44 +00:00
nativeBuildInputs = [
2022-01-04 02:38:37 +00:00
copyDesktopItems
wrapQtAppsHook
];
buildInputs = [
qtsvg
];
propagatedBuildInputs = with python3.pkgs; [
python-dateutil
markdown2
2021-01-21 22:17:44 +00:00
matplotlib
numpy
pyenchant
pyqt5
setuptools
2021-01-21 22:17:44 +00:00
];
2023-10-29 21:03:21 +00:00
strictDeps = true;
2021-01-21 22:17:44 +00:00
doCheck = false; # it fails miserably with a core dump
pythonImportsCheck = [ "pyspread" ];
2022-01-04 02:38:37 +00:00
desktopItems = [
2023-10-29 21:03:21 +00:00
(makeDesktopItem {
name = "pyspread";
exec = "pyspread";
icon = "pyspread";
2022-01-04 02:38:37 +00:00
desktopName = "Pyspread";
genericName = "Spreadsheet";
2023-10-29 21:03:21 +00:00
comment = "A Python-oriented spreadsheet application";
categories = [ "Office" "Development" "Spreadsheet" ];
2022-01-04 02:38:37 +00:00
})
];
preFixup = ''
makeWrapperArgs+=("''${qtWrapperArgs[@]}")
2021-01-21 22:17:44 +00:00
'';
2023-10-29 21:03:21 +00:00
meta = {
2021-01-21 22:17:44 +00:00
homepage = "https://pyspread.gitlab.io/";
description = "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.
'';
2023-10-29 21:03:21 +00:00
license = with lib.licenses; [ gpl3Plus ];
mainProgram = "pyspread";
maintainers = with lib.maintainers; [ AndersonTorres ];
2021-01-21 22:17:44 +00:00
};
}