diff options
author | Anderson Torres <torres.anderson.85@protonmail.com> | 2023-10-29 18:03:21 -0300 |
---|---|---|
committer | Anderson Torres <torres.anderson.85@protonmail.com> | 2023-10-30 16:34:26 -0300 |
commit | c90192b9ee8d49a68d18f1775d85f55e6a8fcedd (patch) | |
tree | 4cd4abeb1e92426b6bbe056fbf014299f85513a0 /pkgs/by-name/py | |
parent | 4cfe0bcee39b2692318102a49b60fe5c20229b18 (diff) |
pyspread: migrate to by-name
Diffstat (limited to 'pkgs/by-name/py')
-rw-r--r-- | pkgs/by-name/py/pyspread/package.nix | 82 |
1 files changed, 82 insertions, 0 deletions
diff --git a/pkgs/by-name/py/pyspread/package.nix b/pkgs/by-name/py/pyspread/package.nix new file mode 100644 index 0000000000000..c5b578f6e9e69 --- /dev/null +++ b/pkgs/by-name/py/pyspread/package.nix @@ -0,0 +1,82 @@ +{ lib +, python3 +, fetchPypi +, copyDesktopItems +, libsForQt5 +, makeDesktopItem +}: + +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 + 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 = "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 lib.licenses; [ gpl3Plus ]; + mainProgram = "pyspread"; + maintainers = with lib.maintainers; [ AndersonTorres ]; + }; +} |