Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pythonPackages: removes Python2 broken packages #141794

Closed
wants to merge 25 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
2944e4b
torchat: removed packaged
superherointj Oct 15, 2021
51e4acb
winpdb: removed broken
superherointj Oct 16, 2021
a2a889e
displaycal: removed broken
superherointj Oct 16, 2021
8a90221
metamorphose2: removed broken
superherointj Oct 16, 2021
d5a589c
scyther: removed broken
superherointj Oct 16, 2021
edf6c83
sasview: old/broken removed
superherointj Oct 16, 2021
71954f4
plover: removed old python2 version
superherointj Oct 16, 2021
8d5b1b2
fedpkg: broken removed
superherointj Oct 16, 2021
38dfd3e
gnuradio_3_7: removed
superherointj Oct 16, 2021
feebf0d
loxodo: broken removed
superherointj Oct 16, 2021
cd8fbf7
odpdown: removed
superherointj Oct 16, 2021
05933c1
blastem: removed broken (pillow is broken for python2)
superherointj Oct 19, 2021
b901ec8
cde-gtk-theme: broken removed
superherointj Oct 19, 2021
5a2dd33
hplip_3_16_11: broken removed
superherointj Oct 19, 2021
ed7ee8f
impressive: mark as broken
superherointj Oct 19, 2021
e4ed381
pythonPackages.pycangjie: disable python2
superherointj Oct 19, 2021
a8298f7
scribus: mark as broken
superherointj Oct 19, 2021
aa7fb09
grass: mark as broken
superherointj Oct 19, 2021
ce4b5e0
curaByDagoma: broken removed
superherointj Oct 19, 2021
d5e6a9c
cura_stable: removed broken
superherointj Oct 19, 2021
545ee3e
python3Packages.wxPython: rename wxPython_4_1 to default
superherointj Oct 19, 2021
19293c9
kicad: rename wxPython_4_1 to wxPython
superherointj Oct 19, 2021
0a05bc0
playonlinux: rename wxPython_4_1 to wxPython
superherointj Oct 19, 2021
e0a8bd8
pythonPackages.wxPython: rename to wxPython_3
superherointj Oct 22, 2021
4c3b78f
pythonPackages: remove broken python2 packages
superherointj Oct 22, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
104 changes: 82 additions & 22 deletions pkgs/applications/gis/grass/default.nix
Original file line number Diff line number Diff line change
@@ -1,42 +1,63 @@
{ lib, stdenv, fetchFromGitHub, flex, bison, pkg-config, zlib, libtiff, libpng, fftw
, cairo, readline, ffmpeg_3, makeWrapper, wxGTK30, netcdf, blas
, proj, gdal, geos, sqlite, postgresql, libmysqlclient, python2Packages, libLAS, proj-datumgrid
{ bison
, blas
, cairo
, fetchFromGitHub
, ffmpeg
, fftw
, flex
, gdal
, geos
, lib
, libLAS
, libpng
, libmysqlclient
, libtiff
, makeWrapper
, netcdf
, pkg-config
, postgresql
, proj_7
, proj-datumgrid
, python3Packages
, readline
, sqlite
, stdenv
, wxGTK30
, zstd
}:

let proj = proj_7; in
stdenv.mkDerivation rec {
name = "grass";
version = "7.6.1";
version = "7.8.6";

src = with lib; fetchFromGitHub {
src = fetchFromGitHub {
owner = "OSGeo";
repo = "grass";
rev = "${name}_${replaceStrings ["."] ["_"] version}";
sha256 = "1amjk9rz7vw5ha7nyl5j2bfwj5if9w62nlwx5qbp1x7spldimlll";
rev = version;
sha256 = "1cs9zrg0gmfp37frmc8gnk776ms1bcj353gghqz20dxidcanmxnf";
};

nativeBuildInputs = [ pkg-config ];
buildInputs = [ flex bison zlib proj gdal libtiff libpng fftw sqlite cairo proj
readline ffmpeg_3 makeWrapper wxGTK30 netcdf geos postgresql libmysqlclient blas
libLAS proj-datumgrid ]
++ (with python2Packages; [ python python-dateutil wxPython30 numpy ]);

# FIXME:
# On Darwin the installer tries to symlink the help files into a system
# directory
patches = [ ./no_symbolic_links.patch ];
# patches = [ ./no_symbolic_links.patch ];

# Correct mysql_config query
patchPhase = ''
substituteInPlace configure --replace "--libmysqld-libs" "--libs"
postPatch = ''
# Correct mysql_config query
substituteInPlace configure --replace "--libmysqld-libs" "--libs"
superherointj marked this conversation as resolved.
Show resolved Hide resolved
'';

configureFlags = [
"--with-proj=${proj}/bin/proj"
"--with-proj-share=${proj}/share/proj"
"--with-proj-includes=${proj.dev}/include"
"--with-proj-lib=${proj}/lib"
"--without-opengl"
"--with-readline"
"--with-wxwidgets"
"--with-netcdf"
"--with-bzlib"
"--with-geos"
"--with-postgres"
"--with-postgres-libs=${postgresql.lib}/lib/"
Expand All @@ -51,6 +72,7 @@ stdenv.mkDerivation rec {
# Otherwise a very confusing "Can't load GDAL library" error
makeFlags = lib.optional stdenv.isDarwin "GDAL_DYNAMIC=";

# FIXME: postConfigure needs fixing. List of files may have changed.
/* Ensures that the python script run at build time are actually executable;
* otherwise, patchShebangs ignores them. */
postConfigure = ''
Expand Down Expand Up @@ -87,22 +109,60 @@ stdenv.mkDerivation rec {

NIX_CFLAGS_COMPILE = "-DACCEPT_USE_OF_DEPRECATED_PROJ_API_H=1";

enableParallelBuilding = true;

nativeBuildInputs = [
pkg-config
];

buildInputs = [
bison
blas
cairo
ffmpeg
fftw
flex
gdal
geos
libLAS
libmysqlclient
libpng
libtiff
makeWrapper
netcdf
postgresql
proj
proj-datumgrid
readline
sqlite
wxGTK30
zstd
] ++ (with python3Packages; [
python
dateutil
wxPython
numpy
pyproj
#vecLib # Missing: https://pypi.org/project/vecLib/
zstandard
zstd
]);

postInstall = ''
wrapProgram $out/bin/grass76 \
wrapProgram $out/bin/grass${lib.versions.majorMinor version} \
--set PYTHONPATH $PYTHONPATH \
--set GRASS_PYTHON ${python2Packages.python}/bin/${python2Packages.python.executable} \
--set GRASS_PYTHON ${python3Packages.python}/bin/${python3Packages.python.executable} \
--suffix LD_LIBRARY_PATH ':' '${gdal}/lib'
ln -s $out/grass*/lib $out/lib
ln -s $out/grass*/include $out/include
'';

enableParallelBuilding = true;

meta = {
broken = true; # 2021-10-19
homepage = "https://grass.osgeo.org/";
description = "GIS software suite used for geospatial data management and analysis, image processing, graphics and maps production, spatial modeling, and visualization";
license = lib.licenses.gpl2Plus;
platforms = lib.platforms.all;
maintainers = with lib.maintainers; [mpickering];
maintainers = with lib.maintainers; [ mpickering ];
};
}
4 changes: 2 additions & 2 deletions pkgs/applications/graphics/displaycal/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
}:

let
inherit (python2.pkgs) buildPythonApplication wxPython numpy dbus-python;
inherit (python2.pkgs) buildPythonApplication wxPython_3 numpy dbus-python;
in buildPythonApplication rec {
pname = "displaycal";
version = "3.8.9.3";
Expand All @@ -32,7 +32,7 @@ in buildPythonApplication rec {
libXinerama
libXScrnSaver
argyllcms
wxPython
wxPython_3
numpy
dbus-python
];
Expand Down
73 changes: 0 additions & 73 deletions pkgs/applications/misc/cura/stable.nix

This file was deleted.

78 changes: 0 additions & 78 deletions pkgs/applications/misc/curabydagoma/default.nix

This file was deleted.

37 changes: 0 additions & 37 deletions pkgs/applications/misc/loxodo/default.nix

This file was deleted.

Loading