pyspread: fix dependencies
Co-authored-by: Yohann Boniface <edhyjox@gmail.com>
This commit is contained in:
committed by
Sigmanificient
co-authored by
Yohann Boniface
parent
ef0107e328
commit
dbeb746d55
@@ -2,17 +2,11 @@
|
||||
lib,
|
||||
python3Packages,
|
||||
fetchPypi,
|
||||
qt6,
|
||||
R,
|
||||
copyDesktopItems,
|
||||
libsForQt5,
|
||||
makeDesktopItem,
|
||||
}:
|
||||
|
||||
let
|
||||
inherit (libsForQt5)
|
||||
qtsvg
|
||||
wrapQtAppsHook
|
||||
;
|
||||
in
|
||||
python3Packages.buildPythonApplication (finalAttrs: {
|
||||
pname = "pyspread";
|
||||
version = "2.4";
|
||||
@@ -26,21 +20,30 @@ python3Packages.buildPythonApplication (finalAttrs: {
|
||||
pyproject = true;
|
||||
|
||||
nativeBuildInputs = [
|
||||
R
|
||||
copyDesktopItems
|
||||
wrapQtAppsHook
|
||||
qt6.wrapQtAppsHook
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
qtsvg
|
||||
];
|
||||
buildInputs = [ qt6.qtsvg ];
|
||||
|
||||
dependencies = with python3Packages; [
|
||||
python-dateutil
|
||||
markdown2
|
||||
matplotlib
|
||||
pyqt6
|
||||
numpy
|
||||
pyenchant
|
||||
pyqt5
|
||||
markdown2
|
||||
|
||||
# Optional
|
||||
matplotlib # data visualization
|
||||
pyenchant # spellchecker bindings
|
||||
pip # python package installer
|
||||
python-dateutil # extensions to standard datetime module
|
||||
rpy2 # interface to R
|
||||
plotnine # data visualization
|
||||
openpyxl # r/w Excel 2010 xlsx/xlsm files
|
||||
|
||||
# Optional & not in nixpkgs
|
||||
#py-moneyed # currency & money classes
|
||||
#pycel # compile Excel spreadsheets to Python code
|
||||
];
|
||||
|
||||
strictDeps = true;
|
||||
@@ -64,6 +67,8 @@ python3Packages.buildPythonApplication (finalAttrs: {
|
||||
})
|
||||
];
|
||||
|
||||
makeWrapperArgs = [ "--set R_HOME ${lib.getLib R}/lib/R" ];
|
||||
|
||||
preFixup = ''
|
||||
makeWrapperArgs+=("''${qtWrapperArgs[@]}")
|
||||
'';
|
||||
|
||||
Reference in New Issue
Block a user