From e608e04f3c5d1db8f583eb053ad7d6b6aca80ae4 Mon Sep 17 00:00:00 2001 From: Jeff Huffman Date: Mon, 30 Jan 2023 21:58:09 -0500 Subject: [PATCH 01/37] puddletag: fix wrapping --- pkgs/applications/audio/puddletag/default.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/pkgs/applications/audio/puddletag/default.nix b/pkgs/applications/audio/puddletag/default.nix index 705820950b0d..128d5c59c78e 100644 --- a/pkgs/applications/audio/puddletag/default.nix +++ b/pkgs/applications/audio/puddletag/default.nix @@ -62,6 +62,7 @@ python3.pkgs.buildPythonApplication rec { # the file should be executable but it isn't so our wrapper doesn't run preFixup = '' chmod 555 $out/bin/puddletag + wrapQtApp $out/bin/puddletag ''; doCheck = false; # there are no tests From 2f14f5d561cb1cb5f8f95902a37568c9c350c1b1 Mon Sep 17 00:00:00 2001 From: Ben Darwin Date: Mon, 6 Feb 2023 21:52:51 -0500 Subject: [PATCH 02/37] python310Packages.jaxopt: init at 0.5.5 --- .../python-modules/jaxopt/default.nix | 59 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 61 insertions(+) create mode 100644 pkgs/development/python-modules/jaxopt/default.nix diff --git a/pkgs/development/python-modules/jaxopt/default.nix b/pkgs/development/python-modules/jaxopt/default.nix new file mode 100644 index 000000000000..09a1ff66f263 --- /dev/null +++ b/pkgs/development/python-modules/jaxopt/default.nix @@ -0,0 +1,59 @@ +{ lib +, buildPythonPackage +, pythonOlder +, fetchFromGitHub +, pytestCheckHook +, absl-py +, cvxpy +, jax +, jaxlib +, matplotlib +, numpy +, optax +, scipy +, scikitlearn +}: + +buildPythonPackage rec { + pname = "jaxopt"; + version = "0.5.5"; + disabled = pythonOlder "3.7"; + + src = fetchFromGitHub { + owner = "google"; + repo = pname; + rev = "refs/tags/${pname}-v${version}"; + hash = "sha256-WOsr/Dvguu9/qX6+LMlAKM3EANtYPtDu8Uo2157+bs0="; + }; + + propagatedBuildInputs = [ + absl-py + jax + jaxlib + matplotlib + numpy + scipy + ]; + + nativeCheckInputs = [ + pytestCheckHook + cvxpy + optax + scikitlearn + ]; + + pythonImportsCheck = [ + "jaxopt" + "jaxopt.implicit_diff" + "jaxopt.linear_solve" + "jaxopt.loss" + "jaxopt.tree_util" + ]; + + meta = with lib; { + homepage = "https://jaxopt.github.io"; + description = "Hardware accelerated, batchable and differentiable optimizers in JAX"; + license = licenses.asl20; + maintainers = with maintainers; [ bcdarwin ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 7c55959b6149..3d1502c30ddf 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -4850,6 +4850,8 @@ self: super: with self; { cudaSupport = false; }; + jaxopt = callPackage ../development/python-modules/jaxopt { }; + JayDeBeApi = callPackage ../development/python-modules/JayDeBeApi { }; jc = callPackage ../development/python-modules/jc { }; From 20f49fa10b8d28c581a1cf125de12e5bbf47840a Mon Sep 17 00:00:00 2001 From: Ben Darwin Date: Mon, 6 Feb 2023 21:54:43 -0500 Subject: [PATCH 03/37] python310Packages.blackjax: init at 0.9.6 --- .../python-modules/blackjax/default.nix | 62 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 64 insertions(+) create mode 100644 pkgs/development/python-modules/blackjax/default.nix diff --git a/pkgs/development/python-modules/blackjax/default.nix b/pkgs/development/python-modules/blackjax/default.nix new file mode 100644 index 000000000000..62fdc0e94a98 --- /dev/null +++ b/pkgs/development/python-modules/blackjax/default.nix @@ -0,0 +1,62 @@ +{ lib +, buildPythonPackage +, pythonOlder +, fetchFromGitHub +, fetchpatch +, pytestCheckHook +, fastprogress +, jax +, jaxlib +, jaxopt +, optax +, typing-extensions +}: + +buildPythonPackage rec { + pname = "blackjax"; + version = "0.9.6"; + disabled = pythonOlder "3.7"; + + src = fetchFromGitHub { + owner = "blackjax-devs"; + repo = pname; + rev = "refs/tags/${version}"; + hash = "sha256-EieDu9SJxi2cp1bHlxX4vvFZeDGMGIm24GoR8nSyjvE="; + }; + + patches = [ + # remove in next release + (fetchpatch { + name = "fix-lbfgs-args"; + url = "https://github.com/blackjax-devs/blackjax/commit/1aaa6f64bbcb0557b658604b2daba826e260cbc6.patch"; + hash = "sha256-XyjorXPH5Ap35Tv1/lTeTWamjplJF29SsvOq59ypftE="; + }) + ]; + + propagatedBuildInputs = [ + fastprogress + jax + jaxlib + jaxopt + optax + typing-extensions + ]; + + nativeCheckInputs = [ pytestCheckHook ]; + disabledTestPaths = [ "tests/test_benchmarks.py" ]; + disabledTests = [ + # too slow + "test_adaptive_tempered_smc" + ]; + + pythonImportsCheck = [ + "blackjax" + ]; + + meta = with lib; { + homepage = "https://blackjax-devs.github.io/blackjax"; + description = "Sampling library designed for ease of use, speed and modularity"; + license = licenses.asl20; + maintainers = with maintainers; [ bcdarwin ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 3d1502c30ddf..71b779dfab40 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -1296,6 +1296,8 @@ self: super: with self; { black = callPackage ../development/python-modules/black { }; + blackjax = callPackage ../development/python-modules/blackjax { }; + black-macchiato = callPackage ../development/python-modules/black-macchiato { }; bleach = callPackage ../development/python-modules/bleach { }; From 36acad3daf6fa6cc32fed4641eaf7e36984f055b Mon Sep 17 00:00:00 2001 From: Ben Darwin Date: Mon, 6 Feb 2023 21:56:05 -0500 Subject: [PATCH 04/37] python310Packages.bambi: enable more tests --- pkgs/development/python-modules/bambi/default.nix | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/pkgs/development/python-modules/bambi/default.nix b/pkgs/development/python-modules/bambi/default.nix index c15c3117b69b..2999eadd678f 100644 --- a/pkgs/development/python-modules/bambi/default.nix +++ b/pkgs/development/python-modules/bambi/default.nix @@ -4,9 +4,11 @@ , fetchFromGitHub , pytestCheckHook , arviz +, blackjax , formulae , graphviz , numpy +, numpyro , pandas , pymc , scipy @@ -35,14 +37,16 @@ buildPythonPackage rec { preCheck = ''export HOME=$(mktemp -d)''; - nativeCheckInputs = [ graphviz pytestCheckHook ]; + nativeCheckInputs = [ + blackjax + graphviz + numpyro + pytestCheckHook + ]; disabledTests = [ # attempt to fetch data: "test_data_is_copied" "test_predict_offset" - # require blackjax (not in Nixpkgs), numpyro, and jax: - "test_logistic_regression_categoric_alternative_samplers" - "test_regression_alternative_samplers" ]; pythonImportsCheck = [ "bambi" ]; From e6e02bc9c21aeedb9c70893e5d0b9f68a7b05997 Mon Sep 17 00:00:00 2001 From: rewine Date: Thu, 12 Jan 2023 15:52:22 +0800 Subject: [PATCH 05/37] dde-api: init at 5.5.32 --- pkgs/desktops/deepin/default.nix | 1 + .../dde-api/0001-fix-PATH-for-NixOS.patch | 39 ++++ .../deepin/go-package/dde-api/default.nix | 109 +++++++++ .../deepin/go-package/dde-api/deps.nix | 210 ++++++++++++++++++ 4 files changed, 359 insertions(+) create mode 100644 pkgs/desktops/deepin/go-package/dde-api/0001-fix-PATH-for-NixOS.patch create mode 100644 pkgs/desktops/deepin/go-package/dde-api/default.nix create mode 100644 pkgs/desktops/deepin/go-package/dde-api/deps.nix diff --git a/pkgs/desktops/deepin/default.nix b/pkgs/desktops/deepin/default.nix index 2cb3e282b42b..9661bdd1654c 100644 --- a/pkgs/desktops/deepin/default.nix +++ b/pkgs/desktops/deepin/default.nix @@ -43,6 +43,7 @@ let go-lib = callPackage ./go-package/go-lib { inherit replaceAll; }; go-gir-generator = callPackage ./go-package/go-gir-generator { }; go-dbus-factory = callPackage ./go-package/go-dbus-factory { }; + dde-api = callPackage ./go-package/dde-api { inherit replaceAll; }; deepin-pw-check = callPackage ./go-package/deepin-pw-check { }; #### TOOLS diff --git a/pkgs/desktops/deepin/go-package/dde-api/0001-fix-PATH-for-NixOS.patch b/pkgs/desktops/deepin/go-package/dde-api/0001-fix-PATH-for-NixOS.patch new file mode 100644 index 000000000000..c4726982241d --- /dev/null +++ b/pkgs/desktops/deepin/go-package/dde-api/0001-fix-PATH-for-NixOS.patch @@ -0,0 +1,39 @@ +From c8f597bd7286a76e7ce371e4f7982d9d2700868a Mon Sep 17 00:00:00 2001 +From: rewine +Date: Wed, 28 Dec 2022 23:06:53 +0800 +Subject: [PATCH] fix PATH for NixOS + +--- + device/main.go | 2 +- + locale-helper/main.go | 2 +- + 2 files changed, 2 insertions(+), 2 deletions(-) + +diff --git a/device/main.go b/device/main.go +index 6c5404c..f79bcfc 100644 +--- a/device/main.go ++++ b/device/main.go +@@ -15,7 +15,7 @@ import ( + var logger = log.NewLogger(dbusServiceName) + + func main() { +- os.Setenv("PATH", "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin") ++ os.Setenv("PATH", "/run/current-system/sw/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin") + service, err := dbusutil.NewSystemService() + if err != nil { + logger.Fatal("failed to new system service:", err) +diff --git a/locale-helper/main.go b/locale-helper/main.go +index 0866e48..ef000b5 100644 +--- a/locale-helper/main.go ++++ b/locale-helper/main.go +@@ -45,7 +45,7 @@ var ( + ) + + func main() { +- os.Setenv("PATH", "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin") ++ os.Setenv("PATH", "/run/current-system/sw/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin") + logger.BeginTracing() + defer logger.EndTracing() + +-- +2.38.1 + diff --git a/pkgs/desktops/deepin/go-package/dde-api/default.nix b/pkgs/desktops/deepin/go-package/dde-api/default.nix new file mode 100644 index 000000000000..ef4a287b3df9 --- /dev/null +++ b/pkgs/desktops/deepin/go-package/dde-api/default.nix @@ -0,0 +1,109 @@ +{ stdenv +, lib +, fetchFromGitHub +, buildGoPackage +, replaceAll +, wrapQtAppsHook +, wrapGAppsHook +, gtk3 +, pkg-config +, deepin-gettext-tools +, alsa-lib +, go-dbus-factory +, go-gir-generator +, go-lib +, libcanberra +, libgudev +, librsvg +, poppler +, pulseaudio +, gdk-pixbuf-xlib +, dbus +, coreutils +, deepin-desktop-base +}: + +buildGoPackage rec { + pname = "dde-api"; + version = "5.5.32"; + + goPackagePath = "github.com/linuxdeepin/dde-api"; + + src = fetchFromGitHub { + owner = "linuxdeepin"; + repo = pname; + rev = version; + sha256 = "sha256-F+vEOSpysqVtjs8de5mCmeANuCbYUQ860ZHl5rwNYac="; + }; + + patches = [ ./0001-fix-PATH-for-NixOS.patch ]; + + postPatch = replaceAll "/usr/lib/deepin-api" "/run/current-system/sw/lib/deepin-api" + + replaceAll "/usr/share/i18n/language_info.json" "${deepin-desktop-base}/share/i18n/language_info.json" + + replaceAll "/usr/bin/dbus-send" "${dbus}/bin/dbus-send" + + replaceAll "/usr/bin/true" "${coreutils}/bin/true" + + replaceAll "/usr/sbin/alsactl" "alsactl" + + '' + substituteInPlace lunar-calendar/huangli.go adjust-grub-theme/main.go \ + --replace "/usr/share/dde-api" "$out/share/dde-api" + substituteInPlace themes/{theme.go,settings.go} \ + --replace "/usr/share" "/run/current-system/sw/share" + ''; + + goDeps = ./deps.nix; + + nativeBuildInputs = [ + pkg-config + deepin-gettext-tools + wrapQtAppsHook + wrapGAppsHook + ]; + dontWrapGApps = true; + + buildInputs = [ + go-dbus-factory + go-gir-generator + go-lib + gtk3 + alsa-lib + libcanberra + libgudev + librsvg + poppler + pulseaudio + gdk-pixbuf-xlib + ]; + + buildPhase = '' + runHook preBuild + GOPATH="$GOPATH:${go-dbus-factory}/share/gocode" + GOPATH="$GOPATH:${go-gir-generator}/share/gocode" + GOPATH="$GOPATH:${go-lib}/share/gocode" + make -C go/src/${goPackagePath} + runHook postBuild + ''; + + installPhase = '' + runHook preInstall + make install DESTDIR="$out" PREFIX="/" -C go/src/${goPackagePath} + runHook postInstall + ''; + + preFixup = '' + qtWrapperArgs+=("''${gappsWrapperArgs[@]}") + ''; + + postFixup = '' + for binary in $out/lib/deepin-api/*; do + wrapProgram $binary "''${qtWrapperArgs[@]}" + done + ''; + + meta = with lib; { + description = "Dbus interfaces used for screen zone detecting, thumbnail generating, sound playing, etc"; + homepage = "https://github.com/linuxdeepin/dde-api"; + license = licenses.gpl3Plus; + platforms = platforms.linux; + maintainers = teams.deepin.members; + }; +} diff --git a/pkgs/desktops/deepin/go-package/dde-api/deps.nix b/pkgs/desktops/deepin/go-package/dde-api/deps.nix new file mode 100644 index 000000000000..52ee3d963cf9 --- /dev/null +++ b/pkgs/desktops/deepin/go-package/dde-api/deps.nix @@ -0,0 +1,210 @@ +[ + { + goPackagePath = "gopkg.in/alecthomas/kingpin.v2"; + fetch = { + type = "git"; + url = "https://gopkg.in/alecthomas/kingpin.v2"; + rev = "v2.2.6"; + sha256 = "sha256-uViE2kPj7tMrGYVjjdLOl2jFDmmu+3P7GvnZBse2zVY="; + }; + } + { + goPackagePath = "github.com/disintegration/imaging"; + fetch = { + type = "git"; + url = "https://github.com/disintegration/imaging"; + rev = "v1.6.2"; + sha256 = "sha256-pSeMTPvSkxlthh65LjNYYhPLvCZDkBgVgAGYWW0Aguo="; + }; + } + { + goPackagePath = "github.com/linuxdeepin/go-x11-client"; + fetch = { + type = "git"; + url = "https://github.com/linuxdeepin/go-x11-client"; + rev = "0.6.9"; + sha256 = "sha256-xXNaXpFFHJN1fCFLoVrQFCXQ4ya+Kga55QWcJL/InkA="; + }; + } + { + goPackagePath = "github.com/mattn/go-sqlites"; + fetch = { + type = "git"; + url = "https://github.com/mattn/go-sqlite3"; + rev = "v1.14.12"; + sha256 = "sha256-SLW1FyyfJGPUid1epgmJHZGJebI77Wg5WMAPiz1GcYs="; + }; + } + { + goPackagePath = "github.com/godbus/dbus"; + fetch = { + type = "git"; + url = "https://github.com/godbus/dbus"; + rev = "v5.1.0"; + sha256 = "sha256-JSPtmkGEStBEVrKGszeLCb7P38SzQKgMiDC3eDppXs0="; + }; + } + { + goPackagePath = "github.com/fsnotify/fsnotify"; + fetch = { + type = "git"; + url = "https://github.com/fsnotify/fsnotify"; + rev = "v1.5.1"; + sha256 = "sha256-B8kZ8yiWgallT7R2j1kSRJcJkSGFVf9ise+TpXa+7XY="; + }; + } + { + goPackagePath = "golang.org/x/sys"; + fetch = { + type = "git"; + url = "https://github.com/golang/sys"; + rev = "289d7a0edf712062d9f1484b07bdf2383f48802f"; + sha256 = "sha256-AzS/J3OocI7mA0xsIfQzyskNKVija7F2yvuts+EFJBs="; + }; + } + { + goPackagePath = "github.com/stretchr/testify"; + fetch = { + type = "git"; + url = "https://github.com/stretchr/testify"; + rev = "v1.7.1"; + sha256 = "sha256-disUVIHiIDSj/go3APtJH8awSl8QwKRRFLKI7LRnl0w="; + }; + } + { + goPackagePath = "github.com/davecgh/go-spew"; + fetch = { + type = "git"; + url = "https://github.com/davecgh/go-spew"; + rev = "v1.1.1"; + sha256 = "sha256-nhzSUrE1fCkN0+RL04N4h8jWmRFPPPWbCuDc7Ss0akI="; + }; + } + { + goPackagePath = "github.com/pmezard/go-difflib"; + fetch = { + type = "git"; + url = "https://github.com/pmezard/go-difflib"; + rev = "5d4384ee4fb2527b0a1256a821ebfc92f91efefc"; + sha256 = "sha256-XA4Oj1gdmdV/F/+8kMI+DBxKPthZ768hbKsO3d9Gx90="; + }; + } + { + goPackagePath = "github.com/stretchr/objx"; + fetch = { + type = "git"; + url = "https://github.com/stretchr/objx"; + rev = "v0.3.0"; + sha256 = "sha256-T753/EiD5Cpk6H2JFhd+s1gFvpNptG2XlEHxZF6dQaw="; + }; + } + { + goPackagePath = "gopkg.in/yaml.v3"; + fetch = { + type = "git"; + url = "https://github.com/go-yaml/yaml"; + rev = "496545a6307b2a7d7a710fd516e5e16e8ab62dbc"; + sha256 = "sha256-j8yDji+vqsitpRZirpb4w/Em8nstgf28wpwkcrOlxBk="; + }; + } + { + goPackagePath = "golang.org/x/image"; + fetch = { + type = "git"; + url = "https://github.com/golang/image"; + rev = "a8550c1d254a56cf1762a2993881d2b23c0c83dd"; + sha256 = "sha256-gtRGCsCe8tKLsZWhKLL8c5whz9rCMoCHfH13rcSW/OM="; + }; + } + { + goPackagePath = "github.com/alecthomas/units"; + fetch = { + type = "git"; + url = "https://github.com/alecthomas/units"; + rev = "b94a6e3cc13755c0a75fffecbb089eb346fc4289"; + sha256 = "sha256-uriYmwxT69xbmWKO/5OAyeMa2lFBOJDrU2KtQh/+ZjY="; + }; + } + { + goPackagePath = "github.com/alecthomas/template"; + fetch = { + type = "git"; + url = "https://github.com/alecthomas/template"; + rev = "fb15b899a75114aa79cc930e33c46b577cc664b1"; + sha256 = "sha256-RsS4qxdRQ3q+GejA8D9Iu31A/mZNms4LbJ7518jWiu4="; + }; + } + { + goPackagePath = "github.com/cryptix/wav"; + fetch = { + type = "git"; + url = "https://github.com/cryptix/wav"; + rev = "8bdace674401f0bd3b63c65479b6a6ff1f9d5e44"; + sha256 = "sha256-psUCHRFGEOpN3obFbCvSfW0AGEFSI29d0q4MFsHG3qI="; + }; + } + { + goPackagePath = "github.com/fogleman/gg"; + fetch = { + type = "git"; + url = "https://github.com/fogleman/gg"; + rev = "v1.3.0"; + sha256 = "sha256-Fs2JI0FmF4N5EzXJzGAPZMxZxo6wKyebkN/iBZ9sdNo="; + }; + } + { + goPackagePath = "github.com/golang/freetype"; + fetch = { + type = "git"; + url = "https://github.com/golang/freetype"; + rev = "e2365dfdc4a05e4b8299a783240d4a7d5a65d4e4"; + sha256 = "sha256-rOOsv1sNLbYEKnwXZtUlB2CXVkFANyzZy2E7w2QbnKQ="; + }; + } + { + goPackagePath = "github.com/gosexy/gettext"; + fetch = { + type = "git"; + url = "https://github.com/gosexy/gettext"; + rev = "74466a0a0c4a62fea38f44aa161d4bbfbe79dd6b"; + sha256 = "sha256-8U2oSi446U13c3uqcbg/14okypxKmckRuvWfZlGHVys="; + }; + } + { + goPackagePath = "github.com/nfnt/resize"; + fetch = { + type = "git"; + url = "https://github.com/nfnt/resize"; + rev = "83c6a9932646f83e3267f353373d47347b6036b2"; + sha256 = "sha256-yvPV+HlDOyJsiwAcVHQkmtw8DHSXyw+cXHkigXm8rAA="; + }; + } + { + goPackagePath = "github.com/youpy/go-wav"; + fetch = { + type = "git"; + url = "https://github.com/youpy/go-wav"; + rev = "v0.3.2"; + sha256 = "sha256-jNqXW3F3fcgjT47+d2MVXauWkA7+1KfYVu3ZZpRCTkM="; + }; + } + { + goPackagePath = "github.com/zaf/g711"; + fetch = { + type = "git"; + url = "https://github.com/zaf/g711"; + rev = "v1.2"; + sha256 = "sha256-G+0cgGw/fcOUFVn32AeqUE0YjyOS82Z5MTcn6IANhCY="; + }; + } + { + goPackagePath = "github.com/youpy/go-riff"; + fetch = { + type = "git"; + url = "https://github.com/youpy/go-riff"; + rev = "v0.1.0"; + sha256 = "sha256-d/3rkxDeRTPveZblArKc61gB4LJVV08n7g0THieuhx8="; + }; + } +] + From fe5d8a3fb7fa154f85a6a5b593741da1a6d3c44b Mon Sep 17 00:00:00 2001 From: Anna Aurora Date: Tue, 7 Feb 2023 19:02:26 +0100 Subject: [PATCH 06/37] structorizer: init at 3.32-11 Co-authored-by: laalsaas <43275254+laalsaas@users.noreply.github.com> --- .../graphics/structorizer/default.nix | 104 ++++++++++++++++++ .../graphics/structorizer/makeBigJar.patch | 31 ++++++ .../structorizer/makeStructorizer.patch | 54 +++++++++ pkgs/top-level/all-packages.nix | 2 + 4 files changed, 191 insertions(+) create mode 100755 pkgs/applications/graphics/structorizer/default.nix create mode 100644 pkgs/applications/graphics/structorizer/makeBigJar.patch create mode 100644 pkgs/applications/graphics/structorizer/makeStructorizer.patch diff --git a/pkgs/applications/graphics/structorizer/default.nix b/pkgs/applications/graphics/structorizer/default.nix new file mode 100755 index 000000000000..ca58271425d9 --- /dev/null +++ b/pkgs/applications/graphics/structorizer/default.nix @@ -0,0 +1,104 @@ +{ stdenv +, lib +, fetchFromGitHub +, jdk11 +, makeDesktopItem +, makeWrapper +, copyDesktopItems +}: + +stdenv.mkDerivation rec { + pname = "structorizer"; + version = "3.32-11"; + + desktopItems = [ + (makeDesktopItem { + type = "Application"; + name = "Structorizer"; + desktopName = "Structorizer"; + genericName = "Diagram creator"; + comment = meta.description; + icon = pname; + exec = pname; + terminal = false; + mimeTypes = [ "application/nsd" ]; + categories = [ + "Development" + "Graphics" + "VectorGraphics" + "RasterGraphics" + "ComputerScience" + ]; + keywords = [ "nsd" "diagrams" ]; + }) + ]; + + src = fetchFromGitHub { + owner = "fesch"; + repo = "Structorizer.Desktop"; + rev = version; + hash = "sha256-rGyeOcGm6uBplgTjMIOy/xRekfHacwDy9kkMigmRSdk="; + }; + + patches = [ ./makeStructorizer.patch ./makeBigJar.patch ]; + + strictDeps = true; + + nativeBuildInputs = [ jdk11 makeWrapper copyDesktopItems ]; + + buildInputs = [ jdk11 ]; + + postPatch = '' + chmod +x makeStructorizer + chmod +x makeBigJar + + patchShebangs --build makeStructorizer + patchShebangs --build makeBigJar + ''; + + buildPhase = '' + runHook preBuild + + ./makeStructorizer + ./makeBigJar + + runHook postBuild + ''; + + installPhase = '' + runHook preInstall + + install -d $out/bin $out/share/mime/packages + + install -D ${pname}.jar -t $out/share/java/ + makeWrapper ${jdk11}/bin/java $out/bin/${pname} \ + --add-flags "-jar $out/share/java/${pname}.jar" + + cat << EOF > $out/share/mime/packages/structorizer.xml + + + + Nassi-Shneiderman diagram + Nassi-Shneiderman-Diagramm + + + + EOF + + cd src/lu/fisch/${pname}/gui + install -vD icons/000_${pname}.png $out/share/icons/hicolor/16x16/apps/${pname}.png + for icon_width in 24 32 48 64 128 256; do + install -vD icons_"$icon_width"/000_${pname}.png $out/share/icons/hicolor/"$icon_width"x"$icon_width"/apps/${pname}.png + done + + runHook postInstall + ''; + + meta = with lib; { + description = "Create Nassi-Shneiderman diagrams (NSD)"; + homepage = "https://structorizer.fisch.lu"; + license = licenses.gpl3Plus; + platforms = platforms.all; + maintainers = with maintainers; [ annaaurora ]; + }; +} diff --git a/pkgs/applications/graphics/structorizer/makeBigJar.patch b/pkgs/applications/graphics/structorizer/makeBigJar.patch new file mode 100644 index 000000000000..2090a7b35a45 --- /dev/null +++ b/pkgs/applications/graphics/structorizer/makeBigJar.patch @@ -0,0 +1,31 @@ +Reason: Running the program in a headless environment fails. Besides, tests should be conducted in passthru.tests anyway. There is also no AppleStructorizerApplication.class, only the jar. + +diff --git a/makeBigJar b/makeBigJar +index 25547020..c34d0d9c 100644 +--- a/makeBigJar ++++ b/makeBigJar +@@ -75,9 +75,8 @@ jars="bsh-2.1.0 \ + freehep-xml-2.1.1 \ + freehep" + +-# Apple specific stuff is only used if it exists and the compiled class is available +-if test -f ../bin/lu/fisch/structorizer/application/AppleStructorizerApplication.class -a \ +- -f AppleJavaExtensions.jar; then ++# Apple specific stuff is only used if the jar is available ++if test -f lib/AppleJavaExtensions.jar; then + jars="$jars AppleJavaExtensions" + fi + +@@ -114,12 +113,3 @@ echo "Done" + # remove the jar-directory + rm -R jar/ + +-if test -n "$start_compiled"; then +- # execute the archive +- echo; echo "Running Structorizer from all-in-one jar" +- if test "$start_compiled" = "s"; then +- java -jar structorizer.jar +- else +- java -jar structorizer.jar & +- fi +-fi # start block end diff --git a/pkgs/applications/graphics/structorizer/makeStructorizer.patch b/pkgs/applications/graphics/structorizer/makeStructorizer.patch new file mode 100644 index 000000000000..b08ec0f30f6f --- /dev/null +++ b/pkgs/applications/graphics/structorizer/makeStructorizer.patch @@ -0,0 +1,54 @@ +Reason: There is no StructorizerApplet.java anywhere in the source, no .cgt files and running the program in a headless environment fails. Besides, tests should be conducted in passthru.tests anyway. There is also no AppleStructorizerApplication.java, only the jar. + +diff --git a/makeStructorizer b/makeStructorizer +index 99a5e8d3..e954be13 100644 +--- a/makeStructorizer ++++ b/makeStructorizer +@@ -117,18 +117,6 @@ echo "Done" + echo; echo "Compiling Structorizer..." + javac $str_javac_opts -classpath "$str_classpath" Structorizer.java + echo "Done" +-echo; echo "Compiling Structorizer Applet..." +-javac $str_javac_opts -classpath "$str_classpath" StructorizerApplet.java +-echo "Done" +- +-# OS specific classes +-if test -n "$do_apple"; then +- echo; echo "Compiling Apple specific code..." +- javac $str_javac_opts -classpath "$str_classpath" lu/fisch/structorizer/application/AppleStructorizerApplication.java +- echo "Done" +-else +- echo; echo "Apple specific code skipped" +-fi + + # copying some other files to binary tree + echo; echo "Copying resources..." +@@ -147,7 +135,6 @@ cp lu/fisch/structorizer/gui/*.txt ../bin/lu/fisch/structorizer/gui/ + cp lu/fisch/structorizer/gui/*.xml ../bin/lu/fisch/structorizer/gui/ + cp lu/fisch/structorizer/locales/*.txt ../bin/lu/fisch/structorizer/locales/ + cp lu/fisch/structorizer/generators/*.txt ../bin/lu/fisch/structorizer/generators/ +-cp lu/fisch/structorizer/parsers/*.cgt ../bin/lu/fisch/structorizer/parsers/ + cp lu/fisch/structorizer/parsers/*.egt ../bin/lu/fisch/structorizer/parsers/ + cp lu/fisch/structorizer/parsers/*.grm ../bin/lu/fisch/structorizer/parsers/ + cp lu/fisch/structorizer/parsers/*.xsd ../bin/lu/fisch/structorizer/parsers/ +@@ -155,20 +142,5 @@ cp lu/fisch/structorizer/parsers/*.nsd ../bin/lu/fisch/structorizer/parsers/ + cp lu/fisch/structorizer/*.properties ../bin/lu/fisch/structorizer/ + echo "Done" + +-if test -n "$start_compiled"; then +- +- # changing into binary directory +- cd ../bin/ +- +- # run the application +- echo; echo "Running Structorizer from compiled class files" +- if test "$start_compiled" = "s"; then +- java -cp $str_classpath Structorizer +- else +- java -cp $str_classpath Structorizer & +- fi +- +-fi # start block end +- + # move back into the folder where we started + popd >/dev/null diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index d7a156162d4d..802827cf5355 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -12144,6 +12144,8 @@ with pkgs; strip-nondeterminism = perlPackages.strip-nondeterminism; + structorizer = callPackage ../applications/graphics/structorizer { }; + structure-synth = callPackage ../tools/graphics/structure-synth { }; su-exec = callPackage ../tools/security/su-exec {}; From 3953ad2e6b668b25c2f56ba739c5fb9e314e993a Mon Sep 17 00:00:00 2001 From: Luiz Irber Date: Sun, 11 Dec 2022 14:22:07 -0800 Subject: [PATCH 07/37] python3Packages.screed: init at 1.1.1 --- .../python-modules/screed/default.nix | 42 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 44 insertions(+) create mode 100644 pkgs/development/python-modules/screed/default.nix diff --git a/pkgs/development/python-modules/screed/default.nix b/pkgs/development/python-modules/screed/default.nix new file mode 100644 index 000000000000..b2353ad30adf --- /dev/null +++ b/pkgs/development/python-modules/screed/default.nix @@ -0,0 +1,42 @@ +{ lib +, fetchPypi +, buildPythonPackage +, pythonOlder +, bz2file +, setuptools +, setuptools-scm +, pytestCheckHook +}: + +buildPythonPackage rec { + pname = "screed"; + version = "1.1.1"; + disabled = pythonOlder "3.8"; + + src = fetchPypi { + inherit pname version; + sha256 = "sha256-EB4ZNImNLUoU+dnJd3S4wTyQpmuNK3NLtakPsO1iCbU="; + }; + + nativeBuildInputs = [ setuptools-scm ]; + SETUPTOOLS_SCM_PRETEND_VERSION = version; + + pythonImportsCheck = [ "screed" ]; + checkInputs = [ pytestCheckHook ]; + + # These tests use the screed CLI and make assumptions on how screed is + # installed that break with nix. Can be enabled when upstream is fixed. + disabledTests = [ + "Test_convert_shell" + "Test_fa_shell_command" + "Test_fq_shell_command" + ]; + + propagatedBuildInputs = [ bz2file setuptools ]; + + meta = with lib; { + description = "A simple read-only sequence database, designed for short reads"; + homepage = "https://pypi.org/project/screed/"; + license = licenses.bsd3; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index b5f87726d81e..921ff3bd4174 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -10375,6 +10375,8 @@ self: super: with self; { scrapy-splash = callPackage ../development/python-modules/scrapy-splash { }; + screed = callPackage ../development/python-modules/screed { }; + screeninfo = callPackage ../development/python-modules/screeninfo { }; screenlogicpy = callPackage ../development/python-modules/screenlogicpy { }; From 105c76e711cbdbf5f615ce37f702cb37228f3bc1 Mon Sep 17 00:00:00 2001 From: Luiz Irber Date: Mon, 12 Dec 2022 20:50:37 -0800 Subject: [PATCH 08/37] maintainers: add luizirber --- maintainers/maintainer-list.nix | 6 ++++++ pkgs/development/python-modules/screed/default.nix | 1 + 2 files changed, 7 insertions(+) diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix index adaf6d0661b6..1e44236ac704 100644 --- a/maintainers/maintainer-list.nix +++ b/maintainers/maintainer-list.nix @@ -8554,6 +8554,12 @@ githubId = 22085373; name = "Luis Hebendanz"; }; + luizirber = { + email = "nixpkgs@luizirber.org"; + github = "luizirber"; + githubId = 6642; + name = "Luiz Irber"; + }; luizribeiro = { email = "nixpkgs@l9o.dev"; matrix = "@luizribeiro:matrix.org"; diff --git a/pkgs/development/python-modules/screed/default.nix b/pkgs/development/python-modules/screed/default.nix index b2353ad30adf..f21e09d1e581 100644 --- a/pkgs/development/python-modules/screed/default.nix +++ b/pkgs/development/python-modules/screed/default.nix @@ -37,6 +37,7 @@ buildPythonPackage rec { meta = with lib; { description = "A simple read-only sequence database, designed for short reads"; homepage = "https://pypi.org/project/screed/"; + maintainers = with maintainers; [ luizirber ]; license = licenses.bsd3; }; } From a61f33281581ccd06b7a37ca1a5abde7b916e7c1 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Mon, 13 Feb 2023 18:41:50 +0100 Subject: [PATCH 09/37] python311Packages.asyncio-dgram: disable failing test - add changelog to meta --- .../python-modules/asyncio-dgram/default.nix | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/pkgs/development/python-modules/asyncio-dgram/default.nix b/pkgs/development/python-modules/asyncio-dgram/default.nix index baf4702126f9..f999cd3b3b34 100644 --- a/pkgs/development/python-modules/asyncio-dgram/default.nix +++ b/pkgs/development/python-modules/asyncio-dgram/default.nix @@ -17,20 +17,25 @@ buildPythonPackage rec { src = fetchFromGitHub { owner = "jsbronder"; repo = pname; - rev = "v${version}"; - sha256 = "sha256-Eb/9JtgPT2yOlfnn5Ox8M0kcQhSlRCuX8+Rq6amki8Q="; + rev = "refs/tagsv${version}"; + hash = "sha256-Eb/9JtgPT2yOlfnn5Ox8M0kcQhSlRCuX8+Rq6amki8Q="; }; nativeCheckInputs = [ - pytest-asyncio pytestCheckHook ]; + checkInputs = [ + pytest-asyncio + ]; + # OSError: AF_UNIX path too long doCheck = !stdenv.isDarwin; disabledTests = [ "test_protocol_pause_resume" + # TypeError: socket type must be 2 + "test_from_socket_bad_socket" ]; pythonImportsCheck = [ @@ -40,6 +45,7 @@ buildPythonPackage rec { meta = with lib; { description = "Python support for higher level Datagram"; homepage = "https://github.com/jsbronder/asyncio-dgram"; + changelog = "https://github.com/jsbronder/asyncio-dgram/blob/v${version}/ChangeLog"; license = with licenses; [ mit ]; maintainers = with maintainers; [ fab ]; }; From 7ca8fddf5761afa278bc7dfed041cf3fc01e57e0 Mon Sep 17 00:00:00 2001 From: Pavel Sobolev Date: Fri, 10 Feb 2023 16:57:12 +0300 Subject: [PATCH 10/37] maintainers: add paveloom --- maintainers/maintainer-list.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix index ff7d1a669179..702bcebd86d8 100644 --- a/maintainers/maintainer-list.nix +++ b/maintainers/maintainer-list.nix @@ -11305,6 +11305,12 @@ githubId = 15645854; name = "Brad Christensen"; }; + paveloom = { + email = "paveloom@riseup.net"; + github = "paveloom"; + githubId = 49961859; + name = "Pavel Sobolev"; + }; payas = { email = "relekarpayas@gmail.com"; github = "bhankas"; From 6c07e1b78c5a85fefa702e5bd0244adfc40339b9 Mon Sep 17 00:00:00 2001 From: Pavel Sobolev Date: Fri, 10 Feb 2023 18:04:53 +0300 Subject: [PATCH 11/37] subtitleedit: init at 3.6.11 --- .../video/subtitleedit/default.nix | 96 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 + 2 files changed, 98 insertions(+) create mode 100644 pkgs/applications/video/subtitleedit/default.nix diff --git a/pkgs/applications/video/subtitleedit/default.nix b/pkgs/applications/video/subtitleedit/default.nix new file mode 100644 index 000000000000..a7bdf2e110fb --- /dev/null +++ b/pkgs/applications/video/subtitleedit/default.nix @@ -0,0 +1,96 @@ +{ lib +, stdenv +, copyDesktopItems +, makeDesktopItem +, makeWrapper +, fetchzip +, ffmpeg +, gtk2 +, hunspell +, icoutils +, mono +, mpv +, tesseract4 +}: + +stdenv.mkDerivation rec { + pname = "subtitleedit"; + version = "3.6.11"; + + src = fetchzip { + url = "https://github.com/SubtitleEdit/subtitleedit/releases/download/${version}/SE${lib.replaceStrings [ "." ] [ "" ] version}.zip"; + sha256 = "00w9jx704in3hbnzp0i7bhqkhbl0h5mahc5izwa980b67w08dc26"; + stripRoot = false; + }; + + preUnpack = '' + rm -rf source + ''; + + nativeBuildInputs = [ + copyDesktopItems + icoutils + makeWrapper + ]; + + runtimeLibs = lib.makeLibraryPath [ + gtk2 + hunspell + mpv + tesseract4 + ]; + + runtimeBins = lib.makeBinPath [ + ffmpeg + hunspell + tesseract4 + ]; + + installPhase = '' + runHook preInstall + + mkdir -p $out/bin + mkdir -p $out/share/icons/hicolor/{16x16,32x32,48x48,256x256}/apps + + cp -r * $out/bin/ + ln -s ${hunspell.out}/lib/libhunspell*.so $out/bin/libhunspell.so + makeWrapper "${mono}/bin/mono" $out/bin/subtitleedit \ + --add-flags "$out/bin/SubtitleEdit.exe" \ + --prefix LD_LIBRARY_PATH : ${runtimeLibs} \ + --prefix PATH : ${runtimeBins} + + wrestool -x -t 14 SubtitleEdit.exe > subtitleedit.ico + icotool -x -i 3 -o $out/share/icons/hicolor/16x16/apps/subtitleedit.png subtitleedit.ico + icotool -x -i 6 -o $out/share/icons/hicolor/32x32/apps/subtitleedit.png subtitleedit.ico + icotool -x -i 9 -o $out/share/icons/hicolor/48x48/apps/subtitleedit.png subtitleedit.ico + icotool -x -i 10 -o $out/share/icons/hicolor/256x256/apps/subtitleedit.png subtitleedit.ico + + runHook postInstall + ''; + + desktopItems = [ + (makeDesktopItem { + name = pname; + desktopName = "Subtitle Edit"; + exec = "subtitleedit"; + icon = "subtitleedit"; + comment = meta.description; + categories = [ "Video" ]; + }) + ]; + + meta = with lib; { + description = "A subtitle editor"; + homepage = "https://nikse.dk/subtitleedit/"; + license = licenses.gpl3Plus; + longDescription = '' + With Subtitle Edit you can easily adjust a subtitle if it is out of sync with + the video in several different ways. You can also use it for making + new subtitles from scratch (using the time-line /waveform/spectrogram) + or for translating subtitles. + ''; + maintainers = with maintainers; [ paveloom ]; + platforms = platforms.all; + sourceProvenance = with sourceTypes; [ binaryNativeCode ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 87f6a6d595df..5cd8865256ed 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -23386,6 +23386,8 @@ with pkgs; subdl = callPackage ../applications/video/subdl { }; + subtitleedit = callPackage ../applications/video/subtitleedit { }; + subtitleeditor = callPackage ../applications/video/subtitleeditor { }; suil = darwin.apple_sdk_11_0.callPackage ../development/libraries/audio/suil { }; From 4ca42ad0a78017199ae6bf91b8ce90a9e35c5641 Mon Sep 17 00:00:00 2001 From: Daniel Albert Date: Sat, 11 Feb 2023 18:07:57 +0100 Subject: [PATCH 12/37] invoice2data: 0.3.6 -> 0.4.2 Update invoice2data to version v0.4.2 [released on 2023-02-11](https://github.com/invoice-x/invoice2data/releases/tag/v0.4.2). This change also * Installs `ghostscript`, which is used to convert pdfs to images used as input for tesseract * Uses tesseract 5 instead of tesseract 3 * Switches from `xpdf` (which is also marked as insecure) to `poppler_utils`, which is the recommended provider of `pdftotext` according to the `invoice2data` repo. --- pkgs/tools/text/invoice2data/default.nix | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/pkgs/tools/text/invoice2data/default.nix b/pkgs/tools/text/invoice2data/default.nix index d23486159013..acb4e373e809 100644 --- a/pkgs/tools/text/invoice2data/default.nix +++ b/pkgs/tools/text/invoice2data/default.nix @@ -1,26 +1,25 @@ { lib , fetchFromGitHub +, ghostscript , imagemagick +, poppler_utils , python3 -, tesseract -, xpdf +, tesseract5 }: python3.pkgs.buildPythonApplication rec { pname = "invoice2data"; - version = "0.3.6"; + version = "0.4.2"; format = "setuptools"; src = fetchFromGitHub { owner = "invoice-x"; repo = pname; rev = "v${version}"; - sha256 = "sha256-t1jgLyKtQsLINlnkCdSbVfTM6B/EiD1yGtx9UHjyZVE="; + sha256 = "sha256-ss2h8cg0sga+lzJyQHckrZB/Eb63Oj3FkqmGqWCzCQ8="; }; - nativeBuildInputs = with python3.pkgs; [ - setuptools-git - ]; + buildInputs = with python3.pkgs; [ setuptools-git ]; propagatedBuildInputs = with python3.pkgs; [ chardet @@ -28,6 +27,7 @@ python3.pkgs.buildPythonApplication rec { pdfminer-six pillow pyyaml + setuptools unidecode ]; @@ -37,9 +37,10 @@ python3.pkgs.buildPythonApplication rec { ''; makeWrapperArgs = ["--prefix" "PATH" ":" (lib.makeBinPath [ + ghostscript imagemagick - tesseract - xpdf + tesseract5 + poppler_utils ])]; # Tests fails even when ran manually on my ubuntu machine !! From c2ccc12c3f16a32dcd1fbe993328564c61abaea4 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Thu, 16 Feb 2023 00:10:02 +0100 Subject: [PATCH 13/37] python311Packages.ncclient: add missing input - add changelog to meta - disable on unsupported Python releases --- .../python-modules/ncclient/default.nix | 20 +++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/pkgs/development/python-modules/ncclient/default.nix b/pkgs/development/python-modules/ncclient/default.nix index 385899ba8418..4b656fd72fd0 100644 --- a/pkgs/development/python-modules/ncclient/default.nix +++ b/pkgs/development/python-modules/ncclient/default.nix @@ -1,37 +1,45 @@ { lib , buildPythonPackage , fetchFromGitHub -, paramiko -, selectors2 , lxml +, paramiko , pytestCheckHook +, pythonOlder +, six }: buildPythonPackage rec { pname = "ncclient"; version = "0.6.13"; + format = "setuptools"; + + disabled = pythonOlder "3.7"; src = fetchFromGitHub { owner = pname; repo = pname; - rev = "v${version}"; - sha256 = "sha256-NrilXB1NFcqNCGrwshhuLdhQoeHJ12PSp4MBScT9kYc="; + rev = "refs/tags/v${version}"; + hash = "sha256-NrilXB1NFcqNCGrwshhuLdhQoeHJ12PSp4MBScT9kYc="; }; propagatedBuildInputs = [ paramiko lxml + six ]; nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ "ncclient" ]; + pythonImportsCheck = [ + "ncclient" + ]; meta = with lib; { - homepage = "https://github.com/ncclient/ncclient"; description = "Python library for NETCONF clients"; + homepage = "https://github.com/ncclient/ncclient"; + changelog = "https://github.com/ncclient/ncclient/releases/tag/v${version}"; license = licenses.asl20; maintainers = with maintainers; [ xnaveira ]; }; From 2bcea97534f1ba061fe7a80fb956b846254778d5 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Thu, 16 Feb 2023 00:19:23 +0100 Subject: [PATCH 14/37] python310Packages.locationsharinglib: add changelog to meta --- .../python-modules/locationsharinglib/default.nix | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/locationsharinglib/default.nix b/pkgs/development/python-modules/locationsharinglib/default.nix index 01c07c6fecc5..a06101d83757 100644 --- a/pkgs/development/python-modules/locationsharinglib/default.nix +++ b/pkgs/development/python-modules/locationsharinglib/default.nix @@ -14,11 +14,13 @@ buildPythonPackage rec { pname = "locationsharinglib"; version = "4.1.8"; + format = "setuptools"; + disabled = pythonOlder "3.7"; src = fetchPypi { inherit pname version; - sha256 = "sha256-69NzKSWpuU0Riwlj6cFC4h/shc/83e1mpq++zxDqftY="; + hash = "sha256-69NzKSWpuU0Riwlj6cFC4h/shc/83e1mpq++zxDqftY="; }; propagatedBuildInputs = [ @@ -49,11 +51,14 @@ buildPythonPackage rec { runHook postCheck ''; - pythonImportsCheck = [ "locationsharinglib" ]; + pythonImportsCheck = [ + "locationsharinglib" + ]; meta = with lib; { description = "Python package to retrieve coordinates from a Google account"; homepage = "https://locationsharinglib.readthedocs.io/"; + changelog = "https://github.com/costastf/locationsharinglib/blob/${version}/HISTORY.rst"; license = licenses.mit; maintainers = with maintainers; [ fab ]; }; From b424c05225be95dac7534c3110db8ac86ba243c0 Mon Sep 17 00:00:00 2001 From: Bobby Rong Date: Thu, 16 Feb 2023 03:31:24 +0000 Subject: [PATCH 15/37] =?UTF-8?q?vte:=200.70.2=20=E2=86=92=200.70.3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit https://gitlab.gnome.org/GNOME/vte/-/compare/0.70.2...0.70.3 --- pkgs/development/libraries/vte/default.nix | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/pkgs/development/libraries/vte/default.nix b/pkgs/development/libraries/vte/default.nix index 715755bb9480..085fd7ee8ad0 100644 --- a/pkgs/development/libraries/vte/default.nix +++ b/pkgs/development/libraries/vte/default.nix @@ -30,13 +30,13 @@ stdenv.mkDerivation rec { pname = "vte"; - version = "0.70.2"; + version = "0.70.3"; outputs = [ "out" "dev" "devdoc" ]; src = fetchurl { url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz"; - sha256 = "sha256-TRW0OA3j9WTVfqvQBjicQHxwXfWwxwAw/cwklxozTYA="; + sha256 = "sha256-lFcTSgLzFX/KBPfg05vbDzCZvgo86CtxOdDJioB0jyM="; }; patches = [ @@ -48,13 +48,6 @@ stdenv.mkDerivation rec { url = "https://git.alpinelinux.org/aports/plain/community/vte3/fix-W_EXITCODE.patch?id=4d35c076ce77bfac7655f60c4c3e4c86933ab7dd"; sha256 = "FkVyhsM0mRUzZmS2Gh172oqwcfXv6PyD6IEgjBhy2uU="; }) - - # Fix copying text with GTK 4. - # https://gitlab.gnome.org/GNOME/vte/-/issues/2584 - (fetchpatch { - url = "https://gitlab.gnome.org/GNOME/vte/-/commit/ddb2c8ae0baf3b73d77d1f6ce6142e92faa632af.patch"; - hash = "sha256-5Eu0EH0MBJqJUZ6d5bVe5+hl4Z/Gd3Yltz0VAQK7ogY="; - }) ]; nativeBuildInputs = [ From 29a1311a65314f528bf29ca4733765aa0691208d Mon Sep 17 00:00:00 2001 From: Bobby Rong Date: Thu, 16 Feb 2023 03:35:57 +0000 Subject: [PATCH 16/37] =?UTF-8?q?gnome.rygel:=200.42.0=20=E2=86=92=200.42.?= =?UTF-8?q?1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit https://gitlab.gnome.org/GNOME/rygel/-/compare/rygel-0.42.0...rygel-0.42.1 --- pkgs/desktops/gnome/core/rygel/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/desktops/gnome/core/rygel/default.nix b/pkgs/desktops/gnome/core/rygel/default.nix index c2414020968e..6c5d6bc64b74 100644 --- a/pkgs/desktops/gnome/core/rygel/default.nix +++ b/pkgs/desktops/gnome/core/rygel/default.nix @@ -28,14 +28,14 @@ stdenv.mkDerivation rec { pname = "rygel"; - version = "0.42.0"; + version = "0.42.1"; # TODO: split out lib outputs = [ "out" "dev" ]; src = fetchurl { url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz"; - sha256 = "AG2nhnffKMruKHxEwp/NntyxshYkI7x/LdLchWuOK7s="; + sha256 = "BfMrbray/j8dg8Vp3QKnRnfN5nyTpb3O6JXiPr+omD0="; }; patches = [ From ce74158b70fc4d529ea1542d962a6cb8995880d9 Mon Sep 17 00:00:00 2001 From: Bobby Rong Date: Thu, 16 Feb 2023 03:37:35 +0000 Subject: [PATCH 17/37] =?UTF-8?q?gnome.gnome-control-center:=2043.2=20?= =?UTF-8?q?=E2=86=92=2043.4.1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit https://gitlab.gnome.org/GNOME/gnome-control-center/-/compare/43.2...43.4.1 --- pkgs/desktops/gnome/core/gnome-control-center/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/desktops/gnome/core/gnome-control-center/default.nix b/pkgs/desktops/gnome/core/gnome-control-center/default.nix index c018b4ea4a34..0b4d71adc5fe 100644 --- a/pkgs/desktops/gnome/core/gnome-control-center/default.nix +++ b/pkgs/desktops/gnome/core/gnome-control-center/default.nix @@ -64,11 +64,11 @@ stdenv.mkDerivation rec { pname = "gnome-control-center"; - version = "43.2"; + version = "43.4.1"; src = fetchurl { url = "mirror://gnome/sources/${pname}/${lib.versions.major version}/${pname}-${version}.tar.xz"; - sha256 = "sha256-1/JWq6gKkscnsyn9AchgLaS3jw/drsk/zZEJaWRwBWM="; + sha256 = "sha256-AA+XBRroJHJJOSsB+/uiCv7lZiZxlscNVEChisBY2Z4="; }; patches = [ From fe89d894ed2ab94e9d1d907bc9c0dd423aa92363 Mon Sep 17 00:00:00 2001 From: Gaetan Lepage Date: Thu, 16 Feb 2023 07:53:31 +0100 Subject: [PATCH 18/37] invidious: unstable-2023-02-02 -> unstable-2023-02-13 --- pkgs/servers/invidious/versions.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/servers/invidious/versions.json b/pkgs/servers/invidious/versions.json index 82438bf23f9f..81f43b46aa0e 100644 --- a/pkgs/servers/invidious/versions.json +++ b/pkgs/servers/invidious/versions.json @@ -4,9 +4,9 @@ "sha256": "sha256-EU6T9yQCdOLx98Io8o01rEsgxDFF/Xoy42LgPopD2/A=" }, "invidious": { - "rev": "d6dd341594cc837001ed57cbea3103d22c9988c1", - "sha256": "sha256-BHCbIX7Qi2adixIY+hcU8t5kBXBGAv8DTviJ7BPHKCg=", - "version": "unstable-2023-02-02" + "rev": "7993784701686c057b85c57704537135e6326de9", + "sha256": "sha256-LKoUm38gUXucOdXmiJGaKt7ckeb7JBd5I/AxDRDnq30=", + "version": "unstable-2023-02-13" }, "lsquic": { "sha256": "sha256-hG8cUvhbCNeMOsKkaJlgGpzUrIx47E/WhmPIdI5F3qM=", From 08fc91571f2728807a36247121ef70b55211b2df Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Thu, 16 Feb 2023 00:48:40 +0100 Subject: [PATCH 19/37] python310Packages.pandas-stubs: 1.5.0.221003 -> 1.5.3.230214 Diff: https://github.com/pandas-dev/pandas-stubs/compare/refs/tags/v1.5.0.221003...v1.5.3.230214 --- .../python-modules/pandas-stubs/default.nix | 105 +++++++++--------- 1 file changed, 55 insertions(+), 50 deletions(-) diff --git a/pkgs/development/python-modules/pandas-stubs/default.nix b/pkgs/development/python-modules/pandas-stubs/default.nix index b45689afb1df..9e80c0a0501a 100644 --- a/pkgs/development/python-modules/pandas-stubs/default.nix +++ b/pkgs/development/python-modules/pandas-stubs/default.nix @@ -4,25 +4,27 @@ , fetchFromGitHub , jinja2 , matplotlib +, odfpy , openpyxl , pandas , poetry-core -, scipy -, sqlalchemy -, tabulate , pyarrow , pyreadstat -, tables , pytestCheckHook , pythonOlder +, scipy +, sqlalchemy +, tables +, tabulate , types-pytz , typing-extensions , xarray +, XlsxWriter }: buildPythonPackage rec { pname = "pandas-stubs"; - version = "1.5.0.221003"; + version = "1.5.3.230214"; format = "pyproject"; disabled = pythonOlder "3.8"; @@ -30,8 +32,8 @@ buildPythonPackage rec { src = fetchFromGitHub { owner = "pandas-dev"; repo = pname; - rev = "v${version}"; - sha256 = "sha256-RV0pOTPtlwBmYs3nu8+lNwVpl/VC/VzcXKOQMg9C3qk="; + rev = "refs/tags/v${version}"; + hash = "sha256-hLQXGnWtjYNzzyHO+p7CCFEHc2lrSwh35Om94K5Ozhk="; }; nativeBuildInputs = [ @@ -46,62 +48,65 @@ buildPythonPackage rec { nativeCheckInputs = [ jinja2 matplotlib + odfpy openpyxl - scipy - sqlalchemy - tabulate pyarrow - tables pyreadstat pytestCheckHook + scipy + sqlalchemy + tables + tabulate typing-extensions xarray + XlsxWriter ]; disabledTests = [ # AttributeErrors, missing dependencies, error and warning checks - "test_data_error" - "test_specification_error" - "test_setting_with_copy_error" - "test_setting_with_copy_warning" - "test_numexpr_clobbering_error" - "test_undefined_variable_error" - "test_indexing_error" - "test_pyperclip_exception" - "test_css_warning" - "test_possible_data_loss_error" - "test_closed_file_error" - "test_incompatibility_warning" - "test_attribute_conflict_warning" - "test_database_error" - "test_possible_precision_loss" - "test_value_label_type_mismatch" - "test_invalid_column_name" - "test_categorical_conversion_warning" - "test_join" - "test_isetframe" - "test_reset_index_150_changes" - "test_compare_150_changes" - "test_quantile_150_changes" - "test_resample_150_changes" - "test_index_astype" - "test_orc" - "test_orc_path" - "test_orc_buffer" - "test_orc_columns" - "test_orc_bytes" - "test_clipboard" - "test_clipboard_iterator" - "test_arrow_dtype" - "test_aggregate_series_combinations" "test_aggregate_frame_combinations" - "test_types_rank" - "test_reset_index" - "test_types_assert_series_equal" - "test_show_version" + "test_aggregate_series_combinations" + "test_arrow_dtype" + "test_attribute_conflict_warning" + "test_categorical_conversion_warning" + "test_clipboard_iterator" + "test_clipboard" + "test_closed_file_error" + "test_compare_150_changes" + "test_crosstab_args" + "test_css_warning" + "test_data_error" + "test_database_error" "test_dummies" "test_from_dummies_args" + "test_incompatibility_warning" + "test_index_astype" + "test_indexing_error" + "test_invalid_column_name" + "test_isetframe" + "test_join" + "test_numexpr_clobbering_error" + "test_orc_buffer" + "test_orc_bytes" + "test_orc_columns" + "test_orc_path" + "test_orc" + "test_possible_data_loss_error" + "test_possible_precision_loss" + "test_pyperclip_exception" + "test_quantile_150_changes" + "test_resample_150_changes" + "test_reset_index_150_changes" + "test_reset_index" "test_rolling_step_method" + "test_setting_with_copy_error" + "test_setting_with_copy_warning" + "test_show_version" + "test_specification_error" + "test_types_assert_series_equal" + "test_types_rank" + "test_undefined_variable_error" + "test_value_label_type_mismatch" ] ++ lib.optionals stdenv.isDarwin [ "test_plotting" # Fatal Python error: Illegal instruction ]; @@ -112,7 +117,7 @@ buildPythonPackage rec { meta = with lib; { description = "Type annotations for Pandas"; - homepage = "https://github.com/VirtusLab/pandas-stubs"; + homepage = "https://github.com/pandas-dev/pandas-stubs"; license = licenses.mit; maintainers = with maintainers; [ malo ]; }; From fa786e1ea71dce25a5310dedc124d7f788dee8ec Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Thu, 16 Feb 2023 12:03:20 +0100 Subject: [PATCH 20/37] python311Packages.aioambient: drop asynctest --- .../development/python-modules/aioambient/default.nix | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/pkgs/development/python-modules/aioambient/default.nix b/pkgs/development/python-modules/aioambient/default.nix index 4d5c652db9be..b7fbf9af5dd2 100644 --- a/pkgs/development/python-modules/aioambient/default.nix +++ b/pkgs/development/python-modules/aioambient/default.nix @@ -1,7 +1,6 @@ { lib , aiohttp , aresponses -, asynctest , buildPythonPackage , fetchFromGitHub , poetry-core @@ -19,19 +18,19 @@ buildPythonPackage rec { version = "2022.10.0"; format = "pyproject"; - disabled = pythonOlder "3.7"; + disabled = pythonOlder "3.9"; src = fetchFromGitHub { owner = "bachya"; repo = pname; - rev = version; - sha256 = "sha256-Oppi4J0TuLbqwVn1Hpa4xcU9c/I+YDP3E0VXwiP8a/w="; + rev = "refs/tags/${version}"; + hash = "sha256-Oppi4J0TuLbqwVn1Hpa4xcU9c/I+YDP3E0VXwiP8a/w="; }; postPatch = '' # https://github.com/bachya/aioambient/pull/97 substituteInPlace pyproject.toml \ - --replace 'websockets = ">=8.1,<10.0"' 'websockets = ">=8.1,<11.0"' + --replace 'websockets = ">=9.1,<11.0"' 'websockets = "*"' ''; nativeBuildInputs = [ @@ -47,7 +46,6 @@ buildPythonPackage rec { nativeCheckInputs = [ aresponses - asynctest pytest-aiohttp pytest-asyncio pytestCheckHook @@ -65,6 +63,7 @@ buildPythonPackage rec { meta = with lib; { description = "Python library for the Ambient Weather API"; homepage = "https://github.com/bachya/aioambient"; + changelog = "https://github.com/bachya/aioambient/releases/tag/${version}"; license = with licenses; [ mit ]; maintainers = with maintainers; [ fab ]; }; From e48314c8175e29cfddc5bd41227d5b6fb359af0d Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Thu, 16 Feb 2023 12:08:38 +0100 Subject: [PATCH 21/37] python311Packages.aioguardian: drop asynctest --- .../python-modules/aioguardian/default.nix | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) diff --git a/pkgs/development/python-modules/aioguardian/default.nix b/pkgs/development/python-modules/aioguardian/default.nix index fcbe12a11db7..83f623162962 100644 --- a/pkgs/development/python-modules/aioguardian/default.nix +++ b/pkgs/development/python-modules/aioguardian/default.nix @@ -2,7 +2,6 @@ , aiohttp , async-timeout , asyncio-dgram -, asynctest , buildPythonPackage , docutils , fetchFromGitHub @@ -10,22 +9,24 @@ , pytest-aiohttp , pytest-asyncio , pytestCheckHook +, pythonOlder , voluptuous }: buildPythonPackage rec { pname = "aioguardian"; version = "2022.10.0"; + format = "pyproject"; + + disabled = pythonOlder "3.9"; src = fetchFromGitHub { owner = "bachya"; repo = pname; rev = "refs/tags/${version}"; - sha256 = "sha256-plgO+pyKmG0mYnFZxDcrENcuEg5AG2Og2xWipzuzyHo="; + hash = "sha256-plgO+pyKmG0mYnFZxDcrENcuEg5AG2Og2xWipzuzyHo="; }; - format = "pyproject"; - nativeBuildInputs = [ poetry-core ]; @@ -40,17 +41,11 @@ buildPythonPackage rec { nativeCheckInputs = [ asyncio-dgram - asynctest pytest-aiohttp pytest-asyncio pytestCheckHook ]; - postPatch = '' - substituteInPlace pyproject.toml \ - --replace 'docutils = "<0.18"' 'docutils = "*"' - ''; - disabledTestPaths = [ "examples/" ]; @@ -62,10 +57,11 @@ buildPythonPackage rec { meta = with lib; { description = " Python library to interact with Elexa Guardian devices"; longDescription = '' - aioguardian is a Pytho3, asyncio-focused library for interacting with the + aioguardian is an asyncio-focused library for interacting with the Guardian line of water valves and sensors from Elexa. ''; homepage = "https://github.com/bachya/aioguardian"; + changelog = "https://github.com/bachya/aioguardian/releases/tag/${version}"; license = with licenses; [ mit ]; maintainers = with maintainers; [ fab ]; }; From 9d8f05ee8bfce08526bffb14f2a0e49a17a07403 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Thu, 16 Feb 2023 13:42:41 +0100 Subject: [PATCH 22/37] python310Packages.fakeredis: 2.8.0 -> 2.9.0 Diff: https://github.com/dsoftwareinc/fakeredis-py/compare/refs/tags/v2.8.0...v2.9.0 Changelog: https://github.com/cunla/fakeredis-py/releases/tag/v2.9.0 --- pkgs/development/python-modules/fakeredis/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/fakeredis/default.nix b/pkgs/development/python-modules/fakeredis/default.nix index 147fef19dcd8..abe18fb3e3f1 100644 --- a/pkgs/development/python-modules/fakeredis/default.nix +++ b/pkgs/development/python-modules/fakeredis/default.nix @@ -16,7 +16,7 @@ buildPythonPackage rec { pname = "fakeredis"; - version = "2.8.0"; + version = "2.9.0"; format = "pyproject"; disabled = pythonOlder "3.7"; @@ -25,7 +25,7 @@ buildPythonPackage rec { owner = "dsoftwareinc"; repo = "fakeredis-py"; rev = "refs/tags/v${version}"; - hash = "sha256-QOARAT1XSoW/PJli6BzNOZZJjiSubz8zqndEHZCCqag="; + hash = "sha256-7sX+XDhyMtijwcwKK1Bt7n26v24qinb4HDVQD8zUg2M="; }; nativeBuildInputs = [ From bad58b9eb6aa6b2c6c3309c92f84f3b02cd2fdde Mon Sep 17 00:00:00 2001 From: Sebastien Iooss Date: Thu, 16 Feb 2023 17:39:26 +0100 Subject: [PATCH 23/37] python3Packages.datasets: 2.6.1 -> 2.9.0 --- pkgs/development/python-modules/datasets/default.nix | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/pkgs/development/python-modules/datasets/default.nix b/pkgs/development/python-modules/datasets/default.nix index 5115484424dd..5e1f9e45d6e7 100644 --- a/pkgs/development/python-modules/datasets/default.nix +++ b/pkgs/development/python-modules/datasets/default.nix @@ -21,7 +21,7 @@ buildPythonPackage rec { pname = "datasets"; - version = "2.6.1"; + version = "2.9.0"; format = "setuptools"; disabled = pythonOlder "3.7"; @@ -30,17 +30,9 @@ buildPythonPackage rec { owner = "huggingface"; repo = pname; rev = "refs/tags/${version}"; - hash = "sha256-5j8HT/DzHH8xssv97g/9kpSgtpaY6daWOGwjasD1psg="; + hash = "sha256-A6rrChzHHd7vS1KWlF/EZEjp1CEE0mNn4AlMdSYLD/I="; }; - patches = [ - (fetchpatch { - # Backport support for dill<3.7 - url = "https://github.com/huggingface/datasets/pull/5166.patch"; - hash = "sha256-QigpXKHi2B60M/iIWSqvBU9hW5vBu6IHGML22aCMevo="; - }) - ]; - postPatch = '' substituteInPlace setup.py \ --replace "responses<0.19" "responses" From 121fbb3cf7d339db9c998dadfa5b485775f2c94b Mon Sep 17 00:00:00 2001 From: milahu Date: Thu, 16 Feb 2023 19:21:12 +0100 Subject: [PATCH 24/37] docs: Building a stdenv package in nix-shell (#216650) * docs: Building a stdenv package in nix-shell --- doc/stdenv/stdenv.chapter.md | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/doc/stdenv/stdenv.chapter.md b/doc/stdenv/stdenv.chapter.md index dcf173f865f2..1488a09982ad 100644 --- a/doc/stdenv/stdenv.chapter.md +++ b/doc/stdenv/stdenv.chapter.md @@ -95,6 +95,27 @@ installPhase() { genericBuild ``` +### Building a `stdenv` package in `nix-shell` {#sec-building-stdenv-package-in-nix-shell} + +To build a `stdenv` package in a [`nix-shell`](https://nixos.org/manual/nix/unstable/command-ref/nix-shell.html), use + +```bash +nix-shell '' -A some_package +eval ${unpackPhase:-unpackPhase} +cd $sourceRoot +eval ${patchPhase:-patchPhase} +eval ${configurePhase:-configurePhase} +eval ${buildPhase:-buildPhase} +``` + +To modify a [phase](#sec-stdenv-phases), first print it with + +```bash +type buildPhase +``` + +then change it in a text editor, and paste it back to the terminal. + ## Tools provided by `stdenv` {#sec-tools-of-stdenv} The standard environment provides the following packages: From 4b974b5420e4eb58e49307c712cfad4833200817 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Thu, 16 Feb 2023 18:30:38 +0000 Subject: [PATCH 25/37] mpc-qt: 22.02 -> 23.02 --- pkgs/applications/video/mpc-qt/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/applications/video/mpc-qt/default.nix b/pkgs/applications/video/mpc-qt/default.nix index 9f91cc0c3c08..372bc52044e7 100644 --- a/pkgs/applications/video/mpc-qt/default.nix +++ b/pkgs/applications/video/mpc-qt/default.nix @@ -2,13 +2,13 @@ mkDerivation rec { pname = "mpc-qt"; - version = "22.02"; + version = "23.02"; src = fetchFromGitHub { owner = "mpc-qt"; repo = "mpc-qt"; rev = "v${version}"; - sha256 = "sha256-DRbNDrWnaTT4A0dRFAv9MX/MDwV/rXIw+R8fQJmVN+g="; + sha256 = "sha256-b8efsdWWpwoaiX+oQhHK15KxD6JpvPhESTxCR2kS7Mk="; }; nativeBuildInputs = [ pkg-config qmake qttools ]; From cb1546dedb16b402f994e5e167753424824296c5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Tue, 14 Feb 2023 17:34:46 +0100 Subject: [PATCH 26/37] python310Packages.fasttext-predict: init at 0.9.2.1 --- .../fasttext-predict/default.nix | 35 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 ++ 2 files changed, 37 insertions(+) create mode 100644 pkgs/development/python-modules/fasttext-predict/default.nix diff --git a/pkgs/development/python-modules/fasttext-predict/default.nix b/pkgs/development/python-modules/fasttext-predict/default.nix new file mode 100644 index 000000000000..9e46a4b8ceeb --- /dev/null +++ b/pkgs/development/python-modules/fasttext-predict/default.nix @@ -0,0 +1,35 @@ +{ lib +, stdenv +, buildPythonPackage +, fetchPypi +, pybind11 +}: + +buildPythonPackage rec { + pname = "fasttext-predict"; + version = "0.9.2.1"; + format = "setuptools"; + + src = fetchPypi { + inherit pname version; + sha256 = "sha256-iSCt54tqBmNfrcntDFRXb550607Zr1mMCO2PC1ZbVQw="; + }; + + nativeBuildInputs = [ + pybind11 + ]; + + # tests are removed from fork + doCheck = false; + + pythonImportsCheck = [ "fasttext" ]; + + meta = with lib; { + description = "fasttext with wheels and no external dependency, but only the predict method (<1MB)"; + homepage = "https://github.com/searxng/fasttext-predict/"; + license = licenses.mit; + maintainers = with maintainers; [ SuperSandro2000 ]; + # ImportError: dynamic module does not define module export function (PyInit_fasttext_pybind) + broken = stdenv.isDarwin; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index cf7d7643e03f..16fa75e83aa0 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -3291,6 +3291,8 @@ self: super: with self; { fasttext = callPackage ../development/python-modules/fasttext { }; + fasttext-predict = callPackage ../development/python-modules/fasttext-predict { }; + favicon = callPackage ../development/python-modules/favicon { }; fb-re2 = callPackage ../development/python-modules/fb-re2 { }; From 4ce10e413f7d465ef64be53ac7144475f1e5fc06 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Tue, 14 Feb 2023 17:35:01 +0100 Subject: [PATCH 27/37] searxng: unstable-2022-09-01 -> unstable-2023-03-13 This was motivated by an incompatibility caused by a recent babel or flask-babel update. --- pkgs/servers/web-apps/searxng/default.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkgs/servers/web-apps/searxng/default.nix b/pkgs/servers/web-apps/searxng/default.nix index 2b1a6f69b512..d3df5e1e6801 100644 --- a/pkgs/servers/web-apps/searxng/default.nix +++ b/pkgs/servers/web-apps/searxng/default.nix @@ -5,13 +5,13 @@ python3.pkgs.buildPythonApplication rec { pname = "searxng"; - version = "unstable-2022-09-01"; + version = "unstable-2023-03-13"; src = fetchFromGitHub { owner = pname; repo = pname; - rev = "174e5242569812618af4ebd9a646ba2a6ded5459"; - sha256 = "sha256-Q1+4HkgOoTRtW5XYWpC5dpukkrjG5fP0585soo/srmQ="; + rev = "295c87a926c3deb1e438234550a9d8fbbaad17fa"; + sha256 = "sha256-ItPFUyyuctx/yyMVUn5Ez9f+taNiV6FR0q9wz1jwk8M="; }; postPatch = '' @@ -26,11 +26,11 @@ python3.pkgs.buildPythonApplication rec { babel certifi python-dateutil + fasttext-predict flask flask-babel brotli jinja2 - langdetect lxml pygments pyyaml From 820c86da446b74850c53e123346892a75b3bc5a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Wed, 15 Feb 2023 16:23:18 +0100 Subject: [PATCH 28/37] searxng: replace maintainer Kranzes with me as offered in the PR --- pkgs/servers/web-apps/searxng/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/servers/web-apps/searxng/default.nix b/pkgs/servers/web-apps/searxng/default.nix index d3df5e1e6801..9ea17db9ee13 100644 --- a/pkgs/servers/web-apps/searxng/default.nix +++ b/pkgs/servers/web-apps/searxng/default.nix @@ -56,6 +56,6 @@ python3.pkgs.buildPythonApplication rec { homepage = "https://github.com/searxng/searxng"; description = "A fork of Searx, a privacy-respecting, hackable metasearch engine"; license = licenses.agpl3Plus; - maintainers = with maintainers; [ kranzes ]; + maintainers = with maintainers; [ SuperSandro2000 ]; }; } From 232006fbe6bbe866e91de8747d47446383a83d43 Mon Sep 17 00:00:00 2001 From: Alexander Bantyev Date: Wed, 15 Feb 2023 10:28:06 +0400 Subject: [PATCH 29/37] gnss-share: init at 0.6 --- pkgs/servers/gnss-share/default.nix | 26 ++++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 28 insertions(+) create mode 100644 pkgs/servers/gnss-share/default.nix diff --git a/pkgs/servers/gnss-share/default.nix b/pkgs/servers/gnss-share/default.nix new file mode 100644 index 000000000000..81efe84d1c4f --- /dev/null +++ b/pkgs/servers/gnss-share/default.nix @@ -0,0 +1,26 @@ +{ buildGoModule, fetchFromGitLab, lib }: +buildGoModule rec { + pname = "gnss-share"; + version = "0.6"; + src = fetchFromGitLab { + owner = "postmarketOS"; + repo = "gnss-share"; + rev = version; + hash = "sha256-vVmQlhzRISMBcYZh/9GQmOGzDgTzu2jSyIiEWdXPqOQ="; + }; + vendorHash = "sha256-hS/xSxZSMHP+qlvpJYV6EvXtWx9ESamJ8lOf926CqOw="; + meta = with lib; { + description = "share GNSS data between multiple clients"; + longDescription = '' + gnss-share is an app that facilitates sharing GNSS location data with multiple + clients, while providing a way to perform device-specific setup beforehand. For + some devices, it can also manage loading and storing A-GPS data. + + This is meant to replace things like gpsd, and gps-share, and work together + with geoclue* or other clients that support fetching NMEA location data over + sockets. + ''; + license = licenses.gpl3; + maintainers = with maintainers; [ balsoft ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index cb6fd2f0c4d6..84007288e933 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -39153,4 +39153,6 @@ with pkgs; oversteer = callPackage ../applications/misc/oversteer { }; volantes-cursors = callPackage ../data/icons/volantes-cursors { }; + + gnss-share = callPackage ../servers/gnss-share { }; } From 5a562697963ba49a752580215122d3212058e633 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Thu, 16 Feb 2023 19:23:22 +0000 Subject: [PATCH 30/37] python310Packages.fake-useragent: 1.1.1 -> 1.1.2 --- pkgs/development/python-modules/fake-useragent/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/fake-useragent/default.nix b/pkgs/development/python-modules/fake-useragent/default.nix index 1869ea45fcf0..a3fc50c350b1 100644 --- a/pkgs/development/python-modules/fake-useragent/default.nix +++ b/pkgs/development/python-modules/fake-useragent/default.nix @@ -10,14 +10,14 @@ buildPythonPackage rec { pname = "fake-useragent"; - version = "1.1.1"; + version = "1.1.2"; format = "pyproject"; src = fetchFromGitHub { owner = "fake-useragent"; repo = "fake-useragent"; rev = "refs/tags/${version}"; - hash = "sha256-MKVJM8bduvA03xzL954huoCge7enG2BJtxZEAvo6HIY="; + hash = "sha256-Rz+oEpgfvSRdly+H1bYxYjNCfo1STkLcogPgZs+b8DY="; }; postPatch = '' From 488184caef263d6e3d17ed51201abd4e2b2787cd Mon Sep 17 00:00:00 2001 From: Michael Weiss Date: Thu, 16 Feb 2023 20:33:41 +0100 Subject: [PATCH 31/37] ungoogled-chromium: 110.0.5481.78 -> 110.0.5481.100 --- .../networking/browsers/chromium/upstream-info.json | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pkgs/applications/networking/browsers/chromium/upstream-info.json b/pkgs/applications/networking/browsers/chromium/upstream-info.json index 25e3cb659086..fe761556a99c 100644 --- a/pkgs/applications/networking/browsers/chromium/upstream-info.json +++ b/pkgs/applications/networking/browsers/chromium/upstream-info.json @@ -45,9 +45,9 @@ } }, "ungoogled-chromium": { - "version": "110.0.5481.78", - "sha256": "1m67xfdgggaan09xsbppna209b8sm882xq587i0hsnnnzb3fdxdj", - "sha256bin64": null, + "version": "110.0.5481.100", + "sha256": "0czn47gbyp91z6jfgssr2izhg096fm4h26q1i2i42b0z1ilhv1vd", + "sha256bin64": "11g71rr7fcp2bybd9z19lb8pb29yqscffkzn4ybjbhbvd74s4pjr", "deps": { "gn": { "version": "2022-12-12", @@ -56,8 +56,8 @@ "sha256": "1b5fwldfmkkbpp5x63n1dxv0nc965hphc8rm8ah7zg44zscm9z30" }, "ungoogled-patches": { - "rev": "110.0.5481.78-1", - "sha256": "1ffb2wf1bdmzlxk4ih8qq439jzqz17f8nchvx7na52y48am1qr3c" + "rev": "110.0.5481.100-1", + "sha256": "02bmlx2wk9jiqm4az7g8r5ycmpgm5pkb7nivpx2jbmrb0g3qcx9q" } } } From 43985b4fc45610ee236aac654c4d79a66ab8f2a2 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Thu, 16 Feb 2023 19:38:28 +0000 Subject: [PATCH 32/37] python310Packages.jupyter_console: 6.5.0 -> 6.5.1 --- pkgs/development/python-modules/jupyter_console/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/jupyter_console/default.nix b/pkgs/development/python-modules/jupyter_console/default.nix index 6159d457b64e..f6065afa2bc6 100644 --- a/pkgs/development/python-modules/jupyter_console/default.nix +++ b/pkgs/development/python-modules/jupyter_console/default.nix @@ -12,12 +12,12 @@ buildPythonPackage rec { pname = "jupyter_console"; - version = "6.5.0"; + version = "6.5.1"; disabled = pythonOlder "3.5"; src = fetchPypi { inherit pname version; - sha256 = "sha256-Z+aPHaFrw/b3jthG3VVD7AZ5Np+FBHNPEL/SBvquOeo="; + sha256 = "sha256-a5G3tuinFQU7U22yCaL0sCQp17KNsnNzpWomsL69Ygs="; }; propagatedBuildInputs = [ From 0419385c7fe35823581ee5b2505afeb2c6c09b6a Mon Sep 17 00:00:00 2001 From: Michael Weiss Date: Thu, 16 Feb 2023 20:39:01 +0100 Subject: [PATCH 33/37] chromium: 110.0.5481.77 -> 110.0.5481.100 https://chromereleases.googleblog.com/2023/02/stable-channel-desktop-update_14.html --- .../browsers/chromium/upstream-info.json | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/pkgs/applications/networking/browsers/chromium/upstream-info.json b/pkgs/applications/networking/browsers/chromium/upstream-info.json index 25e3cb659086..32542718b3b2 100644 --- a/pkgs/applications/networking/browsers/chromium/upstream-info.json +++ b/pkgs/applications/networking/browsers/chromium/upstream-info.json @@ -1,8 +1,8 @@ { "stable": { - "version": "110.0.5481.77", - "sha256": "1kl1k29sr5qw8pg7shvizw4b37fxjlgah56p57kq641iqhnsnj73", - "sha256bin64": "0jjdgfps6siy9hk2r553vvh0jmkn987ad77sv2zqs9gvx0vsrwgp", + "version": "110.0.5481.100", + "sha256": "0czn47gbyp91z6jfgssr2izhg096fm4h26q1i2i42b0z1ilhv1vd", + "sha256bin64": "11g71rr7fcp2bybd9z19lb8pb29yqscffkzn4ybjbhbvd74s4pjr", "deps": { "gn": { "version": "2022-12-12", @@ -12,10 +12,10 @@ } }, "chromedriver": { - "version": "110.0.5481.30", - "sha256_linux": "08j28ahyahlgmy67hcm8b1vd4kilvf2yvc25746a46gdf8zz0nmw", - "sha256_darwin": "0xlq0fi9g15yvd6ysqcfkxpbr37av32h0f3af9vxl8vbywjfsxn4", - "sha256_darwin_aarch64": "03j47ha9janbawbjxy9n84sx70iisk6qr0bvb218cq5j1d5x058b" + "version": "110.0.5481.77", + "sha256_linux": "1bdc4n9nz3m6vv0p4qr9v65zarbnkrbh21ivpvl7y7c25m7fxl20", + "sha256_darwin": "1scv9vvy5ybgbgycyz2wrymjhdqnvz0m6lxkax107437anxixs00", + "sha256_darwin_aarch64": "0gqayzhlif6hvsmpx04mxr1bld6kirv5q1n5dg42rc16gv954dkn" } }, "beta": { From 4183f105245a18d2cc45c756f5329b5248767622 Mon Sep 17 00:00:00 2001 From: Yaya Date: Thu, 16 Feb 2023 20:55:54 +0100 Subject: [PATCH 34/37] gitlab: 15.8.1 -> 15.8.3 (#216372) https://about.gitlab.com/releases/2023/02/14/critical-security-release-gitlab-15-8-2-released/ --- .../applications/version-management/gitlab/data.json | 12 ++++++------ .../version-management/gitlab/gitaly/default.nix | 4 ++-- .../gitlab/gitlab-workhorse/default.nix | 2 +- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/pkgs/applications/version-management/gitlab/data.json b/pkgs/applications/version-management/gitlab/data.json index 06eb8d78f06e..63d22703d284 100644 --- a/pkgs/applications/version-management/gitlab/data.json +++ b/pkgs/applications/version-management/gitlab/data.json @@ -1,14 +1,14 @@ { - "version": "15.8.1", - "repo_hash": "sha256-AdgebB7IY18u/J1F67oNnwVYmmeYJPNCI/yll2eZEiQ=", + "version": "15.8.3", + "repo_hash": "sha256-kODF5qalf8PClbsTgcqm5X2uTXpFA8N9FW+2HCPKxD0=", "yarn_hash": "1famdjvsbhvnkg5sp2vnc3jzaixww41833pb0427s3qpig0fc7az", "owner": "gitlab-org", "repo": "gitlab", - "rev": "v15.8.1-ee", + "rev": "v15.8.3-ee", "passthru": { - "GITALY_SERVER_VERSION": "15.8.1", - "GITLAB_PAGES_VERSION": "15.8.1", + "GITALY_SERVER_VERSION": "15.8.3", + "GITLAB_PAGES_VERSION": "15.8.3", "GITLAB_SHELL_VERSION": "14.15.0", - "GITLAB_WORKHORSE_VERSION": "15.8.1" + "GITLAB_WORKHORSE_VERSION": "15.8.3" } } diff --git a/pkgs/applications/version-management/gitlab/gitaly/default.nix b/pkgs/applications/version-management/gitlab/gitaly/default.nix index 28452edbfe46..aab5bfbd6a6f 100644 --- a/pkgs/applications/version-management/gitlab/gitaly/default.nix +++ b/pkgs/applications/version-management/gitlab/gitaly/default.nix @@ -11,7 +11,7 @@ let gemdir = ./.; }; - version = "15.8.1"; + version = "15.8.3"; package_version = "v${lib.versions.major version}"; gitaly_package = "gitlab.com/gitlab-org/gitaly/${package_version}"; @@ -22,7 +22,7 @@ let owner = "gitlab-org"; repo = "gitaly"; rev = "v${version}"; - sha256 = "sha256-TolduUm8OhpubHXMCyy0vQhj65lauh5eST5UDvdWNVE="; + sha256 = "sha256-jH5cbhoRgFsWJhXhKvdee4n77W2l+GSHGM2NElJTEy8="; }; vendorSha256 = "sha256-8P5X/bqeI1hY45IGsvEWOg3GuetEQF/XtZzUMdX22pA="; diff --git a/pkgs/applications/version-management/gitlab/gitlab-workhorse/default.nix b/pkgs/applications/version-management/gitlab/gitlab-workhorse/default.nix index 7a808ee2ff64..252be4e56313 100644 --- a/pkgs/applications/version-management/gitlab/gitlab-workhorse/default.nix +++ b/pkgs/applications/version-management/gitlab/gitlab-workhorse/default.nix @@ -5,7 +5,7 @@ in buildGoModule rec { pname = "gitlab-workhorse"; - version = "15.8.1"; + version = "15.8.3"; src = fetchFromGitLab { owner = data.owner; From dbe3030d4ed962f61459c5b14b2b222125893286 Mon Sep 17 00:00:00 2001 From: n0emis <22817873+n0emis@users.noreply.github.com> Date: Thu, 16 Feb 2023 20:58:54 +0100 Subject: [PATCH 35/37] youtrack: 2021.4.35970 -> 2022.3.65371 (#216643) Co-authored-by: Ember Keske --- pkgs/servers/jetbrains/youtrack.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/servers/jetbrains/youtrack.nix b/pkgs/servers/jetbrains/youtrack.nix index 19a82bd8b939..31b4a457ec86 100644 --- a/pkgs/servers/jetbrains/youtrack.nix +++ b/pkgs/servers/jetbrains/youtrack.nix @@ -2,11 +2,11 @@ stdenv.mkDerivation rec { pname = "youtrack"; - version = "2021.4.35970"; + version = "2022.3.65371"; jar = fetchurl { url = "https://download.jetbrains.com/charisma/${pname}-${version}.jar"; - sha256 = "sha256-HB515TS0XXEAiT463nVHP/naeoF7nmeB+6EK0NJ+5c0="; + sha256 = "sha256-NQKWmKEq5ljUXd64zY27Nj8TU+uLdA37chbFVdmwjNs="; }; nativeBuildInputs = [ makeWrapper ]; From fc24a5407490fde4f044fe59cfecf435f59c087a Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Thu, 16 Feb 2023 20:31:05 +0000 Subject: [PATCH 36/37] python310Packages.pyhocon: 0.3.59 -> 0.3.60 --- pkgs/development/python-modules/pyhocon/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/development/python-modules/pyhocon/default.nix b/pkgs/development/python-modules/pyhocon/default.nix index d382687e5c27..51c8dae89f0a 100644 --- a/pkgs/development/python-modules/pyhocon/default.nix +++ b/pkgs/development/python-modules/pyhocon/default.nix @@ -10,7 +10,7 @@ buildPythonPackage rec { pname = "pyhocon"; - version = "0.3.59"; + version = "0.3.60"; format = "setuptools"; disabled = pythonOlder "3.7"; @@ -18,8 +18,8 @@ buildPythonPackage rec { src = fetchFromGitHub { owner = "chimpler"; repo = pname; - rev = version; - sha256 = "sha256-0BuDYheURFhtnWIh7Qw4LzZbk5tSqiNejo+08eglIvs="; + rev = "refs/tags/${version}"; + sha256 = "sha256-H460j/DjY1lltapva3l87oyOJVjzUE9Q/oKti3SsUyU="; }; propagatedBuildInputs = [ From 6cf19065ad9e5e8663ef11450d44079c8bbf34bc Mon Sep 17 00:00:00 2001 From: Morgan Helton Date: Wed, 8 Feb 2023 20:19:55 -0600 Subject: [PATCH 37/37] theforceengine: init at 1.09.100 --- pkgs/games/theforceengine/default.nix | 52 +++++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 54 insertions(+) create mode 100644 pkgs/games/theforceengine/default.nix diff --git a/pkgs/games/theforceengine/default.nix b/pkgs/games/theforceengine/default.nix new file mode 100644 index 000000000000..ffc9811e869e --- /dev/null +++ b/pkgs/games/theforceengine/default.nix @@ -0,0 +1,52 @@ +{ lib +, stdenv +, fetchFromGitHub +, SDL2 +, libdevil +, rtaudio +, rtmidi +, glew +, alsa-lib +, cmake +, pkg-config +}: + +stdenv.mkDerivation rec { + pname = "theforceengine"; + version = "1.09.100"; + + src = fetchFromGitHub { + owner = "luciusDXL"; + repo = "TheForceEngine"; + rev = "v${version}"; + sha256 = "sha256-nw9yp/StaSi5thafVT1V5YA2ZCYGWNoHUvQTpK90Foc="; + }; + + nativeBuildInputs = [ + cmake + pkg-config + ]; + + buildInputs = [ + SDL2 + libdevil + rtaudio + rtmidi + glew + alsa-lib + ]; + + prePatch = '' + # use nix store path instead of hardcoded /usr/share for support data + substituteInPlace TheForceEngine/TFE_FileSystem/paths-posix.cpp \ + --replace "/usr/share" "$out/share" + ''; + + meta = with lib; { + description = "Modern \"Jedi Engine\" replacement supporting Dark Forces, mods, and in the future Outlaws."; + homepage = "https://theforceengine.github.io"; + license = licenses.gpl2Only; + maintainers = with maintainers; [ devusb ]; + platforms = [ "x86_64-linux" ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 3b7215fb2cd2..5a918e96f329 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -35656,6 +35656,8 @@ with pkgs; inherit (darwin.apple_sdk.frameworks) Cocoa; }; + theforceengine = callPackage ../games/theforceengine { }; + tbe = libsForQt5.callPackage ../games/the-butterfly-effect { }; tbls = callPackage ../tools/misc/tbls { };