From aae20a0f4329a2270a0da18e956ab4eadb7763ad Mon Sep 17 00:00:00 2001 From: leiserfg Date: Tue, 25 Jul 2023 21:32:16 +0200 Subject: lib2geom: 1.2.2 → 1.3 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit https://gitlab.com/inkscape/lib2geom/-/releases/1.3 Co-authored-by: Jan Tojnar --- pkgs/development/libraries/lib2geom/default.nix | 31 +++++++++++++++++++------ 1 file changed, 24 insertions(+), 7 deletions(-) (limited to 'pkgs') diff --git a/pkgs/development/libraries/lib2geom/default.nix b/pkgs/development/libraries/lib2geom/default.nix index 2b99c7bdaf12e..0c97f116a0bf4 100644 --- a/pkgs/development/libraries/lib2geom/default.nix +++ b/pkgs/development/libraries/lib2geom/default.nix @@ -15,7 +15,7 @@ stdenv.mkDerivation rec { pname = "lib2geom"; - version = "1.2.2"; + version = "1.3"; outputs = [ "out" "dev" ]; @@ -23,16 +23,19 @@ stdenv.mkDerivation rec { owner = "inkscape"; repo = "lib2geom"; rev = "refs/tags/${version}"; - sha256 = "sha256-xkUxcAk8KJkL482R7pvgmCT+5I8aUMm/q25pvK3ZPuY="; + hash = "sha256-llUpW8VRBD8RKaGfyedzsMbLRb8DIo0ePt6m2T2w7Po="; }; patches = [ - # Fixed upstream, remove when the new version releases: - # https://gitlab.com/inkscape/lib2geom/-/issues/49 + # Fix compilation with Clang. + # https://gitlab.com/inkscape/lib2geom/-/merge_requests/102 (fetchpatch { - name = "expect-double-eq-in-choose-test.patch"; - url = "https://gitlab.com/inkscape/lib2geom/-/commit/5b7c75dd3841cb415f163f0a81f556c57d3e0a83.patch"; - sha256 = "RMgwJkylrGFTTrqBzqs5j2LMSLsHhcE/UT1pKBZnU50="; + url = "https://gitlab.com/inkscape/lib2geom/-/commit/a5b5ac7d992023f8a80535ede60421e73ecd8e20.patch"; + hash = "sha256-WJYkk3WRYVyPSvyTbKDUrYvUwFgKA9mmTiEWtYQqM4Q="; + }) + (fetchpatch { + url = "https://gitlab.com/inkscape/lib2geom/-/commit/23d9393af4bee17aeb66a3c13bdad5dbed982d08.patch"; + hash = "sha256-LAaGMIXpDI/Wzv5E2LasW1Y2/G4ukhuEzDmFu3AzZOA="; }) ]; @@ -60,6 +63,20 @@ stdenv.mkDerivation rec { doCheck = true; + # TODO: Update cmake hook to make it simpler to selectively disable cmake tests: #113829 + checkPhase = let + disabledTests = + lib.optionals stdenv.isAarch64 [ + # Broken on all platforms, test just accidentally passes on some. + # https://gitlab.com/inkscape/lib2geom/-/issues/63 + "elliptical-arc-test" + ]; + in '' + runHook preCheck + ctest --output-on-failure -E '^${lib.concatStringsSep "|" disabledTests}$' + runHook postCheck + ''; + meta = with lib; { description = "Easy to use 2D geometry library in C++"; homepage = "https://gitlab.com/inkscape/lib2geom"; -- cgit 1.4.1 From e7eb9f5e0ffbfaab6a998093a446404de39f5497 Mon Sep 17 00:00:00 2001 From: Jan Tojnar Date: Wed, 13 Sep 2023 22:10:46 +0200 Subject: python3.pkgs.inkex: inherit source from Inkscape This partly reverts 5d12e405f6ed8f061673f5ce609b5e74fb135f34 to avoid potential conflicts. Also move dependencies only introduced because of tests to checkInputs. --- pkgs/development/python-modules/inkex/default.nix | 31 ++++++++++------------- 1 file changed, 14 insertions(+), 17 deletions(-) (limited to 'pkgs') diff --git a/pkgs/development/python-modules/inkex/default.nix b/pkgs/development/python-modules/inkex/default.nix index 4cc96646bc0bf..a0393162dc8ce 100644 --- a/pkgs/development/python-modules/inkex/default.nix +++ b/pkgs/development/python-modules/inkex/default.nix @@ -1,5 +1,6 @@ { lib , buildPythonPackage +, inkscape , fetchFromGitLab , poetry-core , cssselect @@ -15,24 +16,13 @@ , gtk3 }: -buildPythonPackage rec { +buildPythonPackage { pname = "inkex"; - version = "1.2.2"; + inherit (inkscape) version; format = "pyproject"; - src = fetchFromGitLab { - owner = "inkscape"; - repo = "extensions"; - rev = "EXTENSIONS_AT_INKSCAPE_${version}"; - hash = "sha256-jw7daZQTBxLHWOpjZkMYtP1vIQvd/eLgiktWqVSjEgU="; - }; - - postPatch = '' - substituteInPlace pyproject.toml \ - --replace '"1.2.0"' '"${version}"' \ - --replace 'scour = "^0.37"' 'scour = ">=0.37"' - ''; + inherit (inkscape) src; nativeBuildInputs = [ poetry-core @@ -42,11 +32,8 @@ buildPythonPackage rec { cssselect lxml numpy - packaging - pillow pygobject3 pyserial - scour ]; pythonImportsCheck = [ "inkex" ]; @@ -58,6 +45,9 @@ buildPythonPackage rec { checkInputs = [ gtk3 + packaging + pillow + scour ]; disabledTests = [ @@ -74,6 +64,13 @@ buildPythonPackage rec { "tests/test_inkex_gui_pixmaps.py" ]; + postPatch = '' + cd share/extensions + + substituteInPlace pyproject.toml \ + --replace 'scour = "^0.37"' 'scour = ">=0.37"' + ''; + meta = { description = "Library for manipulating SVG documents which is the basis for Inkscape extensions"; homepage = "https://gitlab.com/inkscape/extensions"; -- cgit 1.4.1 From 8913801669a9411a4427b4c1cb9126b9cedb9b36 Mon Sep 17 00:00:00 2001 From: Jan Tojnar Date: Thu, 26 Oct 2023 14:24:09 +0200 Subject: inkscape: inherit filelock dependency from cachecontrol MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The dependency is not imported anywhere in the Inkscape code so let’s make the requirement explicit. --- pkgs/applications/graphics/inkscape/default.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'pkgs') diff --git a/pkgs/applications/graphics/inkscape/default.nix b/pkgs/applications/graphics/inkscape/default.nix index 575f93efcb270..143bab5d784b7 100644 --- a/pkgs/applications/graphics/inkscape/default.nix +++ b/pkgs/applications/graphics/inkscape/default.nix @@ -48,7 +48,11 @@ let appdirs beautifulsoup4 cachecontrol - filelock + ] + # CacheControl requires extra runtime dependencies for FileCache + # https://gitlab.com/inkscape/extras/extension-manager/-/commit/9a4acde6c1c028725187ff5972e29e0dbfa99b06 + ++ cachecontrol.optional-dependencies.filecache + ++ [ numpy lxml packaging -- cgit 1.4.1 From 99ab0ebeabff4f694eb7179cce7cd1f9da772060 Mon Sep 17 00:00:00 2001 From: leiserfg Date: Tue, 25 Jul 2023 21:32:16 +0200 Subject: inkscape: 1.2.2 → 1.3 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit https://inkscape.org/doc/release_notes/1.3/Inkscape_1.3.html libepoxy for experimental GPU-accelerated rendering. pyparsing for HPGL support. Co-authored-by: Jan Tojnar --- pkgs/applications/graphics/inkscape/default.nix | 9 ++++++--- pkgs/development/python-modules/inkex/default.nix | 2 ++ 2 files changed, 8 insertions(+), 3 deletions(-) (limited to 'pkgs') diff --git a/pkgs/applications/graphics/inkscape/default.nix b/pkgs/applications/graphics/inkscape/default.nix index 143bab5d784b7..059dd8bf7c65c 100644 --- a/pkgs/applications/graphics/inkscape/default.nix +++ b/pkgs/applications/graphics/inkscape/default.nix @@ -40,6 +40,7 @@ , python3 , substituteAll , wrapGAppsHook +, libepoxy , zlib }: let @@ -58,6 +59,7 @@ let packaging pillow scour + pyparsing pyserial requests pygobject3 @@ -65,11 +67,11 @@ let in stdenv.mkDerivation rec { pname = "inkscape"; - version = "1.2.2"; + version = "1.3"; src = fetchurl { - url = "https://media.inkscape.org/dl/resources/file/inkscape-${version}.tar.xz"; - sha256 = "oMf9DQPAohU15kjvMB3PgN18/B81ReUQZfvxuj7opcQ="; + url = "https://inkscape.org/release/inkscape-${version}/source/archive/xz/dl/inkscape-${version}.tar.xz"; + sha256 = "sha256-v08oawJeAWm4lIzBTVGZqbTCBNdhyJTEtISWVx7HYwc="; }; # Inkscape hits the ARGMAX when linking on macOS. It appears to be @@ -147,6 +149,7 @@ stdenv.mkDerivation rec { potrace python3Env zlib + libepoxy ] ++ lib.optionals (!stdenv.isDarwin) [ gspell ] ++ lib.optionals stdenv.isDarwin [ diff --git a/pkgs/development/python-modules/inkex/default.nix b/pkgs/development/python-modules/inkex/default.nix index a0393162dc8ce..4d04618ec3e6b 100644 --- a/pkgs/development/python-modules/inkex/default.nix +++ b/pkgs/development/python-modules/inkex/default.nix @@ -9,6 +9,7 @@ , packaging , pillow , pygobject3 +, pyparsing , pyserial , scour , gobject-introspection @@ -47,6 +48,7 @@ buildPythonPackage { gtk3 packaging pillow + pyparsing scour ]; -- cgit 1.4.1 From c5b219ec902db9fd069f7f0d6ac7dd864d5d9c47 Mon Sep 17 00:00:00 2001 From: Weijia Wang <9713184+wegank@users.noreply.github.com> Date: Mon, 6 Nov 2023 12:56:50 +0100 Subject: inkscape: fix runtime error on darwin --- pkgs/applications/graphics/inkscape/default.nix | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'pkgs') diff --git a/pkgs/applications/graphics/inkscape/default.nix b/pkgs/applications/graphics/inkscape/default.nix index 059dd8bf7c65c..85b067d9fb292 100644 --- a/pkgs/applications/graphics/inkscape/default.nix +++ b/pkgs/applications/graphics/inkscape/default.nix @@ -159,8 +159,9 @@ stdenv.mkDerivation rec { # Make sure PyXML modules can be found at run-time. postInstall = lib.optionalString stdenv.isDarwin '' - install_name_tool -change $out/lib/libinkscape_base.dylib $out/lib/inkscape/libinkscape_base.dylib $out/bin/inkscape - install_name_tool -change $out/lib/libinkscape_base.dylib $out/lib/inkscape/libinkscape_base.dylib $out/bin/inkview + for f in $out/lib/inkscape/*.dylib; do + ln -s $f $out/lib/$(basename $f) + done ''; meta = with lib; { -- cgit 1.4.1