From 10988d8adeea21aaa8485fb5eac83caec6c673cf Mon Sep 17 00:00:00 2001 From: aleksana Date: Sat, 4 May 2024 16:54:42 +0800 Subject: [PATCH 01/18] apostrophe: move to pkgs/by-name --- .../default.nix => by-name/ap/apostrophe/package.nix} | 4 ++-- pkgs/top-level/all-packages.nix | 4 ---- 2 files changed, 2 insertions(+), 6 deletions(-) rename pkgs/{applications/editors/apostrophe/default.nix => by-name/ap/apostrophe/package.nix} (93%) diff --git a/pkgs/applications/editors/apostrophe/default.nix b/pkgs/by-name/ap/apostrophe/package.nix similarity index 93% rename from pkgs/applications/editors/apostrophe/default.nix rename to pkgs/by-name/ap/apostrophe/package.nix index 768402f4e5a7..b3915a9651fb 100644 --- a/pkgs/applications/editors/apostrophe/default.nix +++ b/pkgs/by-name/ap/apostrophe/package.nix @@ -1,12 +1,12 @@ { lib, stdenv, fetchFromGitLab, meson, ninja , wrapGAppsHook3, pkg-config, desktop-file-utils -, appstream-glib, pythonPackages, glib, gobject-introspection +, appstream-glib, python3Packages, glib, gobject-introspection , gtk3, webkitgtk, glib-networking, gnome, gspell, texliveMedium , shared-mime-info, libhandy, fira, sassc }: let - pythonEnv = pythonPackages.python.withPackages(p: with p; [ + pythonEnv = python3Packages.python.withPackages(p: with p; [ regex setuptools levenshtein pyenchant pygobject3 pycairo pypandoc chardet ]); diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 012ca8aaf600..daba8bc585ea 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -29738,10 +29738,6 @@ with pkgs; appgate-sdp = callPackage ../applications/networking/appgate-sdp { }; - apostrophe = callPackage ../applications/editors/apostrophe { - pythonPackages = python3Packages; - }; - ardour = callPackage ../applications/audio/ardour { }; ardour_7 = callPackage ../applications/audio/ardour/7.nix { }; From acc504282f168c8911ac76f90c104eb1c1751c6d Mon Sep 17 00:00:00 2001 From: Doron Behar Date: Sun, 5 May 2024 16:36:55 +0300 Subject: [PATCH 02/18] go-cover-treemap: init at 1.4.2 --- pkgs/by-name/go/go-cover-treemap/package.nix | 28 ++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 pkgs/by-name/go/go-cover-treemap/package.nix diff --git a/pkgs/by-name/go/go-cover-treemap/package.nix b/pkgs/by-name/go/go-cover-treemap/package.nix new file mode 100644 index 000000000000..1afb9191607a --- /dev/null +++ b/pkgs/by-name/go/go-cover-treemap/package.nix @@ -0,0 +1,28 @@ +{ lib +, buildGoModule +, fetchFromGitHub +}: + +buildGoModule rec { + pname = "go-cover-treemap"; + version = "1.4.2"; + + src = fetchFromGitHub { + owner = "nikolaydubina"; + repo = "go-cover-treemap"; + rev = "v${version}"; + hash = "sha256-MSkPot8uYcr8pxsIkJh2FThVK9xpzkN9Y69KeiQnQlA="; + }; + + vendorHash = "sha256-k/k+EGkuBnZFHrcWxnzLG8efWgb2i35Agf/sWbgTc4g="; + + ldflags = [ "-s" "-w" ]; + + meta = with lib; { + description = "Go code coverage to SVG treemap"; + homepage = "https://github.com/nikolaydubina/go-cover-treemap"; + license = licenses.mit; + maintainers = with maintainers; [ doronbehar ]; + mainProgram = "go-cover-treemap"; + }; +} From 83ceecf14899dabfd2c84ba95cbd25cfe2120c62 Mon Sep 17 00:00:00 2001 From: aleksana Date: Sun, 5 May 2024 22:38:25 +0800 Subject: [PATCH 03/18] apostrophe: format with nixfmt-rfc-style --- pkgs/by-name/ap/apostrophe/package.nix | 80 ++++++++++++++++++++------ 1 file changed, 61 insertions(+), 19 deletions(-) diff --git a/pkgs/by-name/ap/apostrophe/package.nix b/pkgs/by-name/ap/apostrophe/package.nix index b3915a9651fb..c335268df8a6 100644 --- a/pkgs/by-name/ap/apostrophe/package.nix +++ b/pkgs/by-name/ap/apostrophe/package.nix @@ -1,34 +1,76 @@ -{ lib, stdenv, fetchFromGitLab, meson, ninja -, wrapGAppsHook3, pkg-config, desktop-file-utils -, appstream-glib, python3Packages, glib, gobject-introspection -, gtk3, webkitgtk, glib-networking, gnome, gspell, texliveMedium -, shared-mime-info, libhandy, fira, sassc +{ + lib, + stdenv, + fetchFromGitLab, + meson, + ninja, + wrapGAppsHook3, + pkg-config, + desktop-file-utils, + appstream-glib, + python3Packages, + glib, + gobject-introspection, + gtk3, + webkitgtk, + glib-networking, + gnome, + gspell, + texliveMedium, + shared-mime-info, + libhandy, + fira, + sassc, }: let - pythonEnv = python3Packages.python.withPackages(p: with p; [ - regex setuptools levenshtein pyenchant - pygobject3 pycairo pypandoc chardet - ]); - -in stdenv.mkDerivation rec { + pythonEnv = python3Packages.python.withPackages ( + p: with p; [ + regex + setuptools + levenshtein + pyenchant + pygobject3 + pycairo + pypandoc + chardet + ] + ); +in +stdenv.mkDerivation rec { pname = "apostrophe"; version = "2.6.3"; src = fetchFromGitLab { - owner = "World"; - repo = pname; + owner = "World"; + repo = pname; domain = "gitlab.gnome.org"; - rev = "v${version}"; + rev = "v${version}"; sha256 = "sha256-RBrrG1TO810LidIelYGNaK7PjDq84D0cA8VcMojAW3M="; }; - nativeBuildInputs = [ meson ninja pkg-config desktop-file-utils - appstream-glib wrapGAppsHook3 sassc gobject-introspection ]; + nativeBuildInputs = [ + meson + ninja + pkg-config + desktop-file-utils + appstream-glib + wrapGAppsHook3 + sassc + gobject-introspection + ]; - buildInputs = [ glib pythonEnv gtk3 - gnome.adwaita-icon-theme webkitgtk gspell texliveMedium - glib-networking libhandy ]; + buildInputs = [ + glib + pythonEnv + gtk3 + gnome.adwaita-icon-theme + webkitgtk + gspell + texliveMedium + glib-networking + libhandy + ]; postPatch = '' substituteInPlace data/media/css/web/base.css \ From 95d941d41616a9dddedbfe905df4f523dd9b09da Mon Sep 17 00:00:00 2001 From: aleksana Date: Sun, 5 May 2024 22:42:38 +0800 Subject: [PATCH 04/18] apostrophe: 2.6.3 -> 3.0 --- pkgs/by-name/ap/apostrophe/package.nix | 128 ++++++++++++++----------- 1 file changed, 71 insertions(+), 57 deletions(-) diff --git a/pkgs/by-name/ap/apostrophe/package.nix b/pkgs/by-name/ap/apostrophe/package.nix index c335268df8a6..649a763760fb 100644 --- a/pkgs/by-name/ap/apostrophe/package.nix +++ b/pkgs/by-name/ap/apostrophe/package.nix @@ -1,101 +1,115 @@ { lib, - stdenv, fetchFromGitLab, + gtksourceview5, + libspelling, + fetchFromGitHub, + python3Packages, meson, ninja, - wrapGAppsHook3, pkg-config, + wrapGAppsHook4, desktop-file-utils, - appstream-glib, - python3Packages, - glib, gobject-introspection, - gtk3, - webkitgtk, - glib-networking, - gnome, - gspell, + libadwaita, + webkitgtk_6_0, texliveMedium, shared-mime-info, - libhandy, - fira, - sassc, }: let - pythonEnv = python3Packages.python.withPackages ( - p: with p; [ - regex - setuptools - levenshtein - pyenchant - pygobject3 - pycairo - pypandoc - chardet - ] - ); -in -stdenv.mkDerivation rec { - pname = "apostrophe"; - version = "2.6.3"; + version = "3.0"; src = fetchFromGitLab { owner = "World"; - repo = pname; + repo = "apostrophe"; domain = "gitlab.gnome.org"; rev = "v${version}"; - sha256 = "sha256-RBrrG1TO810LidIelYGNaK7PjDq84D0cA8VcMojAW3M="; + sha256 = "sha256-wKxRCU00nSk7F8IZNWoLRtGs3m6ol3UBnArtppUOz/g="; }; + # Patches are required by upstream. Without the patches + # typing `- aaa`, newline, `- bbb` the program crashes + gtksourceview5-patched = gtksourceview5.overrideAttrs (prev: { + patches = (prev.patches or [ ]) ++ [ "${src}/build-aux/flatpak/sourceview_text_commits.patch" ]; + }); + + libspelling-patched = + (libspelling.override { gtksourceview5 = gtksourceview5-patched; }).overrideAttrs + (prev: { + patches = (prev.patches or [ ]) ++ [ "${src}/build-aux/flatpak/libspelling_text_commits.patch" ]; + }); + + reveal-js = fetchFromGitHub { + owner = "hakimel"; + repo = "reveal.js"; + + # keep in sync with upstream shipped version + # in build-aux/flatpak/org.gnome.gitlab.somas.Apostrophe.json + rev = "4.6.0"; + hash = "sha256-a+J+GasFmRvu5cJ1GLXscoJ+owzFXsLhCbeDbYChkyQ="; + }; +in +python3Packages.buildPythonApplication rec { + inherit version src; + pname = "apostrophe"; + pyproject = false; + + postPatch = + '' + substituteInPlace build-aux/meson_post_install.py \ + --replace-fail 'gtk-update-icon-cache' 'gtk4-update-icon-cache' + + patchShebangs --build build-aux/meson_post_install.py + '' + # Should be done in postInstall, but meson checks this eagerly before build + + '' + install -d $out/share/apostrophe/libs + cp -r ${reveal-js} $out/share/apostrophe/libs/reveal.js + ''; + nativeBuildInputs = [ meson ninja pkg-config + wrapGAppsHook4 desktop-file-utils - appstream-glib - wrapGAppsHook3 - sassc gobject-introspection ]; buildInputs = [ - glib - pythonEnv - gtk3 - gnome.adwaita-icon-theme - webkitgtk - gspell - texliveMedium - glib-networking - libhandy + libadwaita + gtksourceview5-patched + libspelling-patched + webkitgtk_6_0 ]; - postPatch = '' - substituteInPlace data/media/css/web/base.css \ - --replace 'url("/app/share/fonts/FiraSans-Regular.ttf") format("ttf")' \ - 'url("${fira}/share/fonts/opentype/FiraSans-Regular.otf") format("otf")' \ - --replace 'url("/app/share/fonts/FiraMono-Regular.ttf") format("ttf")' \ - 'url("${fira}/share/fonts/opentype/FiraMono-Regular.otf") format("otf")' + propagatedBuildInputs = with python3Packages; [ + pygobject3 + pypandoc + chardet + ]; - patchShebangs --build build-aux/meson_post_install.py - ''; + dontWrapGApps = true; preFixup = '' - gappsWrapperArgs+=( - --prefix PYTHONPATH : "$out/lib/python${pythonEnv.pythonVersion}/site-packages/" + makeWrapperArgs+=( + ''${gappsWrapperArgs[@]} --prefix PATH : "${texliveMedium}/bin" --prefix XDG_DATA_DIRS : "${shared-mime-info}/share" ) ''; - meta = with lib; { + passthru = { + inherit gtksourceview5-patched libspelling-patched reveal-js; + }; + + meta = { homepage = "https://gitlab.gnome.org/World/apostrophe"; description = "A distraction free Markdown editor for GNU/Linux"; - license = licenses.gpl3; - platforms = platforms.linux; - maintainers = [ maintainers.sternenseemann ]; + license = lib.licenses.gpl3Plus; + platforms = lib.platforms.linux; + maintainers = with lib.maintainers; [ sternenseemann ]; mainProgram = "apostrophe"; }; } From ca30363956b0317592b82330aa7d1009bae02489 Mon Sep 17 00:00:00 2001 From: aleksana Date: Sun, 5 May 2024 22:43:26 +0800 Subject: [PATCH 05/18] apostrophe: add aleksana as maintainers --- pkgs/by-name/ap/apostrophe/package.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pkgs/by-name/ap/apostrophe/package.nix b/pkgs/by-name/ap/apostrophe/package.nix index 649a763760fb..503e4ff2f194 100644 --- a/pkgs/by-name/ap/apostrophe/package.nix +++ b/pkgs/by-name/ap/apostrophe/package.nix @@ -109,7 +109,10 @@ python3Packages.buildPythonApplication rec { description = "A distraction free Markdown editor for GNU/Linux"; license = lib.licenses.gpl3Plus; platforms = lib.platforms.linux; - maintainers = with lib.maintainers; [ sternenseemann ]; + maintainers = with lib.maintainers; [ + sternenseemann + aleksana + ]; mainProgram = "apostrophe"; }; } From 700b90e609646ed419b76452a8e17e1496c195ae Mon Sep 17 00:00:00 2001 From: TomaSajt <62384384+TomaSajt@users.noreply.github.com> Date: Mon, 6 May 2024 17:02:17 +0200 Subject: [PATCH 06/18] python311Packages.biom-format: init at 2.1.15 --- .../python-modules/biom-format/default.nix | 71 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 73 insertions(+) create mode 100644 pkgs/development/python-modules/biom-format/default.nix diff --git a/pkgs/development/python-modules/biom-format/default.nix b/pkgs/development/python-modules/biom-format/default.nix new file mode 100644 index 000000000000..ca5ff3a83fb7 --- /dev/null +++ b/pkgs/development/python-modules/biom-format/default.nix @@ -0,0 +1,71 @@ +{ + lib, + buildPythonPackage, + fetchFromGitHub, + fetchpatch, + setuptools, + cython, + click, + numpy, + scipy, + pandas, + h5py, + pytestCheckHook, +}: + +buildPythonPackage rec { + pname = "biom-format"; + version = "2.1.15"; + pyproject = true; + + src = fetchFromGitHub { + owner = "biocore"; + repo = "biom-format"; + rev = "refs/tags/${version}"; + hash = "sha256-WRBc+C/UWme7wYogy4gH4KTIdIqU3KmBm2jWzGNxGQg="; + }; + + patches = [ + # fixes a test, can be removed in next version after 2.1.15 + (fetchpatch { + name = "fix-dataframe-comparison.patch"; + url = "https://github.com/biocore/biom-format/commit/5d1c921ca2cde5d7332508503ce990a7209d1fdc.patch"; + hash = "sha256-nyHi469ivjJSQ01yIk/6ZMXFdoo9wVuazJHnFdy2nBg="; + }) + ]; + + build-system = [ + setuptools + cython + numpy + ]; + + dependencies = [ + click + numpy + scipy + pandas + h5py + ]; + + # make pytest resolve the package from $out + # some tests don't work if we change the level of directory nesting + preCheck = '' + mkdir biom_tests + mv biom/tests biom_tests/tests + rm -r biom + ''; + + nativeCheckInputs = [ pytestCheckHook ]; + + pytestFlagsArray = [ "biom_tests/tests" ]; + + pythonImportsCheck = [ "biom" ]; + + meta = { + homepage = "http://biom-format.org/"; + description = "Biological Observation Matrix (BIOM) format"; + license = lib.licenses.bsd3; + maintainers = with lib.maintainers; [ tomasajt ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 739e2c577792..3f962c433c70 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -1529,6 +1529,8 @@ self: super: with self; { binwalk-full = self.binwalk.override { visualizationSupport = true; }; + biom-format = callPackage ../development/python-modules/biom-format { }; + biopandas = callPackage ../development/python-modules/biopandas { }; biopython = callPackage ../development/python-modules/biopython { }; From 5a9fabb4ecef0925bef4332a31b30a42dcfae703 Mon Sep 17 00:00:00 2001 From: TomaSajt <62384384+TomaSajt@users.noreply.github.com> Date: Mon, 6 May 2024 14:40:54 +0200 Subject: [PATCH 07/18] python311Packages.scikit-bio: format with nixfmt --- .../python-modules/scikit-bio/default.nix | 59 ++++++++++++------- 1 file changed, 38 insertions(+), 21 deletions(-) diff --git a/pkgs/development/python-modules/scikit-bio/default.nix b/pkgs/development/python-modules/scikit-bio/default.nix index 2f49063ae06c..ec86d092af42 100644 --- a/pkgs/development/python-modules/scikit-bio/default.nix +++ b/pkgs/development/python-modules/scikit-bio/default.nix @@ -1,22 +1,23 @@ -{ lib -, buildPythonPackage -, fetchPypi -, cython -, lockfile -, cachecontrol -, decorator -, h5py -, ipython -, matplotlib -, natsort -, numpy -, pandas -, scipy -, hdmedians -, scikit-learn -, coverage -, python -, isPy3k +{ + lib, + buildPythonPackage, + fetchPypi, + cython, + lockfile, + cachecontrol, + decorator, + h5py, + ipython, + matplotlib, + natsort, + numpy, + pandas, + scipy, + hdmedians, + scikit-learn, + coverage, + python, + isPy3k, }: buildPythonPackage rec { @@ -32,7 +33,20 @@ buildPythonPackage rec { nativeBuildInputs = [ cython ]; nativeCheckInputs = [ coverage ]; - propagatedBuildInputs = [ lockfile cachecontrol decorator ipython matplotlib natsort numpy pandas scipy h5py hdmedians scikit-learn ]; + propagatedBuildInputs = [ + lockfile + cachecontrol + decorator + ipython + matplotlib + natsort + numpy + pandas + scipy + h5py + hdmedians + scikit-learn + ]; # cython package not included for tests doCheck = false; @@ -47,7 +61,10 @@ buildPythonPackage rec { homepage = "http://scikit-bio.org/"; description = "Data structures, algorithms and educational resources for bioinformatics"; license = licenses.bsd3; - platforms = [ "x86_64-linux" "x86_64-darwin" ]; + platforms = [ + "x86_64-linux" + "x86_64-darwin" + ]; maintainers = [ ]; }; } From a23b904c8b7238a5d1600f45bfe526a58956b6a9 Mon Sep 17 00:00:00 2001 From: TomaSajt <62384384+TomaSajt@users.noreply.github.com> Date: Mon, 6 May 2024 17:14:29 +0200 Subject: [PATCH 08/18] python311Packages.scikit-bio: unbreak, refactor, run tests, adopt --- .../python-modules/scikit-bio/default.nix | 64 +++++++++---------- 1 file changed, 29 insertions(+), 35 deletions(-) diff --git a/pkgs/development/python-modules/scikit-bio/default.nix b/pkgs/development/python-modules/scikit-bio/default.nix index ec86d092af42..7068063a8cb5 100644 --- a/pkgs/development/python-modules/scikit-bio/default.nix +++ b/pkgs/development/python-modules/scikit-bio/default.nix @@ -1,70 +1,64 @@ { lib, buildPythonPackage, - fetchPypi, + fetchFromGitHub, + setuptools, cython, - lockfile, - cachecontrol, + oldest-supported-numpy, + requests, decorator, - h5py, - ipython, - matplotlib, natsort, numpy, pandas, scipy, + h5py, hdmedians, - scikit-learn, - coverage, + biom-format, python, - isPy3k, + pytestCheckHook, }: buildPythonPackage rec { - version = "0.6.0"; - format = "setuptools"; pname = "scikit-bio"; - disabled = !isPy3k; + version = "0.6.0"; + pyproject = true; - src = fetchPypi { - inherit pname version; - hash = "sha256-EBBafDwVrlkQJEkn8punqjUjSxnr5lE7hIRUc0OywQ8="; + src = fetchFromGitHub { + owner = "scikit-bio"; + repo = "scikit-bio"; + rev = "refs/tags/${version}"; + hash = "sha256-v8/r52pJpMi34SekPQBf7CqRbs+ZEyPR3WO5RBB7uKg="; }; - nativeBuildInputs = [ cython ]; - nativeCheckInputs = [ coverage ]; - propagatedBuildInputs = [ - lockfile - cachecontrol + build-system = [ + setuptools + cython + oldest-supported-numpy + ]; + + dependencies = [ + requests decorator - ipython - matplotlib natsort numpy pandas scipy h5py hdmedians - scikit-learn + biom-format ]; - # cython package not included for tests - doCheck = false; + nativeCheckInputs = [ pytestCheckHook ]; - checkPhase = '' - ${python.interpreter} -m skbio.test - ''; + # only the $out dir contains the built cython extensions, so we run the tests inside there + pytestFlagsArray = [ "${placeholder "out"}/${python.sitePackages}/skbio" ]; pythonImportsCheck = [ "skbio" ]; - meta = with lib; { + meta = { homepage = "http://scikit-bio.org/"; description = "Data structures, algorithms and educational resources for bioinformatics"; - license = licenses.bsd3; - platforms = [ - "x86_64-linux" - "x86_64-darwin" - ]; - maintainers = [ ]; + license = lib.licenses.bsd3; + maintainers = with lib.maintainers; [ tomasajt ]; }; } From 3489da471e95b066f3efee8b3368a2d0e57ffb4a Mon Sep 17 00:00:00 2001 From: alyaeanyx Date: Mon, 6 May 2024 19:28:29 +0200 Subject: [PATCH 09/18] {libqalculate, qalculate-gtk, qalculate-qt}: 5.0.0 -> 5.1.0 --- pkgs/applications/science/math/qalculate-gtk/default.nix | 4 ++-- pkgs/applications/science/math/qalculate-qt/default.nix | 4 ++-- pkgs/development/libraries/libqalculate/default.nix | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/pkgs/applications/science/math/qalculate-gtk/default.nix b/pkgs/applications/science/math/qalculate-gtk/default.nix index 9673d7d479d0..ab11d833f70c 100644 --- a/pkgs/applications/science/math/qalculate-gtk/default.nix +++ b/pkgs/applications/science/math/qalculate-gtk/default.nix @@ -2,13 +2,13 @@ stdenv.mkDerivation (finalAttrs: { pname = "qalculate-gtk"; - version = "5.0.0"; + version = "5.1.0"; src = fetchFromGitHub { owner = "qalculate"; repo = "qalculate-gtk"; rev = "v${finalAttrs.version}"; - hash = "sha256-hlGNL7aMzxBxtATWJBqJTFEQqMv10oC3sRCdtRLHOww="; + hash = "sha256-yI+8TrNZJt4eJnDX5mk6RozBe2ZeP7sTyAjsgiYQPck="; }; hardeningDisable = [ "format" ]; diff --git a/pkgs/applications/science/math/qalculate-qt/default.nix b/pkgs/applications/science/math/qalculate-qt/default.nix index 296fc5f783f3..a830c7ddd00e 100644 --- a/pkgs/applications/science/math/qalculate-qt/default.nix +++ b/pkgs/applications/science/math/qalculate-qt/default.nix @@ -2,13 +2,13 @@ stdenv.mkDerivation (finalAttrs: { pname = "qalculate-qt"; - version = "5.0.0"; + version = "5.1.0"; src = fetchFromGitHub { owner = "qalculate"; repo = "qalculate-qt"; rev = "v${finalAttrs.version}"; - hash = "sha256-X7IY2yXpZiyE+T2dl0G4tWpJ5O6MVCy/sOY3v9inma0="; + hash = "sha256-gJfIC5HdA10gb/Dh/yhJbkCZfhUnN0zihqyfDjPv6ow="; }; nativeBuildInputs = [ qmake intltool pkg-config qttools wrapQtAppsHook ]; diff --git a/pkgs/development/libraries/libqalculate/default.nix b/pkgs/development/libraries/libqalculate/default.nix index 34e34a7eeebf..4e8f39c372dc 100644 --- a/pkgs/development/libraries/libqalculate/default.nix +++ b/pkgs/development/libraries/libqalculate/default.nix @@ -18,13 +18,13 @@ stdenv.mkDerivation (finalAttrs: { pname = "libqalculate"; - version = "5.0.0"; + version = "5.1.0"; src = fetchFromGitHub { owner = "qalculate"; repo = "libqalculate"; rev = "v${finalAttrs.version}"; - hash = "sha256-VhaGgtSU6+7eMY7ksQMpybmt2JBI80Nwgu7PCKrTorA="; + hash = "sha256-74P8jIeg0Pge+/U0cQsrEfE+P8upBAr8xSyLhB4zOVU="; }; outputs = [ "out" "dev" "doc" ]; From de1618552c9956bf2c5915d94c584a017e3c4a3d Mon Sep 17 00:00:00 2001 From: Tom Hubrecht Date: Mon, 6 May 2024 14:13:20 +0200 Subject: [PATCH 10/18] sage: Add as passthru.tests to critical dependencies --- pkgs/applications/science/math/lrcalc/default.nix | 5 +++++ pkgs/development/python-modules/cypari2/default.nix | 5 +++++ pkgs/development/python-modules/cysignals/default.nix | 5 +++++ pkgs/development/python-modules/cython/default.nix | 5 +++++ pkgs/development/python-modules/fpylll/default.nix | 5 +++++ pkgs/development/python-modules/gmpy2/default.nix | 5 +++++ .../python-modules/importlib-metadata/default.nix | 5 +++++ .../python-modules/importlib-resources/default.nix | 5 +++++ pkgs/development/python-modules/ipykernel/default.nix | 4 ++++ pkgs/development/python-modules/ipython/default.nix | 5 +++++ pkgs/development/python-modules/jinja2/default.nix | 5 +++++ pkgs/development/python-modules/jupyter-core/default.nix | 5 +++++ pkgs/development/python-modules/matplotlib/default.nix | 5 +++++ pkgs/development/python-modules/memory-allocator/default.nix | 5 +++++ pkgs/development/python-modules/mpmath/default.nix | 5 +++++ pkgs/development/python-modules/networkx/default.nix | 5 +++++ pkgs/development/python-modules/numpy/default.nix | 4 ++++ pkgs/development/python-modules/pexpect/default.nix | 5 +++++ pkgs/development/python-modules/pillow/default.nix | 4 ++-- pkgs/development/python-modules/pplpy/default.nix | 5 +++++ pkgs/development/python-modules/primecountpy/default.nix | 5 +++++ pkgs/development/python-modules/scipy/default.nix | 4 ++++ pkgs/development/python-modules/sympy/default.nix | 5 +++++ 23 files changed, 109 insertions(+), 2 deletions(-) diff --git a/pkgs/applications/science/math/lrcalc/default.nix b/pkgs/applications/science/math/lrcalc/default.nix index 90ee50c68280..0d968e016179 100644 --- a/pkgs/applications/science/math/lrcalc/default.nix +++ b/pkgs/applications/science/math/lrcalc/default.nix @@ -1,6 +1,9 @@ { lib, stdenv , fetchFromBitbucket , autoreconfHook + +# Reverse dependency +, sage }: stdenv.mkDerivation rec { @@ -20,6 +23,8 @@ stdenv.mkDerivation rec { autoreconfHook ]; + passthru.tests = { inherit sage; }; + meta = with lib; { description = "Littlewood-Richardson calculator"; homepage = "http://math.rutgers.edu/~asbuch/lrcalc/"; diff --git a/pkgs/development/python-modules/cypari2/default.nix b/pkgs/development/python-modules/cypari2/default.nix index 025692de1f74..315492e38ee3 100644 --- a/pkgs/development/python-modules/cypari2/default.nix +++ b/pkgs/development/python-modules/cypari2/default.nix @@ -7,6 +7,9 @@ , gmp , cython , cysignals + +# Reverse dependency +, sage }: buildPythonPackage rec { @@ -53,6 +56,8 @@ buildPythonPackage rec { make check ''; + passthru.tests = { inherit sage; }; + meta = with lib; { description = "Cython bindings for PARI"; license = licenses.gpl2Plus; diff --git a/pkgs/development/python-modules/cysignals/default.nix b/pkgs/development/python-modules/cysignals/default.nix index 62cc3dd30d8a..fc53c5c9f168 100644 --- a/pkgs/development/python-modules/cysignals/default.nix +++ b/pkgs/development/python-modules/cysignals/default.nix @@ -4,6 +4,9 @@ , buildPythonPackage , cython , pariSupport ? true, pari # for interfacing with the PARI/GP signal handler + +# Reverse dependency +, sage }: assert pariSupport -> pari != null; @@ -46,6 +49,8 @@ buildPythonPackage rec { enableParallelBuilding = true; + passthru.tests = { inherit sage; }; + meta = with lib; { description = "Interrupt and signal handling for Cython"; mainProgram = "cysignals-CSI"; diff --git a/pkgs/development/python-modules/cython/default.nix b/pkgs/development/python-modules/cython/default.nix index e73c09f40b01..fecb9cad26ce 100644 --- a/pkgs/development/python-modules/cython/default.nix +++ b/pkgs/development/python-modules/cython/default.nix @@ -8,6 +8,9 @@ , gdb , numpy , ncurses + +# Reverse dependency +, sage }: let @@ -57,6 +60,8 @@ in buildPythonPackage rec { doCheck = false; # doCheck = !stdenv.isDarwin; + passthru.tests = { inherit sage; }; + # force regeneration of generated code in source distributions # https://github.com/cython/cython/issues/5089 setupHook = ./setup-hook.sh; diff --git a/pkgs/development/python-modules/fpylll/default.nix b/pkgs/development/python-modules/fpylll/default.nix index 95358d5f4aaf..2b4571b53edb 100644 --- a/pkgs/development/python-modules/fpylll/default.nix +++ b/pkgs/development/python-modules/fpylll/default.nix @@ -15,6 +15,9 @@ , fplll , numpy +# Reverse dependency +, sage + # tests , pytestCheckHook }: @@ -72,6 +75,8 @@ buildPythonPackage rec { export PY_IGNORE_IMPORTMISMATCH=1 ''; + passthru.tests = { inherit sage; }; + meta = with lib; { description = "A Python interface for fplll"; changelog = "https://github.com/fplll/fpylll/releases/tag/${version}"; diff --git a/pkgs/development/python-modules/gmpy2/default.nix b/pkgs/development/python-modules/gmpy2/default.nix index b5a602d4f222..e3d4118c335b 100644 --- a/pkgs/development/python-modules/gmpy2/default.nix +++ b/pkgs/development/python-modules/gmpy2/default.nix @@ -5,6 +5,9 @@ , gmp , mpfr , libmpc + +# Reverse dependency +, sage }: let @@ -29,6 +32,8 @@ buildPythonPackage { pythonImportsCheck = [ "gmpy2" ]; + passthru.tests = { inherit sage; }; + meta = with lib; { description = "GMP/MPIR, MPFR, and MPC interface to Python 2.6+ and 3.x"; homepage = "https://github.com/aleaxit/gmpy/"; diff --git a/pkgs/development/python-modules/importlib-metadata/default.nix b/pkgs/development/python-modules/importlib-metadata/default.nix index 511424fb1983..df3106aac420 100644 --- a/pkgs/development/python-modules/importlib-metadata/default.nix +++ b/pkgs/development/python-modules/importlib-metadata/default.nix @@ -7,6 +7,9 @@ , typing-extensions , toml , zipp + +# Reverse dependency +, sage }: buildPythonPackage rec { @@ -41,6 +44,8 @@ buildPythonPackage rec { "importlib_metadata" ]; + passthru.tests = { inherit sage; }; + meta = with lib; { description = "Read metadata from Python packages"; homepage = "https://importlib-metadata.readthedocs.io/"; diff --git a/pkgs/development/python-modules/importlib-resources/default.nix b/pkgs/development/python-modules/importlib-resources/default.nix index a8407239cc40..1f4b01a41992 100644 --- a/pkgs/development/python-modules/importlib-resources/default.nix +++ b/pkgs/development/python-modules/importlib-resources/default.nix @@ -10,6 +10,9 @@ # dependencies , importlib-metadata +# Reverse dependency +, sage + # tests , jaraco-collections , pytestCheckHook @@ -46,6 +49,8 @@ buildPythonPackage rec { "importlib_resources" ]; + passthru.tests = { inherit sage; }; + meta = with lib; { description = "Read resources from Python packages"; homepage = "https://importlib-resources.readthedocs.io/"; diff --git a/pkgs/development/python-modules/ipykernel/default.nix b/pkgs/development/python-modules/ipykernel/default.nix index 394974103537..35cd3bad0aa4 100644 --- a/pkgs/development/python-modules/ipykernel/default.nix +++ b/pkgs/development/python-modules/ipykernel/default.nix @@ -18,6 +18,9 @@ , pyzmq , tornado , traitlets + +# Reverse dependency +, sage }: buildPythonPackage rec { @@ -63,6 +66,7 @@ buildPythonPackage rec { passthru.tests = { pytest = callPackage ./tests.nix { }; + inherit sage; }; meta = { diff --git a/pkgs/development/python-modules/ipython/default.nix b/pkgs/development/python-modules/ipython/default.nix index 7a10725f2451..577b78804907 100644 --- a/pkgs/development/python-modules/ipython/default.nix +++ b/pkgs/development/python-modules/ipython/default.nix @@ -29,6 +29,9 @@ , notebook , qtconsole +# Reverse dependency +, sage + # Test dependencies , pickleshare , pytest-asyncio @@ -106,6 +109,8 @@ buildPythonPackage rec { "test_clipboard_get" ]; + passthru.tests = { inherit sage; }; + meta = with lib; { description = "IPython: Productive Interactive Computing"; downloadPage = "https://github.com/ipython/ipython/"; diff --git a/pkgs/development/python-modules/jinja2/default.nix b/pkgs/development/python-modules/jinja2/default.nix index 1c260e37c7b0..80b87378a6e4 100644 --- a/pkgs/development/python-modules/jinja2/default.nix +++ b/pkgs/development/python-modules/jinja2/default.nix @@ -12,6 +12,9 @@ , setuptools , sphinxcontrib-log-cabinet , sphinx-issues + +# Reverse dependency +, sage }: buildPythonPackage rec { @@ -76,6 +79,8 @@ buildPythonPackage rec { inherit meta; }; + passthru.tests = { inherit sage; }; + meta = with lib; { changelog = "https://github.com/pallets/jinja/blob/${version}/CHANGES.rst"; description = "Very fast and expressive template engine"; diff --git a/pkgs/development/python-modules/jupyter-core/default.nix b/pkgs/development/python-modules/jupyter-core/default.nix index 799e098920a8..c1faa97b1ef8 100644 --- a/pkgs/development/python-modules/jupyter-core/default.nix +++ b/pkgs/development/python-modules/jupyter-core/default.nix @@ -7,6 +7,9 @@ , traitlets , pip , pytestCheckHook + +# Reverse dependency +, sage }: buildPythonPackage rec { @@ -61,6 +64,8 @@ buildPythonPackage rec { pythonImportsCheck = [ "jupyter_core" ]; + passthru.tests = { inherit sage; }; + meta = with lib; { description = "Base package on which Jupyter projects rely"; homepage = "https://jupyter.org/"; diff --git a/pkgs/development/python-modules/matplotlib/default.nix b/pkgs/development/python-modules/matplotlib/default.nix index bf1e7a86323e..a23b9540538c 100644 --- a/pkgs/development/python-modules/matplotlib/default.nix +++ b/pkgs/development/python-modules/matplotlib/default.nix @@ -69,6 +69,9 @@ # required for headless detection , libX11 , wayland + +# Reverse dependency +, sage }: let @@ -183,6 +186,8 @@ buildPythonPackage rec { }; }; + passthru.tests = { inherit sage; }; + env.MPLSETUPCFG = writeText "mplsetup.cfg" (lib.generators.toINI {} passthru.config); # Encountering a ModuleNotFoundError, as describved and investigated at: diff --git a/pkgs/development/python-modules/memory-allocator/default.nix b/pkgs/development/python-modules/memory-allocator/default.nix index c4ddc5d06a1b..34dd55bb8dc6 100644 --- a/pkgs/development/python-modules/memory-allocator/default.nix +++ b/pkgs/development/python-modules/memory-allocator/default.nix @@ -2,6 +2,9 @@ , fetchPypi , buildPythonPackage , cython + +# Reverse dependency +, sage }: buildPythonPackage rec { @@ -19,6 +22,8 @@ buildPythonPackage rec { pythonImportsCheck = [ "memory_allocator" ]; + passthru.tests = { inherit sage; }; + meta = with lib; { description = "An extension class to allocate memory easily with cython"; homepage = "https://github.com/sagemath/memory_allocator/"; diff --git a/pkgs/development/python-modules/mpmath/default.nix b/pkgs/development/python-modules/mpmath/default.nix index 1a8e4c030979..20e7049ac370 100644 --- a/pkgs/development/python-modules/mpmath/default.nix +++ b/pkgs/development/python-modules/mpmath/default.nix @@ -5,6 +5,9 @@ , isPyPy , setuptools , pytestCheckHook + +# Reverse dependency +, sage }: buildPythonPackage rec { @@ -29,6 +32,8 @@ buildPythonPackage rec { ]; }; + passthru.tests = { inherit sage; }; + nativeCheckInputs = [ pytestCheckHook ]; diff --git a/pkgs/development/python-modules/networkx/default.nix b/pkgs/development/python-modules/networkx/default.nix index 40a6cdcf4b2e..ac0bd456bcda 100644 --- a/pkgs/development/python-modules/networkx/default.nix +++ b/pkgs/development/python-modules/networkx/default.nix @@ -19,6 +19,9 @@ # tests , pytest-xdist , pytestCheckHook + +# reverse dependency +, sage }: buildPythonPackage rec { @@ -53,6 +56,8 @@ buildPythonPackage rec { ]; }; + passthru.tests = { inherit sage; }; + nativeCheckInputs = [ pytest-xdist pytestCheckHook diff --git a/pkgs/development/python-modules/numpy/default.nix b/pkgs/development/python-modules/numpy/default.nix index c2d38cc31b24..f0acca333f85 100644 --- a/pkgs/development/python-modules/numpy/default.nix +++ b/pkgs/development/python-modules/numpy/default.nix @@ -19,6 +19,9 @@ , blas , lapack +# Reverse dependency +, sage + # tests , hypothesis , pytest-xdist @@ -177,6 +180,7 @@ in buildPythonPackage rec { blas = blas.provider; blasImplementation = blas.implementation; inherit cfg; + tests = { inherit sage; }; }; # Disable test diff --git a/pkgs/development/python-modules/pexpect/default.nix b/pkgs/development/python-modules/pexpect/default.nix index e8c5efc3cba3..f98e531c0d54 100644 --- a/pkgs/development/python-modules/pexpect/default.nix +++ b/pkgs/development/python-modules/pexpect/default.nix @@ -3,6 +3,9 @@ , fetchPypi , setuptools , ptyprocess + +# Reverse dependency +, sage }: buildPythonPackage (rec { @@ -24,6 +27,8 @@ buildPythonPackage (rec { propagatedBuildInputs = [ ptyprocess ]; + passthru.tests = { inherit sage; }; + meta = with lib; { homepage = "http://www.noah.org/wiki/Pexpect"; description = "Automate interactive console applications such as ssh, ftp, etc"; diff --git a/pkgs/development/python-modules/pillow/default.nix b/pkgs/development/python-modules/pillow/default.nix index a576b47bda19..f320000eecdc 100644 --- a/pkgs/development/python-modules/pillow/default.nix +++ b/pkgs/development/python-modules/pillow/default.nix @@ -7,7 +7,7 @@ , defusedxml, olefile, freetype, libjpeg, zlib, libtiff, libwebp, libxcrypt, tcl, lcms2, tk, libX11 , libxcb, openjpeg, libimagequant, numpy, pytestCheckHook, setuptools # for passthru.tests -, imageio, matplotlib, pilkit, pydicom, reportlab +, imageio, matplotlib, pilkit, pydicom, reportlab, sage }@args: import ./generic.nix (rec { @@ -24,7 +24,7 @@ import ./generic.nix (rec { }; passthru.tests = { - inherit imageio matplotlib pilkit pydicom reportlab; + inherit imageio matplotlib pilkit pydicom reportlab sage; }; meta = with lib; { diff --git a/pkgs/development/python-modules/pplpy/default.nix b/pkgs/development/python-modules/pplpy/default.nix index 641008be07fc..4a4d97c554cf 100644 --- a/pkgs/development/python-modules/pplpy/default.nix +++ b/pkgs/development/python-modules/pplpy/default.nix @@ -9,6 +9,9 @@ , cysignals , gmpy2 , sphinx + +# Reverse dependency +, sage }: buildPythonPackage rec { @@ -54,6 +57,8 @@ buildPythonPackage rec { mv docs/build/html "$doc/share/doc/pplpy" ''; + passthru.tests = { inherit sage; }; + meta = with lib; { description = "A Python wrapper for ppl"; homepage = "https://gitlab.com/videlec/pplpy"; diff --git a/pkgs/development/python-modules/primecountpy/default.nix b/pkgs/development/python-modules/primecountpy/default.nix index 463a0cf50be6..60ae77e7dd94 100644 --- a/pkgs/development/python-modules/primecountpy/default.nix +++ b/pkgs/development/python-modules/primecountpy/default.nix @@ -4,6 +4,9 @@ , primecount , cython , cysignals + +# Reverse dependency +, sage }: buildPythonPackage rec { @@ -25,6 +28,8 @@ buildPythonPackage rec { pythonImportsCheck = [ "primecountpy" ]; + passthru.tests = { inherit sage; }; + meta = with lib; { description = "Cython interface for C++ primecount library"; homepage = "https://github.com/dimpase/primecountpy/"; diff --git a/pkgs/development/python-modules/scipy/default.nix b/pkgs/development/python-modules/scipy/default.nix index 64e261c37403..57769c7f6afe 100644 --- a/pkgs/development/python-modules/scipy/default.nix +++ b/pkgs/development/python-modules/scipy/default.nix @@ -25,6 +25,9 @@ , xsimd , blas , lapack + +# Reverse dependency +, sage }: let @@ -193,6 +196,7 @@ in buildPythonPackage { # Pass it the names of the datasets to update their hashes ++ (builtins.attrNames datasetsHashes) ; + tests = { inherit sage; }; }; SCIPY_USE_G77_ABI_WRAPPER = 1; diff --git a/pkgs/development/python-modules/sympy/default.nix b/pkgs/development/python-modules/sympy/default.nix index d2a10492153e..1954f8bc591f 100644 --- a/pkgs/development/python-modules/sympy/default.nix +++ b/pkgs/development/python-modules/sympy/default.nix @@ -3,6 +3,9 @@ , fetchPypi , glibcLocales , mpmath + +# Reverse dependency +, sage }: buildPythonPackage rec { @@ -27,6 +30,8 @@ buildPythonPackage rec { export LANG="en_US.UTF-8" ''; + passthru.tests = { inherit sage; }; + meta = with lib; { description = "A Python library for symbolic mathematics"; mainProgram = "isympy"; From f7b50c397770431da55462f941a081dcd7d5f9f3 Mon Sep 17 00:00:00 2001 From: Lin Jian Date: Tue, 7 May 2024 00:41:03 +0800 Subject: [PATCH 11/18] nixos/kanata: improve example of the package option Before this patch, it is rendered as "Example: kanata-with-cmd". With this patch applied, it is "Example: pkgs.kanata-with-cmd". --- nixos/modules/services/hardware/kanata.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/modules/services/hardware/kanata.nix b/nixos/modules/services/hardware/kanata.nix index 333b2d2a88a5..bf5bfa7b2e2b 100644 --- a/nixos/modules/services/hardware/kanata.nix +++ b/nixos/modules/services/hardware/kanata.nix @@ -153,7 +153,7 @@ in options.services.kanata = { enable = mkEnableOption "kanata, a tool to improve keyboard comfort and usability with advanced customization"; package = mkPackageOption pkgs "kanata" { - example = "kanata-with-cmd"; + example = [ "kanata-with-cmd" ]; extraDescription = '' ::: {.note} If {option}`danger-enable-cmd` is enabled in any of the keyboards, the From 4eafe1458d481569d1b7736c53eece2b65143b1a Mon Sep 17 00:00:00 2001 From: Lin Jian Date: Tue, 7 May 2024 00:51:40 +0800 Subject: [PATCH 12/18] nixos/kanata: improve links to the upstream documentation --- nixos/modules/services/hardware/kanata.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/nixos/modules/services/hardware/kanata.nix b/nixos/modules/services/hardware/kanata.nix index bf5bfa7b2e2b..ad40c646ea85 100644 --- a/nixos/modules/services/hardware/kanata.nix +++ b/nixos/modules/services/hardware/kanata.nix @@ -5,6 +5,8 @@ with lib; let cfg = config.services.kanata; + upstreamDoc = "See [the upstream documentation](https://github.com/jtroo/kanata/blob/main/docs/config.adoc) and [example config files](https://github.com/jtroo/kanata/tree/main/cfg_samples) for more information."; + keyboard = { options = { devices = mkOption { @@ -42,8 +44,7 @@ let description = '' Configuration other than `defcfg`. - See [example config files](https://github.com/jtroo/kanata) - for more information. + ${upstreamDoc} ''; }; extraDefCfg = mkOption { @@ -55,8 +56,7 @@ let from the devices option) and `linux-continue-if-no-devs-found` (hardcoded to be yes). - See [example config files](https://github.com/jtroo/kanata) - for more information. + ${upstreamDoc} ''; }; extraArgs = mkOption { From 75a864edf1e78ecb75860ad6366b8984e36e5736 Mon Sep 17 00:00:00 2001 From: Lin Jian Date: Tue, 7 May 2024 01:23:31 +0800 Subject: [PATCH 13/18] nixos/kanata: replace deflayer with deflayermap in config example IMHO, this style is more intuitive. --- nixos/modules/services/hardware/kanata.nix | 19 ++++--------------- 1 file changed, 4 insertions(+), 15 deletions(-) diff --git a/nixos/modules/services/hardware/kanata.nix b/nixos/modules/services/hardware/kanata.nix index ad40c646ea85..c7e0e93baf6e 100644 --- a/nixos/modules/services/hardware/kanata.nix +++ b/nixos/modules/services/hardware/kanata.nix @@ -24,22 +24,11 @@ let type = types.lines; example = '' (defsrc - grv 1 2 3 4 5 6 7 8 9 0 - = bspc - tab q w e r t y u i o p [ ] \ - caps a s d f g h j k l ; ' ret - lsft z x c v b n m , . / rsft - lctl lmet lalt spc ralt rmet rctl) + caps) - (deflayer qwerty - grv 1 2 3 4 5 6 7 8 9 0 - = bspc - tab q w e r t y u i o p [ ] \ - @cap a s d f g h j k l ; ' ret - lsft z x c v b n m , . / rsft - lctl lmet lalt spc ralt rmet rctl) - - (defalias - ;; tap within 100ms for capslk, hold more than 100ms for lctl - cap (tap-hold 100 100 caps lctl)) + (deflayermap (default-layer) + ;; tap caps lock as caps lock, hold caps lock as left control + caps (tap-hold 100 100 caps lctl)) ''; description = '' Configuration other than `defcfg`. From e8beca26170633f3b1efd9ed77eb5d6f71878ee3 Mon Sep 17 00:00:00 2001 From: Shawn8901 Date: Mon, 6 May 2024 22:46:57 +0200 Subject: [PATCH 14/18] nftables: fix substituted file location --- pkgs/os-specific/linux/nftables/python.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/os-specific/linux/nftables/python.nix b/pkgs/os-specific/linux/nftables/python.nix index 5c5770ebed4a..7980b8ff6de6 100644 --- a/pkgs/os-specific/linux/nftables/python.nix +++ b/pkgs/os-specific/linux/nftables/python.nix @@ -10,7 +10,7 @@ buildPythonPackage { pyproject = true; postPatch = '' - substituteInPlace "py/src/nftables.py" \ + substituteInPlace "src/nftables.py" \ --replace-fail "libnftables.so.1" "${nftables}/lib/libnftables.so.1" ''; From be1b856e5c4822ac871f086ebd50abd3e29a8bf5 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Mon, 6 May 2024 21:29:41 +0000 Subject: [PATCH 15/18] fastfetch: 2.11.3 -> 2.11.5 --- pkgs/by-name/fa/fastfetch/package.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/by-name/fa/fastfetch/package.nix b/pkgs/by-name/fa/fastfetch/package.nix index 0115b1baa114..ad72772d2d9c 100644 --- a/pkgs/by-name/fa/fastfetch/package.nix +++ b/pkgs/by-name/fa/fastfetch/package.nix @@ -47,13 +47,13 @@ let in stdenv'.mkDerivation (finalAttrs: { pname = "fastfetch"; - version = "2.11.3"; + version = "2.11.5"; src = fetchFromGitHub { owner = "fastfetch-cli"; repo = "fastfetch"; rev = finalAttrs.version; - hash = "sha256-kKtJvGnPncosmwjfTKa14G5jQiSkzkURBATvBmavdys="; + hash = "sha256-5Chyw4+U2n935YP/Msw8PJ+5iLMES71O+uABn6nVtiI="; }; outputs = [ "out" "man" ]; From cab5f0bc2652243ffbc1807380621d1691b79b41 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Tue, 7 May 2024 00:29:20 +0000 Subject: [PATCH 16/18] cargo-expand: 1.0.85 -> 1.0.86 --- pkgs/by-name/ca/cargo-expand/package.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/by-name/ca/cargo-expand/package.nix b/pkgs/by-name/ca/cargo-expand/package.nix index 1ee53112cff1..f16b0424031d 100644 --- a/pkgs/by-name/ca/cargo-expand/package.nix +++ b/pkgs/by-name/ca/cargo-expand/package.nix @@ -5,16 +5,16 @@ rustPlatform.buildRustPackage rec { pname = "cargo-expand"; - version = "1.0.85"; + version = "1.0.86"; src = fetchFromGitHub { owner = "dtolnay"; repo = pname; rev = version; - hash = "sha256-2i9FAWF9b1tNdDbTwCzQY8Mh/h85uigR5IT9kzPft00="; + hash = "sha256-wp4JYuAHtZrHer4db0vBCchf8mQIt6jXWqjqpGKws4o="; }; - cargoHash = "sha256-Vl0zC9TPhiFv2SiZtzIUV7GftB1y9K1gLy1ajisP8Y0="; + cargoHash = "sha256-QNH3G34yTEecZyVgw2a1RJnd1CMfV4aw1OJqes/cK2s="; meta = with lib; { description = "Cargo subcommand to show result of macro expansion"; From 7eb75621ee9704c63670743fb4bbc946e6ab40b0 Mon Sep 17 00:00:00 2001 From: Sigmanificient Date: Tue, 7 May 2024 01:22:42 +0200 Subject: [PATCH 17/18] qmenumodel: disable broken tests --- pkgs/development/libraries/qmenumodel/default.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkgs/development/libraries/qmenumodel/default.nix b/pkgs/development/libraries/qmenumodel/default.nix index 7d1384df364b..c2b5e61b9d3b 100644 --- a/pkgs/development/libraries/qmenumodel/default.nix +++ b/pkgs/development/libraries/qmenumodel/default.nix @@ -12,6 +12,7 @@ , python3 , qtbase , qtdeclarative +, gobject-introspection }: stdenv.mkDerivation (finalAttrs: { @@ -55,6 +56,7 @@ stdenv.mkDerivation (finalAttrs: { nativeCheckInputs = [ dbus dbus-test-runner + gobject-introspection (python3.withPackages (ps: with ps; [ dbus-python pygobject3 From afbee830e061149f6f4644b2d6eaea050f42a903 Mon Sep 17 00:00:00 2001 From: Sigmanificient Date: Tue, 7 May 2024 03:54:57 +0200 Subject: [PATCH 18/18] python3Packages.pycparser: add python >= 3.8 check --- pkgs/development/python-modules/pycparser/default.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkgs/development/python-modules/pycparser/default.nix b/pkgs/development/python-modules/pycparser/default.nix index 89771e7df8f7..4aa2c104d8a0 100644 --- a/pkgs/development/python-modules/pycparser/default.nix +++ b/pkgs/development/python-modules/pycparser/default.nix @@ -1,4 +1,4 @@ -{ lib, buildPythonPackage, fetchPypi, unittestCheckHook }: +{ lib, buildPythonPackage, fetchPypi, unittestCheckHook, pythonOlder }: buildPythonPackage rec { pname = "pycparser"; @@ -11,6 +11,7 @@ buildPythonPackage rec { }; nativeCheckInputs = [ unittestCheckHook ]; + disabled = pythonOlder "3.8"; unittestFlagsArray = [ "-s" "tests" ];