2017-04-21 23:36:37 +01:00
|
|
|
{ buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, isPy3k
|
2021-01-11 07:54:33 +00:00
|
|
|
, lib, stdenv
|
2017-04-21 23:36:37 +01:00
|
|
|
, numpy
|
|
|
|
, wxPython
|
|
|
|
, matplotlib
|
|
|
|
, pycairo
|
|
|
|
, python-gnupg
|
|
|
|
, xlrd
|
|
|
|
, xlwt
|
|
|
|
, jedi
|
|
|
|
, pyenchant
|
|
|
|
, basemap
|
|
|
|
, pygtk
|
|
|
|
, makeDesktopItem
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pyspread";
|
2020-11-29 14:04:38 +00:00
|
|
|
version = "1.99.5";
|
2017-04-21 23:36:37 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-11-29 14:04:38 +00:00
|
|
|
sha256 = "d396c2f94bf1ef6140877ab19205e6f2375bfe01d1bf50ff33bb63384744dd78";
|
2017-04-21 23:36:37 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ numpy wxPython matplotlib pycairo python-gnupg xlrd xlwt jedi pyenchant basemap pygtk ];
|
|
|
|
# Could also (optionally) add pyrsvg and python bindings for libvlc
|
|
|
|
|
|
|
|
# Tests try to access X Display
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
disabled = isPy3k;
|
|
|
|
|
|
|
|
desktopItem = makeDesktopItem rec {
|
|
|
|
name = pname;
|
|
|
|
exec = name;
|
|
|
|
icon = name;
|
|
|
|
desktopName = "Pyspread";
|
|
|
|
genericName = "Spreadsheet";
|
|
|
|
comment = meta.description;
|
|
|
|
categories = "Development;Spreadsheet;";
|
|
|
|
};
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
mkdir -p $out/share/applications
|
|
|
|
cp $desktopItem/share/applications/* $out/share/applications
|
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2017-04-21 23:36:37 +01:00
|
|
|
description = "Pyspread is a non-traditional spreadsheet application that is based on and written in the programming language Python";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://manns.github.io/pyspread/";
|
2017-04-21 23:36:37 +01:00
|
|
|
license = licenses.gpl3;
|
|
|
|
};
|
|
|
|
}
|