[Backport release-26.05] python3Packages.libarcus: drop (#523859)

This commit is contained in:
Michael Daniels
2026-05-25 03:29:58 +00:00
committed by GitHub
9 changed files with 5 additions and 357 deletions

View File

@@ -1,84 +0,0 @@
{
lib,
stdenv,
fetchFromGitHub,
python3Packages,
libspnav,
jq,
}:
let
self = {
octoprint = stdenv.mkDerivation {
pname = "Cura-OctoPrintPlugin";
version = "3.5.18";
src = fetchFromGitHub {
owner = "fieldOfView";
repo = "Cura-OctoPrintPlugin";
rev = "7bd73946fbf22d18337dc900a81a011ece26bee0";
sha256 = "057b2f5f49p96lkh2wsr9w6yh2003x4a85irqsgbzp6igmk8imdn";
};
propagatedBuildInputs = with python3Packages; [
netifaces
];
installPhase = ''
mkdir -p $out/lib/cura/plugins/OctoPrintPlugin
cp -rv . $out/lib/cura/plugins/OctoPrintPlugin/
'';
meta = {
description = "Enables printing directly to OctoPrint and monitoring the process";
homepage = "https://github.com/fieldOfView/Cura-OctoPrintPlugin";
license = lib.licenses.agpl3Plus;
maintainers = [ ];
};
};
rawmouse = stdenv.mkDerivation rec {
pname = "RawMouse";
version = "1.1.0";
src = fetchFromGitHub {
owner = "smartavionics";
repo = "RawMouse";
rev = version;
sha256 = "0hvi7qwd4xfnqnhbj9dgfjmvv9df7s42asf3fdfxv43n6nx74scw";
};
nativeBuildInputs = [ jq ];
propagatedBuildInputs = with python3Packages; [
hidapi
];
buildPhase = ''
jq 'del(.devices) | .libspnav="${libspnav}/lib/libspnav.so"' \
<RawMouse/config.json >RawMouse/config.json.new
mv RawMouse/config.json.new RawMouse/config.json
# remove prebuilt binaries
rm -r RawMouse/hidapi
'';
installPhase = ''
mkdir -p $out/lib/cura/plugins/RawMouse
cp -rv . $out/lib/cura/plugins/RawMouse/
'';
meta = {
description = "Cura plugin for HID mice such as 3Dconnexion spacemouse";
homepage = "https://github.com/smartavionics/RawMouse";
license = lib.licenses.agpl3Plus;
maintainers = [ ];
};
};
};
in
self

View File

@@ -1,49 +0,0 @@
{
lib,
stdenv,
fetchFromGitHub,
cmake,
libarcus,
stb,
protobuf,
fetchpatch,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "curaengine";
version = "4.13.1";
src = fetchFromGitHub {
owner = "Ultimaker";
repo = "CuraEngine";
rev = finalAttrs.version;
sha256 = "sha256-dx0Q6cuA66lG4nwR7quW5Tvs9sdxjdV4gtpxXirI4nY=";
};
nativeBuildInputs = [ cmake ];
buildInputs = [
libarcus
stb
protobuf
];
cmakeFlags = [ "-DCURA_ENGINE_VERSION=${finalAttrs.version}" ];
# TODO already fixed in master, remove in next release
patches = [
(fetchpatch {
url = "https://github.com/Ultimaker/CuraEngine/commit/de60e86a6ea11cb7d121471b5dd192e5deac0f3d.patch";
hash = "sha256-/gT9yErIDDYAXvZ6vX5TGlwljy31K563+sqkm1UGljQ=";
includes = [ "src/utils/math.h" ];
})
];
meta = {
description = "Powerful, fast and robust engine for processing 3D models into 3D printing instruction";
homepage = "https://github.com/Ultimaker/CuraEngine";
license = lib.licenses.agpl3Only;
platforms = lib.platforms.linux;
maintainers = [ ];
mainProgram = "CuraEngine";
};
})

View File

