Files
nixpkgs/pkgs/by-name/py/pyspread/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

90 lines
1.9 KiB
Nix

{
lib,
python3,
fetchPypi,
copyDesktopItems,
libsForQt5,
makeDesktopItem,
}:
let
# get rid of rec
pname = "pyspread";
version = "2.4";
src = fetchPypi {
inherit pname version;
hash = "sha256-MZlR2Rap5oMRfCmswg9W//FYFkSEki7eyMNhLoGZgJM=";
};
inherit (libsForQt5)
qtsvg
wrapQtAppsHook
;
in
python3.pkgs.buildPythonApplication {
format = "setuptools";
inherit pname version src;
nativeBuildInputs = [
copyDesktopItems
wrapQtAppsHook
];
buildInputs = [
qtsvg
];
propagatedBuildInputs = with python3.pkgs; [
python-dateutil
markdown2
matplotlib
numpy
pyenchant
pyqt5
setuptools
];
strictDeps = true;
doCheck = false; # it fails miserably with a core dump
pythonImportsCheck = [ "pyspread" ];
desktopItems = [
(makeDesktopItem {
name = "pyspread";
exec = "pyspread";
icon = "pyspread";
desktopName = "Pyspread";
genericName = "Spreadsheet";
comment = "A Python-oriented spreadsheet application";
categories = [
"Office"
"Development"
"Spreadsheet"
];
})
];
preFixup = ''
makeWrapperArgs+=("''${qtWrapperArgs[@]}")
'';
meta = {
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.
'';
license = with lib.licenses; [ gpl3Plus ];
mainProgram = "pyspread";
maintainers = [ ];
};
}