nixpkgs/pkgs/by-name/py/pyspread/package.nix
Silvan Mosberger 4f0dadbf38 treewide: format all inactive Nix files
After final improvements to the official formatter implementation,
this commit now performs the first treewide reformat of Nix files using it.
This is part of the implementation of RFC 166.

Only "inactive" files are reformatted, meaning only files that
aren't being touched by any PR with activity in the past 2 months.
This is to avoid conflicts for PRs that might soon be merged.
Later we can do a full treewide reformat to get the rest,
which should not cause as many conflicts.

A CI check has already been running for some time to ensure that new and
already-formatted files are formatted, so the files being reformatted here
should also stay formatted.

This commit was automatically created and can be verified using

    nix-build a08b3a4d19.tar.gz \
      --argstr baseRev b32a094368
    result/bin/apply-formatting $NIXPKGS_PATH
2024-12-10 20:26:33 +01:00

89 lines
1.9 KiB
Nix

{
lib,
python3,
fetchPypi,
copyDesktopItems,
libsForQt5,
makeDesktopItem,
}:
let
# get rid of rec
pname = "pyspread";
version = "2.3.1";
src = fetchPypi {
inherit pname version;
hash = "sha256-l6b02CIUqPnT16zqOWl6gDdAobkhiqBMFvT+R1Dvtek=";
};
inherit (libsForQt5)
qtsvg
wrapQtAppsHook
;
in
python3.pkgs.buildPythonApplication {
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 = with lib.maintainers; [ AndersonTorres ];
};
}