@@ -1,93 +0,0 @@
{
lib,
stdenv,
fetchFromGitHub,
cmake,
python3,
libsForQt5,
curaengine,
plugins ? [ ],
}:
stdenv.mkDerivation (finalAttrs: {
pname = "cura";
version = "4.13.1";
src = fetchFromGitHub {
owner = "Ultimaker";
repo = "Cura";
rev = finalAttrs.version;
sha256 = "sha256-R88SdAxx3tkQCDInrFTKad1tPSDTSYaVAPUVmdk94Xk=";
};
materials = fetchFromGitHub {
owner = "Ultimaker";
repo = "fdm_materials";
rev = "4.13.2";
sha256 = "sha256-7y4OcbeQHv+loJ4cMgPU0e818Zsv90EwARdztNWS8zM=";
};
buildInputs = [
libsForQt5.qtbase
libsForQt5.qtquickcontrols2
libsForQt5.qtgraphicaleffects
];
propagatedBuildInputs =
with python3.pkgs;
[
libsavitar
numpy-stl
pyserial
requests
uranium
zeroconf
pynest2d
sentry-sdk
trimesh
keyring
]
++ plugins;
nativeBuildInputs = [
cmake
python3.pkgs.wrapPython
libsForQt5.wrapQtAppsHook
];
cmakeFlags = [
"-DURANIUM_DIR=${python3.pkgs.uranium.src}"
"-DCURA_VERSION=${finalAttrs.version}"
];
makeWrapperArgs = [
# hacky workaround for https://github.com/NixOS/nixpkgs/issues/59901
"--set OMP_NUM_THREADS 1"
];
postPatch = ''
sed -i 's,/python''${PYTHON_VERSION_MAJOR}/dist-packages,/python''${PYTHON_VERSION_MAJOR}.''${PYTHON_VERSION_MINOR}/site-packages,g' CMakeLists.txt
sed -i 's, executable_name = .*, executable_name = "${curaengine}/bin/CuraEngine",' plugins/CuraEngineBackend/CuraEngineBackend.py
'';
postInstall = ''
mkdir -p $out/share/cura/resources/materials
cp ${finalAttrs.materials}/*.fdm_material $out/share/cura/resources/materials/
mkdir -p $out/lib/cura/plugins
for plugin in ${toString plugins}; do
ln -s $plugin/lib/cura/plugins/* $out/lib/cura/plugins
done
'';
postFixup = ''
wrapPythonPrograms
wrapQtApp $out/bin/cura
'';
meta = {
description = "3D printer / slicing GUI built on top of the Uranium framework";
mainProgram = "cura";
homepage = "https://github.com/Ultimaker/Cura";
license = lib.licenses.lgpl3Plus;
platforms = lib.platforms.linux;
maintainers = [ ];
};
})

View File

@@ -1,59 +0,0 @@
{
lib,
buildPythonPackage,
python,
fetchFromGitHub,
fetchpatch,
cmake,
sip4,
protobuf,
distutils,
}:
buildPythonPackage rec {
pname = "libarcus";
version = "4.12.0";
pyproject = false;
src = fetchFromGitHub {
owner = "Ultimaker";
repo = "libArcus";
rev = version;
hash = "sha256-X33ptwYj9YkVWqUDPP+Ic+hoIb+rwsLdQXvHLA9z+3w=";
};
patches = [
# Fix build against protobuf 3.18+
# https://github.com/Ultimaker/libArcus/issues/121
(fetchpatch {
url = "https://raw.githubusercontent.com/coryan/vcpkg/f69b85aa403b04e7d442c90db3418d484e44024f/ports/arcus/0001-fix-protobuf-deprecated.patch";
sha256 = "0bqj7pxzpwsamknd6gadj419x6mwx8wnlfzg4zqn6cax3cmasjb2";
})
];
propagatedBuildInputs = [
sip4
distutils
];
nativeBuildInputs = [
cmake
sip4
];
buildInputs = [ protobuf ];
strictDeps = true;
postPatch = ''
sed -i 's#''${Python3_SITEARCH}#${placeholder "out"}/${python.sitePackages}#' cmake/SIPMacros.cmake
'';
meta = {
description = "Communication library between internal components for Ultimaker software";
homepage = "https://github.com/Ultimaker/libArcus";
license = lib.licenses.lgpl3Plus;
platforms = lib.platforms.linux;
maintainers = [ ];
};
}

View File

@@ -1,61 +0,0 @@
{
lib,
buildPythonPackage,
fetchFromGitHub,
python,
cmake,
pyqt5,
numpy,
scipy,
shapely,
libarcus,
cryptography,
doxygen,
gettext,
}:
buildPythonPackage rec {
version = "4.12.0";
pname = "uranium";
pyproject = false;
src = fetchFromGitHub {
owner = "Ultimaker";
repo = "Uranium";
rev = version;
hash = "sha256-SE9xqrloPXIRTJiiqUdRKFmb4c0OjmJK5CMn6VXMFmk=";
};
buildInputs = [
python
gettext
];
propagatedBuildInputs = [
pyqt5
numpy
scipy
shapely
libarcus
cryptography
];
nativeBuildInputs = [
cmake
doxygen
];
postPatch = ''
sed -i 's,/python''${PYTHON_VERSION_MAJOR}/dist-packages,/python''${PYTHON_VERSION_MAJOR}.''${PYTHON_VERSION_MINOR}/site-packages,g' CMakeLists.txt
sed -i \
-e "s,Resources.addSearchPath(os.path.join(os.path.abspath(os.path.dirname(__file__)).*,Resources.addSearchPath(\"$out/share/uranium/resources\")," \
-e "s,self._plugin_registry.addPluginLocation(os.path.join(os.path.abspath(os.path.dirname(__file__)).*,self._plugin_registry.addPluginLocation(\"$out/lib/uranium/plugins\")," \
UM/Application.py
'';
meta = {
description = "Python framework for building Desktop applications";
homepage = "https://github.com/Ultimaker/Uranium";
license = lib.licenses.lgpl3Plus;
platforms = lib.platforms.linux;
maintainers = [ ];
};
}

View File

@@ -584,6 +584,9 @@ mapAliases {
cudaPackages_12_4 = throw "CUDA 12.4 has been removed from Nixpkgs, as it is unmaintained upstream and depends on unsupported compilers"; # Added 2025-08-08
cudaPackages_12_5 = throw "CUDA 12.5 has been removed from Nixpkgs, as it is unmaintained upstream and depends on unsupported compilers"; # Added 2025-08-08
cups-kyodialog3 = throw "'cups-kyodialog3' has been renamed to/replaced by 'cups-kyodialog'"; # Converted to throw 2025-10-27
cura = throw "'cura' has been removed, as it was unmaintained in nixpkgs"; # Added 2026-05-22
curaengine = throw "'curaengine' has been removed, as it was unmaintained in nixpkgs"; # Added 2026-05-22
curaPlugins = throw "'curaPlugins' has been removed, as it was unmaintained in nixpkgs"; # Added 2026-05-22
curl-impersonate-chrome = warnAlias "curl-impersonate-chrome has been renamed to curl-impersonate" curl-impersonate; # Added 2025-11-02
curl-impersonate-ff = throw "curl-impersonate-ff has been removed because it is unmaintained upstream and has vulnerable dependencies. Use curl-impersonate instead."; # Added 2025-11-02
curlHTTP3 = warnAlias "'curlHTTP3' has been removed, as 'curl' now has HTTP/3 support enabled by default" curl; # Added 2025-08-22

View File

@@ -10004,13 +10004,6 @@ with pkgs;
curaengine_stable = callPackage ../applications/misc/curaengine/stable.nix { };
curaengine = callPackage ../applications/misc/curaengine {
inherit (python3.pkgs) libarcus;
protobuf = protobuf_21;
};
curaPlugins = recurseIntoAttrs (callPackage ../applications/misc/cura/plugins.nix { });
super-slicer-beta = super-slicer.beta;
super-slicer-latest = super-slicer.latest;

View File

@@ -303,6 +303,7 @@ mapAliases {
lcov_cobertura = throw "'lcov_cobertura' has been renamed to/replaced by 'lcov-cobertura'"; # Converted to throw 2025-10-29
ldap = throw "'ldap' has been renamed to/replaced by 'python-ldap'"; # Converted to throw 2025-10-29
ledger_agent = throw "'ledger_agent' has been renamed to/replaced by 'ledger-agent'"; # Converted to throw 2025-10-29
libarcus = throw "'libarcus' has been removed, as it was unmaintained in nixpkgs"; # Added 2026-05-22
libgpiod = gpiod; # added 2026-03-30
libpyfoscam = throw "libpyfoscam was removed because Home Assistant switched to libpyfoscamcgi"; # added 2025-07-03
line_profiler = throw "'line_profiler' has been renamed to/replaced by 'line-profiler'"; # Converted to throw 2025-10-29
@@ -618,6 +619,7 @@ mapAliases {
unifi = throw "'unifi' has been removed as upstream was archived in 2017"; # Added 2025-08-25
unittest-data-provider = throw "'unittest-data-provider' has been removed as it was unused, unmaintained, and upstream suggests 'pytest parameterize' instead."; # Added 2026-05-22
update_checker = throw "'update_checker' has been renamed to/replaced by 'update-checker'"; # Converted to throw 2025-10-29
uranium = throw "'uranium' has been removed, as it was unmaintained in nixpkgs"; # Added 2026-05-22
vcver = throw "vcver has been removed, since it was an unused leaf package"; # added 2025-08-25
vega_datasets = throw "'vega_datasets' has been renamed to/replaced by 'vega-datasets'"; # Converted to throw 2025-10-29
ViennaRNA = throw "'ViennaRNA' has been renamed to/replaced by 'viennarna'"; # Converted to throw 2025-10-29

View File

@@ -8785,8 +8785,6 @@ self: super: with self; {
inherit (pkgs) libarchive;
};
libarcus = callPackage ../development/python-modules/libarcus { protobuf = pkgs.protobuf_21; };
libasyncns = callPackage ../development/python-modules/libasyncns { inherit (pkgs) libasyncns; };
libbs = callPackage ../development/python-modules/libbs { };
@@ -20912,8 +20910,6 @@ self: super: with self; {
uqbar = callPackage ../development/python-modules/uqbar { };
uranium = callPackage ../development/python-modules/uranium { };
uri-template = callPackage ../development/python-modules/uri-template { };
uritemplate = callPackage ../development/python-modules/uritemplate { };