From f86de05ca6a4975cffbd6031af2f9a2a72c4d525 Mon Sep 17 00:00:00 2001 From: Robert Hensing Date: Tue, 8 Feb 2022 12:50:06 +0100 Subject: [PATCH 001/336] nixos/systemd: Custom error when mixing list/non-list defs --- nixos/lib/systemd-unit-options.nix | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/nixos/lib/systemd-unit-options.nix b/nixos/lib/systemd-unit-options.nix index 520f2e982a26..f536c976d90d 100644 --- a/nixos/lib/systemd-unit-options.nix +++ b/nixos/lib/systemd-unit-options.nix @@ -20,10 +20,15 @@ in rec { merge = loc: defs: let defs' = filterOverrides defs; - defs'' = getValues defs'; in - if isList (head defs'') - then concatLists defs'' + if isList (head defs').value + then concatMap (def: + if builtins.typeOf def.value == "list" + then def.value + else + throw "The definitions for systemd unit options should be either all lists, representing repeatable options, or all non-lists, but for the option ${showOption loc}, the definitions are a mix of list and non-list ${lib.options.showDefs defs'}" + ) defs' + else mergeEqualOption loc defs'; }; From 83a83784ed655ecfdd15e020c1968449eb6a1ec4 Mon Sep 17 00:00:00 2001 From: f0x52 Date: Sun, 24 Apr 2022 22:48:48 +0200 Subject: [PATCH 002/336] pebble: 2.3.1 -> 2.4.0 --- pkgs/tools/admin/pebble/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/tools/admin/pebble/default.nix b/pkgs/tools/admin/pebble/default.nix index 0d6d2f57df14..ba2a0b8c1e22 100644 --- a/pkgs/tools/admin/pebble/default.nix +++ b/pkgs/tools/admin/pebble/default.nix @@ -6,7 +6,7 @@ buildGoPackage rec { pname = "pebble"; - version = "2.3.1"; + version = "2.4.0"; goPackagePath = "github.com/letsencrypt/${pname}"; @@ -14,7 +14,7 @@ buildGoPackage rec { owner = "letsencrypt"; repo = pname; rev = "v${version}"; - sha256 = "sha256-S9+iRaTSRt4F6yMKK0OJO6Zto9p0dZ3q/mULaipudVo="; + sha256 = "sha256-0sh67bzq3hlagk73w2kp45viq15g2rcxm760jk9fqshamq784m6m"; }; passthru.tests = { From 88894e721828972fc0a163204ef25315dd726f74 Mon Sep 17 00:00:00 2001 From: f0x52 Date: Sun, 24 Apr 2022 23:57:31 +0200 Subject: [PATCH 003/336] change github hash to locally working version --- pkgs/tools/admin/pebble/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/tools/admin/pebble/default.nix b/pkgs/tools/admin/pebble/default.nix index ba2a0b8c1e22..2da983598f7c 100644 --- a/pkgs/tools/admin/pebble/default.nix +++ b/pkgs/tools/admin/pebble/default.nix @@ -14,7 +14,7 @@ buildGoPackage rec { owner = "letsencrypt"; repo = pname; rev = "v${version}"; - sha256 = "sha256-0sh67bzq3hlagk73w2kp45viq15g2rcxm760jk9fqshamq784m6m"; + sha256 = "0sh67bzq3hlagk73w2kp45viq15g2rcxm760jk9fqshamq784m6m"; }; passthru.tests = { From 61013d7c56d7837dc2799c79cd2f74600884d69b Mon Sep 17 00:00:00 2001 From: Phillip Cloud <417981+cpcloud@users.noreply.github.com> Date: Tue, 3 May 2022 07:26:47 -0400 Subject: [PATCH 004/336] python3Packages.watchdog: fix darwin-x86_64 build --- .../development/python-modules/watchdog/default.nix | 7 ++++--- .../watchdog/watchdog-force-kqueue.patch | 13 +++++++++++++ 2 files changed, 17 insertions(+), 3 deletions(-) create mode 100644 pkgs/development/python-modules/watchdog/watchdog-force-kqueue.patch diff --git a/pkgs/development/python-modules/watchdog/default.nix b/pkgs/development/python-modules/watchdog/default.nix index 9afd0f032fc3..2ff0234a0295 100644 --- a/pkgs/development/python-modules/watchdog/default.nix +++ b/pkgs/development/python-modules/watchdog/default.nix @@ -20,6 +20,10 @@ buildPythonPackage rec { sha256 = "sha256-P9R4FTU76cRO68lMwo/iaysMW9iJ2vxKWny9+SQUNIA="; }; + patches = lib.optionals (stdenv.isDarwin && !stdenv.isAarch64) [ + ./watchdog-force-kqueue.patch + ]; + buildInputs = lib.optionals stdenv.isDarwin [ CoreServices ]; propagatedBuildInputs = [ @@ -58,8 +62,5 @@ buildPythonPackage rec { homepage = "https://github.com/gorakhargosh/watchdog"; license = licenses.asl20; maintainers = with maintainers; [ goibhniu ]; - # error: use of undeclared identifier 'kFSEventStreamEventFlagItemCloned' - # builds fine on aarch64-darwin - broken = stdenv.isDarwin && !stdenv.isAarch64; }; } diff --git a/pkgs/development/python-modules/watchdog/watchdog-force-kqueue.patch b/pkgs/development/python-modules/watchdog/watchdog-force-kqueue.patch new file mode 100644 index 000000000000..6a316d663fdc --- /dev/null +++ b/pkgs/development/python-modules/watchdog/watchdog-force-kqueue.patch @@ -0,0 +1,13 @@ +diff --git a/setup.py b/setup.py +index 072dfc8..cb9aa7a 100644 +--- a/setup.py ++++ b/setup.py +@@ -39,7 +39,7 @@ _apple_devices = ('appletv', 'iphone', 'ipod', 'ipad', 'watch') + is_macos = sys.platform == 'darwin' and not machine().lower().startswith(_apple_devices) + + ext_modules = [] +-if is_macos or os.getenv('FORCE_MACOS_MACHINE', '0') == '1': ++if False: + ext_modules = [ + Extension( + name='_watchdog_fsevents', From 20a7e7eb0aadcd56e8eee38908cd518bd3435255 Mon Sep 17 00:00:00 2001 From: Phillip Cloud <417981+cpcloud@users.noreply.github.com> Date: Tue, 3 May 2022 11:18:15 -0400 Subject: [PATCH 005/336] python3Packages.watchdog: patch tests; rename patch file --- .../python-modules/watchdog/default.nix | 2 +- .../watchdog/force-kqueue.patch | 69 +++++++++++++++++++ .../watchdog/watchdog-force-kqueue.patch | 13 ---- 3 files changed, 70 insertions(+), 14 deletions(-) create mode 100644 pkgs/development/python-modules/watchdog/force-kqueue.patch delete mode 100644 pkgs/development/python-modules/watchdog/watchdog-force-kqueue.patch diff --git a/pkgs/development/python-modules/watchdog/default.nix b/pkgs/development/python-modules/watchdog/default.nix index 2ff0234a0295..666260c2a469 100644 --- a/pkgs/development/python-modules/watchdog/default.nix +++ b/pkgs/development/python-modules/watchdog/default.nix @@ -21,7 +21,7 @@ buildPythonPackage rec { }; patches = lib.optionals (stdenv.isDarwin && !stdenv.isAarch64) [ - ./watchdog-force-kqueue.patch + ./force-kqueue.patch ]; buildInputs = lib.optionals stdenv.isDarwin [ CoreServices ]; diff --git a/pkgs/development/python-modules/watchdog/force-kqueue.patch b/pkgs/development/python-modules/watchdog/force-kqueue.patch new file mode 100644 index 000000000000..59d9ab45978f --- /dev/null +++ b/pkgs/development/python-modules/watchdog/force-kqueue.patch @@ -0,0 +1,69 @@ +diff --git a/setup.py b/setup.py +index 072dfc8..64732bb 100644 +--- a/setup.py ++++ b/setup.py +@@ -39,7 +39,7 @@ _apple_devices = ('appletv', 'iphone', 'ipod', 'ipad', 'watch') + is_macos = sys.platform == 'darwin' and not machine().lower().startswith(_apple_devices) + + ext_modules = [] +-if is_macos or os.getenv('FORCE_MACOS_MACHINE', '0') == '1': ++if False: + ext_modules = [ + Extension( + name='_watchdog_fsevents', +diff --git a/tests/test_emitter.py b/tests/test_emitter.py +index bec052c..ed5c465 100644 +--- a/tests/test_emitter.py ++++ b/tests/test_emitter.py +@@ -42,13 +42,11 @@ if platform.is_linux(): + InotifyEmitter as Emitter, + InotifyFullEmitter, + ) +-elif platform.is_darwin(): +- from watchdog.observers.fsevents import FSEventsEmitter as Emitter + elif platform.is_windows(): + from watchdog.observers.read_directory_changes import ( + WindowsApiEmitter as Emitter + ) +-elif platform.is_bsd(): ++elif platform.is_darwin() or platform.is_bsd(): + from watchdog.observers.kqueue import ( + KqueueEmitter as Emitter + ) +@@ -57,12 +55,6 @@ logging.basicConfig(level=logging.DEBUG) + logger = logging.getLogger(__name__) + + +-if platform.is_darwin(): +- # enable more verbose logs +- fsevents_logger = logging.getLogger("fsevents") +- fsevents_logger.setLevel(logging.DEBUG) +- +- + @pytest.fixture(autouse=True) + def setup_teardown(tmpdir): + global p, emitter, event_queue +@@ -85,9 +77,6 @@ def start_watching(path=None, use_full_emitter=False, recursive=True): + else: + emitter = Emitter(event_queue, ObservedWatch(path, recursive=recursive)) + +- if platform.is_darwin(): +- emitter.suppress_history = True +- + emitter.start() + + +diff --git a/tests/test_fsevents.py b/tests/test_fsevents.py +index 4a4fabf..49886a1 100644 +--- a/tests/test_fsevents.py ++++ b/tests/test_fsevents.py +@@ -3,8 +3,7 @@ + import pytest + from watchdog.utils import platform + +-if not platform.is_darwin(): # noqa +- pytest.skip("macOS only.", allow_module_level=True) ++pytest.skip("doesn't work with Nix yet", allow_module_level=True) + + import logging + import os diff --git a/pkgs/development/python-modules/watchdog/watchdog-force-kqueue.patch b/pkgs/development/python-modules/watchdog/watchdog-force-kqueue.patch deleted file mode 100644 index 6a316d663fdc..000000000000 --- a/pkgs/development/python-modules/watchdog/watchdog-force-kqueue.patch +++ /dev/null @@ -1,13 +0,0 @@ -diff --git a/setup.py b/setup.py -index 072dfc8..cb9aa7a 100644 ---- a/setup.py -+++ b/setup.py -@@ -39,7 +39,7 @@ _apple_devices = ('appletv', 'iphone', 'ipod', 'ipad', 'watch') - is_macos = sys.platform == 'darwin' and not machine().lower().startswith(_apple_devices) - - ext_modules = [] --if is_macos or os.getenv('FORCE_MACOS_MACHINE', '0') == '1': -+if False: - ext_modules = [ - Extension( - name='_watchdog_fsevents', From 614aa6d016edd00e7693778437c931bc4d406cd6 Mon Sep 17 00:00:00 2001 From: Phillip Cloud <417981+cpcloud@users.noreply.github.com> Date: Tue, 3 May 2022 11:50:47 -0400 Subject: [PATCH 006/336] python3Packages.watchdog: treat more tests as bsd --- .../watchdog/force-kqueue.patch | 94 ++++++++++++++++++- 1 file changed, 92 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/watchdog/force-kqueue.patch b/pkgs/development/python-modules/watchdog/force-kqueue.patch index 59d9ab45978f..de222d891214 100644 --- a/pkgs/development/python-modules/watchdog/force-kqueue.patch +++ b/pkgs/development/python-modules/watchdog/force-kqueue.patch @@ -12,7 +12,7 @@ index 072dfc8..64732bb 100644 Extension( name='_watchdog_fsevents', diff --git a/tests/test_emitter.py b/tests/test_emitter.py -index bec052c..ed5c465 100644 +index bec052c..242fbea 100644 --- a/tests/test_emitter.py +++ b/tests/test_emitter.py @@ -42,13 +42,11 @@ if platform.is_linux(): @@ -26,7 +26,7 @@ index bec052c..ed5c465 100644 WindowsApiEmitter as Emitter ) -elif platform.is_bsd(): -+elif platform.is_darwin() or platform.is_bsd(): ++elif platform.is_bsd() or platform.is_darwin(): from watchdog.observers.kqueue import ( KqueueEmitter as Emitter ) @@ -53,6 +53,96 @@ index bec052c..ed5c465 100644 emitter.start() +@@ -345,7 +334,7 @@ def test_separate_consecutive_moves(): + if platform.is_windows(): + expected_events = [a_deleted, d_created] + +- if platform.is_bsd(): ++ if platform.is_bsd() or platform.is_darwin(): + # Due to the way kqueue works, we can't really order + # 'Created' and 'Deleted' events in time, so creation queues first + expected_events = [d_created, a_deleted, dir_modif, dir_modif] +@@ -355,7 +344,7 @@ def test_separate_consecutive_moves(): + + + @pytest.mark.flaky(max_runs=5, min_passes=1, rerun_filter=rerun_filter) +-@pytest.mark.skipif(platform.is_bsd(), reason="BSD create another set of events for this test") ++@pytest.mark.skipif(platform.is_bsd() or platform.is_darwin(), reason="BSD create another set of events for this test") + def test_delete_self(): + mkdir(p('dir1')) + start_watching(p('dir1')) +@@ -365,7 +354,7 @@ def test_delete_self(): + assert not emitter.is_alive() + + +-@pytest.mark.skipif(platform.is_windows() or platform.is_bsd(), ++@pytest.mark.skipif(platform.is_windows() or platform.is_bsd() or platform.is_darwin(), + reason="Windows|BSD create another set of events for this test") + def test_fast_subdirectory_creation_deletion(): + root_dir = p('dir1') +@@ -429,7 +418,7 @@ def test_recursive_on(): + assert event.src_path == p('dir1', 'dir2', 'dir3') + assert isinstance(event, DirModifiedEvent) + +- if not platform.is_bsd(): ++ if not (platform.is_bsd() or platform.is_darwin()): + event = event_queue.get(timeout=5)[0] + assert event.src_path == p('dir1', 'dir2', 'dir3', 'a') + assert isinstance(event, FileModifiedEvent) +@@ -452,26 +441,6 @@ def test_recursive_off(): + if platform.is_linux(): + expect_event(FileClosedEvent(p('b'))) + +- # currently limiting these additional events to macOS only, see https://github.com/gorakhargosh/watchdog/pull/779 +- if platform.is_darwin(): +- mkdir(p('dir1', 'dir2')) +- with pytest.raises(Empty): +- event_queue.get(timeout=5) +- mkfile(p('dir1', 'dir2', 'somefile')) +- with pytest.raises(Empty): +- event_queue.get(timeout=5) +- +- mkdir(p('dir3')) +- expect_event(DirModifiedEvent(p())) # the contents of the parent directory changed +- +- mv(p('dir1', 'dir2', 'somefile'), p('somefile')) +- expect_event(FileMovedEvent(p('dir1', 'dir2', 'somefile'), p('somefile'))) +- expect_event(DirModifiedEvent(p())) +- +- mv(p('dir1', 'dir2'), p('dir2')) +- expect_event(DirMovedEvent(p('dir1', 'dir2'), p('dir2'))) +- expect_event(DirModifiedEvent(p())) +- + + @pytest.mark.skipif(platform.is_windows(), + reason="Windows create another set of events for this test") +@@ -493,7 +462,7 @@ def test_renaming_top_level_directory(): + + expect_event(DirMovedEvent(p('a', 'b'), p('a2', 'b'))) + +- if platform.is_bsd(): ++ if platform.is_bsd() or platform.is_darwin(): + expect_event(DirModifiedEvent(p())) + + open(p('a2', 'b', 'c'), 'a').close() +@@ -584,7 +553,7 @@ def test_move_nested_subdirectories(): + expect_event(DirMovedEvent(p('dir1', 'dir2', 'dir3'), p('dir2', 'dir3'))) + expect_event(FileMovedEvent(p('dir1', 'dir2', 'dir3', 'a'), p('dir2', 'dir3', 'a'))) + +- if platform.is_bsd(): ++ if platform.is_bsd() or platform.is_darwin(): + event = event_queue.get(timeout=5)[0] + assert p(event.src_path) == p() + assert isinstance(event, DirModifiedEvent) +@@ -643,7 +612,7 @@ def test_move_nested_subdirectories_on_windows(): + + + @pytest.mark.flaky(max_runs=5, min_passes=1, rerun_filter=rerun_filter) +-@pytest.mark.skipif(platform.is_bsd(), reason="BSD create another set of events for this test") ++@pytest.mark.skipif(platform.is_bsd() or platform.is_darwin(), reason="BSD create another set of events for this test") + def test_file_lifecyle(): + start_watching() + diff --git a/tests/test_fsevents.py b/tests/test_fsevents.py index 4a4fabf..49886a1 100644 --- a/tests/test_fsevents.py From 2e37657b63743bbbf90622273d8b6a90a665d61f Mon Sep 17 00:00:00 2001 From: Phillip Cloud <417981+cpcloud@users.noreply.github.com> Date: Wed, 4 May 2022 05:41:11 -0400 Subject: [PATCH 007/336] python3Packages.watchdog: don't run test_delete on darwin --- pkgs/development/python-modules/watchdog/default.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkgs/development/python-modules/watchdog/default.nix b/pkgs/development/python-modules/watchdog/default.nix index 666260c2a469..0b4825af9159 100644 --- a/pkgs/development/python-modules/watchdog/default.nix +++ b/pkgs/development/python-modules/watchdog/default.nix @@ -46,6 +46,8 @@ buildPythonPackage rec { disabledTests = [ # probably failing because of an encoding related issue "test_create_wrong_encoding" + ] ++ lib.optionals (stdenv.isDarwin && !stdenv.isAarch64) [ + "test_delete" ]; disabledTestPaths = [ From 9925e7b28297ff70985ae091a5a5e5e416097fef Mon Sep 17 00:00:00 2001 From: Sergei Trofimovich Date: Thu, 5 May 2022 22:52:35 +0100 Subject: [PATCH 008/336] gnu-efi: 3.0.11 -> 3.0.14 Dropped upstreamed patch for armv6 support. Added updater script. --- .../development/libraries/gnu-efi/default.nix | 21 +++++++++---------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/pkgs/development/libraries/gnu-efi/default.nix b/pkgs/development/libraries/gnu-efi/default.nix index ef8ef7648ebd..f331a8f753b9 100644 --- a/pkgs/development/libraries/gnu-efi/default.nix +++ b/pkgs/development/libraries/gnu-efi/default.nix @@ -1,24 +1,17 @@ -{ lib, stdenv, buildPackages, fetchurl, fetchpatch, pciutils }: +{ lib, stdenv, buildPackages, fetchurl, pciutils +, gitUpdater }: with lib; stdenv.mkDerivation rec { pname = "gnu-efi"; - version = "3.0.11"; + version = "3.0.14"; src = fetchurl { url = "mirror://sourceforge/gnu-efi/${pname}-${version}.tar.bz2"; - sha256 = "1ffnc4xbzfggs37ymrgfx76j56kk2644c081ivhr2bjkla9ag3gj"; + sha256 = "tztkOg1Wl9HzltdDFEjoht2AVmh4lXjj4aKCd8lShDU="; }; - patches = [ - # Fix build on armv6l - (fetchpatch { - url = "https://sourceforge.net/p/gnu-efi/patches/_discuss/thread/25bb273a18/9c4d/attachment/0001-Fix-ARCH-on-armv6-and-other-32-bit-ARM-platforms.patch"; - sha256 = "0pj03h20g2bbz6fr753bj1scry6919h57l1h86z3b6q7hqfj0b4r"; - }) - ]; - buildInputs = [ pciutils ]; hardeningDisable = [ "stackprotector" ]; @@ -29,6 +22,12 @@ stdenv.mkDerivation rec { "CROSS_COMPILE=${stdenv.cc.targetPrefix}" ]; + passthru.updateScript = gitUpdater { + inherit pname version; + # No nicer place to find latest release. + url = "https://git.code.sf.net/p/gnu-efi/code"; + }; + meta = with lib; { description = "GNU EFI development toolchain"; homepage = "https://sourceforge.net/projects/gnu-efi/"; From df2ded87a38c8abe51189de996e1f3616f795e6f Mon Sep 17 00:00:00 2001 From: Dmitry Kalinkin Date: Sun, 15 May 2022 10:53:50 -0400 Subject: [PATCH 009/336] darwin.bsdmake: fix for systems with non-standard RLIMIT_NOFILE --- .../darwin/apple-source-releases/bsdmake/default.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkgs/os-specific/darwin/apple-source-releases/bsdmake/default.nix b/pkgs/os-specific/darwin/apple-source-releases/bsdmake/default.nix index 6f666019c3b3..214aa5dfad9e 100644 --- a/pkgs/os-specific/darwin/apple-source-releases/bsdmake/default.nix +++ b/pkgs/os-specific/darwin/apple-source-releases/bsdmake/default.nix @@ -20,6 +20,12 @@ appleDerivation { --replace '-o ''${''${group}OWN_''${.ALLSRC:T}}' "" \ --replace '-g ''${''${group}GRP_''${.ALLSRC:T}}' "" \ --replace '-o ''${''${group}OWN} -g ''${''${group}GRP}' "" + + # Workaround for https://github.com/NixOS/nixpkgs/issues/103172 + # Prevents bsdmake from failing on systems that already had default limits + # increased. + substituteInPlace main.c \ + --replace 'err(2, "setrlimit");' 'warn("setrlimit");' ''; buildPhase = '' From 7b185e04a9644caf263d1bd4a166062b0258f821 Mon Sep 17 00:00:00 2001 From: FliegendeWurst <2012gdwu+github@posteo.de> Date: Thu, 26 May 2022 12:14:43 +0200 Subject: [PATCH 010/336] cc-wrapper: Fortran: disable format hardening Otherwise, these warnings are emitted: command-line option '-Wformat=1' is valid for C/C++/ObjC/ObjC++ but not for Fortran command-line option '-Wformat-security' is valid for C/C++/ObjC/ObjC++ but not for Fortran '-Werror=' argument '-Werror=format-security' is not valid for Fortran Fixes part of #27218 --- pkgs/build-support/cc-wrapper/default.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkgs/build-support/cc-wrapper/default.nix b/pkgs/build-support/cc-wrapper/default.nix index 35d714f9b41e..ceba14ef92a6 100644 --- a/pkgs/build-support/cc-wrapper/default.nix +++ b/pkgs/build-support/cc-wrapper/default.nix @@ -492,6 +492,8 @@ stdenv.mkDerivation { hardening_unsupported_flags+=" format stackprotector strictoverflow" '' + optionalString cc.langD or false '' hardening_unsupported_flags+=" format" + '' + optionalString cc.langFortran or false '' + hardening_unsupported_flags+=" format" '' + optionalString targetPlatform.isWasm '' hardening_unsupported_flags+=" stackprotector fortify pie pic" '' From 97c43828fb7e016b4ee8fe434bc4d5e0b8a8b4be Mon Sep 17 00:00:00 2001 From: Adam Joseph Date: Tue, 12 Apr 2022 14:46:57 -0700 Subject: [PATCH 011/336] fixLibtool(): patch ./configure, add `file` to common-path.nix libtool's libtool.m4 script assumes that `file` is available, and can be found at `/usr/bin/file` (this path is hardwired). Furthermore, the script with this assumption is vendored into the ./configure scripts of an enormous number of packages. Without this commit, you will frequently see errors like this during the configurePhase with the sandbox enabled: ./configure: line 9595: /usr/bin/file: command not found Due mostly to luck, this error does not affect native compiles on nixpkgs' two most popular platforms, x86_64-linux and aarch64-linux. However it will cause incorrect linker flag detection and a failure to generate shared libraries for sandboxed cross-builds to a x86_64-linux host as well as any sandboxed build (cross or native) for the following hosts: x86_64-freebsd, *-hpux, *-irix, mips64*-linux, powerpc*-linux, s390x-linux, s390x-tpf, sparc-linux, and *-solaris. This commit fixes the problem by adding an extra line to fixLibtool() in pkgs/stdenv/generic/setup.sh. This extra line will scan the unpacked source code for executable files named "configure" which contain the following text: 'GNU Libtool is free software; you can redistribute it and/or modify' This text is taken to be an indicator of a vendored libtool.m4. When it is found, the configure script containing it is subjected to `sed -i s_/usr/bin/file_file_` which replaces all occurrences of `/usr/bin/file` with `file`. Additionally, the `file` package is now considered to be part of `stdenv`. It has been added to `common-path.nix` so that the `file` binary will be found in the `$PATH` of every build, except for the bootstrap-tools and the first few stages of stdenv boostrapping. Verified no regressions under: nix-build --arg pkgs 'import ./. {}' ./lib/tests/release.nix This commit allows the following commands to complete, which should enable Hydra to produce bootstrap-files for mips64el: nix-build \ --option sandbox true \ --option sandbox-fallback false \ pkgs/top-level/release-cross.nix \ -A bootstrapTools.mips64el-linux-gnuabi64.build nix-build \ --option sandbox true \ --option sandbox-fallback false \ . \ -A pkgsCross.mips64el-linux-gnuabi64.nix_2_4 --- pkgs/stdenv/common-path.nix | 8 ++++++++ pkgs/stdenv/darwin/default.nix | 3 +++ pkgs/stdenv/generic/setup.sh | 15 +++++++++++++++ pkgs/stdenv/linux/default.nix | 2 +- 4 files changed, 27 insertions(+), 1 deletion(-) diff --git a/pkgs/stdenv/common-path.nix b/pkgs/stdenv/common-path.nix index da468d56a2cd..8c1acfb50dd6 100644 --- a/pkgs/stdenv/common-path.nix +++ b/pkgs/stdenv/common-path.nix @@ -12,4 +12,12 @@ pkgs.bash pkgs.patch pkgs.xz.bin + + # The `file` command is added here because an enormous number of + # packages have a vendored dependency upon `file` in their + # `./configure` script, due to libtool<=2.4.6, or due to + # libtool>=2.4.7 in which the package author decided to set FILECMD + # when running libtoolize. In fact, file-5.4.6 *depends on itself* + # and tries to invoke `file` from its own ./configure script. + pkgs.file ] diff --git a/pkgs/stdenv/darwin/default.nix b/pkgs/stdenv/darwin/default.nix index 32e4fe9749ab..bbc15bad2620 100644 --- a/pkgs/stdenv/darwin/default.nix +++ b/pkgs/stdenv/darwin/default.nix @@ -486,6 +486,7 @@ rec { gmp libiconv brotli.lib + file ] ++ lib.optional haveKRB5 libkrb5) ++ (with pkgs."${finalLlvmPackages}"; [ libcxx @@ -561,6 +562,7 @@ rec { gmp libiconv brotli.lib + file ] ++ lib.optional haveKRB5 libkrb5) ++ (with pkgs."${finalLlvmPackages}"; [ libcxx @@ -737,6 +739,7 @@ rec { brotli.lib cc.expand-response-params libxml2.out + file ] ++ lib.optional haveKRB5 libkrb5 ++ lib.optionals localSystem.isAarch64 [ pkgs.updateAutotoolsGnuConfigScriptsHook diff --git a/pkgs/stdenv/generic/setup.sh b/pkgs/stdenv/generic/setup.sh index 6d30e6c01ffb..40ffd9344e34 100644 --- a/pkgs/stdenv/generic/setup.sh +++ b/pkgs/stdenv/generic/setup.sh @@ -1021,6 +1021,21 @@ configurePhase() { echo "fixing libtool script $i" fixLibtool "$i" done + + # replace `/usr/bin/file` with `file` in any `configure` + # scripts with vendored libtool code. Preserve mtimes to + # prevent some packages (e.g. libidn2) from spontaneously + # autoreconf'ing themselves + CONFIGURE_MTIME_REFERENCE=$(mktemp configure.mtime.reference.XXX) + find . \ + -executable \ + -type f \ + -name configure \ + -execdir grep -l 'GNU Libtool is free software; you can redistribute it and/or modify' {} \; \ + -execdir touch -r {} "$CONFIGURE_MTIME_REFERENCE" \; \ + -execdir sed -i s_/usr/bin/file_file_g {} \; \ + -execdir touch -r "$CONFIGURE_MTIME_REFERENCE" {} \; + rm -f "$CONFIGURE_MTIME_REFERENCE" fi if [[ -z "${dontAddPrefix:-}" && -n "$prefix" ]]; then diff --git a/pkgs/stdenv/linux/default.nix b/pkgs/stdenv/linux/default.nix index 956aeff49462..b00332bae4c9 100644 --- a/pkgs/stdenv/linux/default.nix +++ b/pkgs/stdenv/linux/default.nix @@ -414,7 +414,7 @@ in # Simple executable tools concatMap (p: [ (getBin p) (getLib p) ]) [ gzip bzip2 xz bash binutils.bintools coreutils diffutils findutils - gawk gnumake gnused gnutar gnugrep gnupatch patchelf ed + gawk gnumake gnused gnutar gnugrep gnupatch patchelf ed file ] # Library dependencies ++ map getLib ( From b2165ee1edaff3b5d9cc198dc4845de7cd85235e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Fri, 27 May 2022 23:16:35 +0200 Subject: [PATCH 012/336] python310Packages.gunicorn: adopt, run tests, fix eventlet compability --- .../python-modules/gunicorn/default.nix | 55 ++++++++++++------- 1 file changed, 35 insertions(+), 20 deletions(-) diff --git a/pkgs/development/python-modules/gunicorn/default.nix b/pkgs/development/python-modules/gunicorn/default.nix index ba948a68915a..72852ae1f12c 100644 --- a/pkgs/development/python-modules/gunicorn/default.nix +++ b/pkgs/development/python-modules/gunicorn/default.nix @@ -1,40 +1,55 @@ -{ lib, buildPythonPackage, fetchPypi, isPy27 -, coverage -, mock -, pytest -, pytest-cov +{ lib +, buildPythonPackage +, fetchFromGitHub +, fetchpatch +, pythonOlder +, eventlet +, gevent +, pytestCheckHook , setuptools }: buildPythonPackage rec { pname = "gunicorn"; version = "20.1.0"; - disabled = isPy27; + disabled = pythonOlder "3.5"; - src = fetchPypi { - inherit pname version; - sha256 = "e0a968b5ba15f8a328fdfd7ab1fcb5af4470c28aaf7e55df02a99bc13138e6e8"; + src = fetchFromGitHub { + owner = "benoitc"; + repo = "gunicorn"; + rev = version; + sha256 = "sha256-xdNHm8NQWlAlflxof4cz37EoM74xbWrNaf6jlwwzHv4="; }; - propagatedBuildInputs = [ setuptools ]; + patches = [ + (fetchpatch { + # fix eventlet 0.30.3+ compability + url = "https://github.com/benoitc/gunicorn/commit/6a8ebb4844b2f28596ffe7421eb9f7d08c8dc4d8.patch"; + sha256 = "sha256-+iApgohzPZ/cHTGBNb7XkqLaHOVVPF26BnPUsvISoZw="; + }) + ]; - checkInputs = [ pytest mock pytest-cov coverage ]; - - prePatch = '' - substituteInPlace requirements_test.txt --replace "==" ">=" \ - --replace "coverage>=4.0,<4.4" "coverage" + postPatch = '' + substituteInPlace setup.cfg \ + --replace "--cov=gunicorn --cov-report=xml" "" ''; - # better than no tests - checkPhase = '' - $out/bin/gunicorn --help > /dev/null - ''; + propagatedBuildInputs = [ + setuptools + ]; + + checkInputs = [ + eventlet + gevent + pytestCheckHook + ]; pythonImportsCheck = [ "gunicorn" ]; meta = with lib; { homepage = "https://github.com/benoitc/gunicorn"; - description = "WSGI HTTP Server for UNIX"; + description = "gunicorn 'Green Unicorn' is a WSGI HTTP Server for UNIX, fast clients and sleepy applications"; license = licenses.mit; + maintainers = with maintainers; [ SuperSandro2000 ]; }; } From bf5acbc122031d4e0756c0372f504468de8f1d55 Mon Sep 17 00:00:00 2001 From: sternenseemann Date: Sat, 28 May 2022 00:41:18 +0200 Subject: [PATCH 013/336] openldap: make extraContribModules actually overrideable By using the build environment instead of relying on rec, using overrideAttrs to change the value of extraContribModules will actually have an effect. --- pkgs/development/libraries/openldap/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/libraries/openldap/default.nix b/pkgs/development/libraries/openldap/default.nix index c57aa560fc2b..1f7bbb41c36e 100644 --- a/pkgs/development/libraries/openldap/default.nix +++ b/pkgs/development/libraries/openldap/default.nix @@ -81,7 +81,7 @@ stdenv.mkDerivation rec { ]; postBuild = '' - for module in ${lib.concatStringsSep " " extraContribModules}; do + for module in $extraContribModules; do make $makeFlags CC=$CC -C contrib/slapd-modules/$module done ''; @@ -105,7 +105,7 @@ stdenv.mkDerivation rec { ]; postInstall = '' - for module in ${lib.concatStringsSep " " extraContribModules}; do + for module in $extraContribModules; do make $installFlags install -C contrib/slapd-modules/$module done chmod +x "$out"/lib/*.{so,dylib} From 4d80d6be86bfc75339ba08a6c76ae196b0a67ca6 Mon Sep 17 00:00:00 2001 From: Sergei Trofimovich Date: Mon, 23 May 2022 21:47:53 +0100 Subject: [PATCH 014/336] linuxHeaders: 5.17 -> 5.18 --- pkgs/os-specific/linux/kernel-headers/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/os-specific/linux/kernel-headers/default.nix b/pkgs/os-specific/linux/kernel-headers/default.nix index d4d438e78a00..d07c9073e6a1 100644 --- a/pkgs/os-specific/linux/kernel-headers/default.nix +++ b/pkgs/os-specific/linux/kernel-headers/default.nix @@ -84,12 +84,12 @@ let in { inherit makeLinuxHeaders; - linuxHeaders = let version = "5.17"; in + linuxHeaders = let version = "5.18"; in makeLinuxHeaders { inherit version; src = fetchurl { url = "mirror://kernel/linux/kernel/v5.x/linux-${version}.tar.xz"; - sha256 = "1cdi43x4c3l4chznh57gm55szycj4wjlxl1dss1ilnfvvmhyypsm"; + sha256 = "1vjwhl4s8qxfg1aabn8xnpjza3qzrjcp5450h9qpjvl999lg3wsi"; }; patches = [ ./no-relocs.patch # for building x86 kernel headers on non-ELF platforms From 50b21c666f4c0cc1527fcbb595f84f8e651e6173 Mon Sep 17 00:00:00 2001 From: Christian Kampka Date: Thu, 26 May 2022 19:57:21 +0200 Subject: [PATCH 015/336] pipewire: add option to disable systemd support --- pkgs/development/libraries/pipewire/default.nix | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/pkgs/development/libraries/pipewire/default.nix b/pkgs/development/libraries/pipewire/default.nix index 96d8c9c20529..8d28ef5ad74f 100644 --- a/pkgs/development/libraries/pipewire/default.nix +++ b/pkgs/development/libraries/pipewire/default.nix @@ -6,7 +6,9 @@ , python3 , meson , ninja +, eudev , systemd +, enableSystemd ? true , pkg-config , docutils , doxygen @@ -127,8 +129,8 @@ let vulkan-headers vulkan-loader webrtc-audio-processing - systemd - ] ++ lib.optionals gstreamerSupport [ gst_all_1.gst-plugins-base gst_all_1.gstreamer ] + ] ++ (if enableSystemd then [ systemd ] else [ eudev ]) + ++ lib.optionals gstreamerSupport [ gst_all_1.gst-plugins-base gst_all_1.gstreamer ] ++ lib.optionals libcameraSupport [ libcamera libdrm ] ++ lib.optional ffmpegSupport ffmpeg ++ lib.optionals bluezSupport [ bluez libfreeaptx ldacbt sbc fdk_aac ] @@ -153,7 +155,9 @@ let "-Dlibpulse=${mesonEnableFeature pulseTunnelSupport}" "-Davahi=${mesonEnableFeature zeroconfSupport}" "-Dgstreamer=${mesonEnableFeature gstreamerSupport}" - "-Dsystemd-system-service=enabled" + "-Dsystemd-system-service=${mesonEnableFeature enableSystemd}" + "-Dudev=${mesonEnableFeature (!enableSystemd)}" + "-Dudevrulesdir=${placeholder "out"}/lib/udev/rules.d" "-Dffmpeg=${mesonEnableFeature ffmpegSupport}" "-Dbluez5=${mesonEnableFeature bluezSupport}" "-Dbluez5-backend-hsp-native=${mesonEnableFeature nativeHspSupport}" @@ -193,8 +197,11 @@ let cp ${buildPackages.pipewire}/nix-support/*.json "$out/nix-support" ''} - moveToOutput "share/systemd/user/pipewire-pulse.*" "$pulse" - moveToOutput "lib/systemd/user/pipewire-pulse.*" "$pulse" + ${lib.optionalString enableSystemd '' + moveToOutput "share/systemd/user/pipewire-pulse.*" "$pulse" + moveToOutput "lib/systemd/user/pipewire-pulse.*" "$pulse" + ''} + moveToOutput "bin/pipewire-pulse" "$pulse" moveToOutput "bin/pw-jack" "$jack" From 9b8ef71d92f5df248779b14fbe0069d3a7c90681 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Fri, 27 May 2022 23:18:40 +0200 Subject: [PATCH 016/336] python310Packages.psycopg2: add python imports check --- pkgs/development/python-modules/psycopg2/default.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pkgs/development/python-modules/psycopg2/default.nix b/pkgs/development/python-modules/psycopg2/default.nix index 56cd8fee7f93..8ebba4b01788 100644 --- a/pkgs/development/python-modules/psycopg2/default.nix +++ b/pkgs/development/python-modules/psycopg2/default.nix @@ -34,14 +34,17 @@ buildPythonPackage rec { openssl ]; + sphinxRoot = "doc/src"; + # requires setting up a postgresql database doCheck = false; - sphinxRoot = "doc/src"; + pythonImportsCheck = [ "psycopg2" ]; meta = with lib; { description = "PostgreSQL database adapter for the Python programming language"; homepage = "https://www.psycopg.org"; license = with licenses; [ lgpl3 zpl20 ]; + maintainers = with maintainers; [ ]; }; } From 17958d7718829e8942ad94e6195f44aa57dcc49d Mon Sep 17 00:00:00 2001 From: Brian McKenna Date: Sun, 29 May 2022 20:54:03 +1000 Subject: [PATCH 017/336] xdg-utils: fix cross-compilation --- pkgs/tools/X11/xdg-utils/default.nix | 2 +- pkgs/top-level/all-packages.nix | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/tools/X11/xdg-utils/default.nix b/pkgs/tools/X11/xdg-utils/default.nix index 7d01ee59b3ef..6be7e940c1f2 100644 --- a/pkgs/tools/X11/xdg-utils/default.nix +++ b/pkgs/tools/X11/xdg-utils/default.nix @@ -31,7 +31,7 @@ stdenv.mkDerivation rec { }; # just needed when built from git - buildInputs = [ libxslt docbook_xml_dtd_412 docbook_xsl xmlto w3m ]; + nativeBuildInputs = [ libxslt docbook_xml_dtd_412 docbook_xsl xmlto w3m ]; postInstall = lib.optionalString mimiSupport '' cp ${mimisrc}/xdg-open $out/bin/xdg-open diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index bb090dad3979..a69fde7e3640 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -30726,7 +30726,7 @@ with pkgs; xdg-user-dirs = callPackage ../tools/X11/xdg-user-dirs { }; xdg-utils = callPackage ../tools/X11/xdg-utils { - w3m = w3m-batch; + w3m = buildPackages.w3m-batch; }; xdgmenumaker = callPackage ../applications/misc/xdgmenumaker { }; From 9bb2ef14aad39acaa225705fd2c7b7f639e37e56 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Fri, 27 May 2022 22:26:46 +0200 Subject: [PATCH 018/336] pycryptodome,pycryptodomex: execute tests, unify --- .../python-modules/pycryptodome/default.nix | 31 ++++++++++++++----- .../default.nix => pycryptodome/vectors.nix} | 0 .../python-modules/pycryptodomex/default.nix | 26 ++++------------ pkgs/top-level/python-aliases.nix | 1 + pkgs/top-level/python-packages.nix | 2 -- 5 files changed, 30 insertions(+), 30 deletions(-) rename pkgs/development/python-modules/{pycryptodome-test-vectors/default.nix => pycryptodome/vectors.nix} (100%) diff --git a/pkgs/development/python-modules/pycryptodome/default.nix b/pkgs/development/python-modules/pycryptodome/default.nix index e3e4e6c3a03a..ef7b571170f3 100644 --- a/pkgs/development/python-modules/pycryptodome/default.nix +++ b/pkgs/development/python-modules/pycryptodome/default.nix @@ -1,28 +1,43 @@ { lib , buildPythonPackage -, fetchPypi -, pycryptodome-test-vectors +, callPackage +, fetchFromGitHub +, cffi +, gmp }: +let + test-vectors = callPackage ./vectors.nix { }; +in buildPythonPackage rec { pname = "pycryptodome"; version = "3.14.1"; format = "setuptools"; - src = fetchPypi { - inherit pname version; - hash = "sha256-4E5Ap/jBZpGVU2o3l53YfaLDLb3HPW/jXwB3sMF8gDs="; + src = fetchFromGitHub { + owner = "Legrandin"; + repo = "pycryptodome"; + rev = "v${version}"; + hash = "sha256-0GjpKNyALe2Q1R3dEjeAEn6E8hxYDic/vbN1YkVaUfs="; }; + postPatch = '' + substituteInPlace lib/Crypto/Math/_IntegerGMP.py \ + --replace 'load_lib("gmp"' 'load_lib("${gmp}/lib/libgmp.so.10"' + ''; + + checkInputs = [ + test-vectors + ]; + pythonImportsCheck = [ "Crypto" ]; meta = with lib; { - description = "Python Cryptography Toolkit"; - homepage = "https://www.pycryptodome.org/"; + description = "Self-contained cryptographic library"; + homepage = "https://github.com/Legrandin/pycryptodome"; license = with licenses; [ bsd2 /* and */ asl20 ]; maintainers = with maintainers; [ fab ]; - platforms = platforms.unix; }; } diff --git a/pkgs/development/python-modules/pycryptodome-test-vectors/default.nix b/pkgs/development/python-modules/pycryptodome/vectors.nix similarity index 100% rename from pkgs/development/python-modules/pycryptodome-test-vectors/default.nix rename to pkgs/development/python-modules/pycryptodome/vectors.nix diff --git a/pkgs/development/python-modules/pycryptodomex/default.nix b/pkgs/development/python-modules/pycryptodomex/default.nix index 934c021ed909..9d476ea4728c 100644 --- a/pkgs/development/python-modules/pycryptodomex/default.nix +++ b/pkgs/development/python-modules/pycryptodomex/default.nix @@ -1,27 +1,13 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pycryptodome-test-vectors -}: +{ pycryptodome }: -buildPythonPackage rec { +(pycryptodome.overrideAttrs (oldAttrs: rec { pname = "pycryptodomex"; - version = "3.14.1"; - format = "setuptools"; - src = fetchPypi { - inherit pname version; - hash = "sha256-LOdu0Agf1qyMdO3HW50U7KIGQXOveYQ8JPpiVzJjwfI="; - }; + postPatch = '' + touch .separate_namespace + ''; pythonImportsCheck = [ "Cryptodome" ]; - - meta = with lib; { - description = "A self-contained cryptographic library for Python"; - homepage = "https://www.pycryptodome.org"; - license = with licenses; [ bsd2 /* and */ asl20 ]; - maintainers = with maintainers; [ fab ]; - }; -} +})) diff --git a/pkgs/top-level/python-aliases.nix b/pkgs/top-level/python-aliases.nix index 2018b1b8b994..de20bc861c83 100644 --- a/pkgs/top-level/python-aliases.nix +++ b/pkgs/top-level/python-aliases.nix @@ -108,6 +108,7 @@ mapAliases ({ pur = throw "pur has been renamed to pkgs.pur"; # added 2021-11-08 pyGtkGlade = throw "Glade support for pygtk has been removed"; # added 2022-01-15 pycallgraph = throw "pycallgraph has been removed, it was using setuptools 2to3 translation feature, which has been removed in setuptools 58"; # added 2022-01-18 + pycryptodome-test-vectors = throw "pycryptodome-test-vectors has been removed because it is an internal package to pycryptodome"; # added 2022-05-28 pylibgen = throw "pylibgen is unmaintained upstreamed, and removed from nixpkgs"; # added 2020-06-20 pymssql = throw "pymssql has been abandoned upstream."; # added 2020-05-04 pyreadability = readability-lxml; # added 2022-05-24 diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 188e6c11b5e4..646a47e91496 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -7109,8 +7109,6 @@ in { pycryptodome = callPackage ../development/python-modules/pycryptodome { }; - pycryptodome-test-vectors = callPackage ../development/python-modules/pycryptodome-test-vectors { }; - pycryptodomex = callPackage ../development/python-modules/pycryptodomex { }; pyct = callPackage ../development/python-modules/pyct { }; From 860c2a1d9591f5d2d3dcd097c68092d68b52c512 Mon Sep 17 00:00:00 2001 From: Adam Joseph Date: Sun, 29 May 2022 12:36:10 -0700 Subject: [PATCH 019/336] pkgs/tools/misc/file: add cannot-use-fetchpatch warning As requested here: https://github.com/NixOS/nixpkgs/pull/168413#pullrequestreview-988550409 --- pkgs/tools/misc/file/default.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/tools/misc/file/default.nix b/pkgs/tools/misc/file/default.nix index 6454bb4eac28..9b982f2c2eac 100644 --- a/pkgs/tools/misc/file/default.nix +++ b/pkgs/tools/misc/file/default.nix @@ -1,5 +1,10 @@ { lib, stdenv, fetchurl, file, zlib, libgnurx }: +# Note: this package is used for bootstrapping fetchurl, and thus +# cannot use fetchpatch! All mutable patches (generated by GitHub or +# cgit) that are needed here should be included directly in Nixpkgs as +# files. + stdenv.mkDerivation rec { pname = "file"; version = "5.41"; From 14366425cdeffb980738e18a33853873befb1ac2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Mon, 30 May 2022 04:08:31 +0200 Subject: [PATCH 020/336] python310Packages.paramiko: 2.10.4 -> 2.11.0 --- .../python-modules/paramiko/default.nix | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/pkgs/development/python-modules/paramiko/default.nix b/pkgs/development/python-modules/paramiko/default.nix index 421d53b5a881..9a0046940035 100644 --- a/pkgs/development/python-modules/paramiko/default.nix +++ b/pkgs/development/python-modules/paramiko/default.nix @@ -2,24 +2,25 @@ , bcrypt , buildPythonPackage , cryptography +, fetchpatch , fetchPypi +, gssapi , invoke , mock , pyasn1 , pynacl , pytest-relaxed , pytestCheckHook -, fetchpatch }: buildPythonPackage rec { pname = "paramiko"; - version = "2.10.4"; + version = "2.11.0"; format = "setuptools"; src = fetchPypi { inherit pname version; - sha256 = "sha256-PS5lC2gSzm0WCr/3AdbvRDTsl5NLE+lc8a09pw/7XFg="; + sha256 = "sha256-AD5r7nwDTCH7sFG/g9wKnuQQYgTdPFMFTHFFLMTsOTg="; }; patches = [ @@ -32,11 +33,9 @@ buildPythonPackage rec { ]; propagatedBuildInputs = [ - bcrypt cryptography pyasn1 - pynacl - ]; + ] ++ passthru.optional-dependencies.ed25519; # remove on 3.0 update checkInputs = [ invoke @@ -62,6 +61,12 @@ buildPythonPackage rec { __darwinAllowLocalNetworking = true; + passthru.optional-dependencies = { + gssapi = [ pyasn1 gssapi ]; + ed25519 = [ pynacl bcrypt ]; + invoke = [ invoke ]; + }; + meta = with lib; { homepage = "https://github.com/paramiko/paramiko/"; description = "Native Python SSHv2 protocol library"; From f8b7b90a57fd287537413b7fbbbdbb164c69e5df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Mon, 30 May 2022 04:20:01 +0200 Subject: [PATCH 021/336] python310Packages.psutil: 5.9.0 -> 5.9.1 --- pkgs/development/python-modules/psutil/default.nix | 11 +++++------ pkgs/top-level/python-packages.nix | 4 +++- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/pkgs/development/python-modules/psutil/default.nix b/pkgs/development/python-modules/psutil/default.nix index 581e83ddf1a2..197da3c76ce6 100644 --- a/pkgs/development/python-modules/psutil/default.nix +++ b/pkgs/development/python-modules/psutil/default.nix @@ -1,18 +1,17 @@ { lib, stdenv, buildPythonPackage, fetchPypi, isPy27, python -, darwin +, IOKit , pytestCheckHook , mock -, ipaddress , unittest2 }: buildPythonPackage rec { pname = "psutil"; - version = "5.9.0"; + version = "5.9.1"; src = fetchPypi { inherit pname version; - sha256 = "869842dbd66bb80c3217158e629d6fceaecc3a3166d3d1faee515b05dd26ca25"; + sha256 = "sha256-V/GBm12elc37DIgailt9VC7Qt8Ui1XVwaoC+3ISMiVQ="; }; # We have many test failures on various parts of the package: @@ -24,7 +23,7 @@ buildPythonPackage rec { # https://github.com/giampaolo/psutil/issues/1912 doCheck = false; checkInputs = [ pytestCheckHook ] - ++ lib.optionals isPy27 [ mock ipaddress unittest2 ]; + ++ lib.optionals isPy27 [ mock unittest2 ]; # In addition to the issues listed above there are some that occure due to # our sandboxing which we can work around by disabling some tests: # - cpu_times was flaky on darwin @@ -42,7 +41,7 @@ buildPythonPackage rec { "cpu_freq" ]; - buildInputs = lib.optionals stdenv.isDarwin [ darwin.IOKit ]; + buildInputs = lib.optionals stdenv.isDarwin [ IOKit ]; pythonImportsCheck = [ "psutil" ]; diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 189207368ba3..afd24040a0b7 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -6847,7 +6847,9 @@ in { psd-tools = callPackage ../development/python-modules/psd-tools { }; - psutil = callPackage ../development/python-modules/psutil { }; + psutil = callPackage ../development/python-modules/psutil { + inherit (pkgs.darwin.apple_sdk.frameworks) IOKit; + }; psycopg2 = callPackage ../development/python-modules/psycopg2 { }; From a02ab4d6aee9e31d61741a9fccea8189f4d9d7e7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Mon, 30 May 2022 05:08:05 +0200 Subject: [PATCH 022/336] python310Packages.pyjwt: 2.3.0 -> 2.4.0 --- pkgs/development/python-modules/pyjwt/default.nix | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/pkgs/development/python-modules/pyjwt/default.nix b/pkgs/development/python-modules/pyjwt/default.nix index 8212d097aa80..500f46b02408 100644 --- a/pkgs/development/python-modules/pyjwt/default.nix +++ b/pkgs/development/python-modules/pyjwt/default.nix @@ -2,30 +2,26 @@ , buildPythonPackage , fetchPypi , cryptography -, ecdsa -, pytest-cov , pytestCheckHook , pythonOlder }: buildPythonPackage rec { pname = "pyjwt"; - version = "2.3.0"; + version = "2.4.0"; disabled = pythonOlder "3.6"; src = fetchPypi { pname = "PyJWT"; inherit version; - sha256 = "sha256-uIi01W8G9tzXdyEMM05pxze+dHVdPl6e4/5n3Big7kE="; + sha256 = "sha256-1CkIIIxpmzuXPL6wGpabpqlsgh7vscW/5MOQwB1nq7o="; }; propagatedBuildInputs = [ cryptography - ecdsa ]; checkInputs = [ - pytest-cov pytestCheckHook ]; From a54a95575a6dff779e6cca738c44c30a1cc5afa4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Mon, 30 May 2022 05:43:56 +0200 Subject: [PATCH 023/336] python310Packages.colorama: add pythonImportsCheck, update meta --- pkgs/development/python-modules/colorama/default.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pkgs/development/python-modules/colorama/default.nix b/pkgs/development/python-modules/colorama/default.nix index 1d472035b2f2..f362bbd30b3c 100644 --- a/pkgs/development/python-modules/colorama/default.nix +++ b/pkgs/development/python-modules/colorama/default.nix @@ -12,10 +12,13 @@ buildPythonPackage rec { # No tests in archive doCheck = false; + pythonImportsCheck = [ "colorama" ]; + meta = with lib; { + description = "Cross-platform colored terminal text"; homepage = "https://github.com/tartley/colorama"; license = licenses.bsd3; - description = "Cross-platform colored terminal text"; + maintainers = with maintainers; [ ]; }; } From 6691fccb423315ea03fa226781761b61e1627889 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Mon, 30 May 2022 05:47:12 +0200 Subject: [PATCH 024/336] python310Packages.uvicorn: remove windows only dependency --- pkgs/development/python-modules/uvicorn/default.nix | 2 -- 1 file changed, 2 deletions(-) diff --git a/pkgs/development/python-modules/uvicorn/default.nix b/pkgs/development/python-modules/uvicorn/default.nix index 2ed3bec5a73b..cc9f884f7cb9 100644 --- a/pkgs/development/python-modules/uvicorn/default.nix +++ b/pkgs/development/python-modules/uvicorn/default.nix @@ -4,7 +4,6 @@ , fetchFromGitHub , asgiref , click -, colorama , h11 , httptools , python-dotenv @@ -37,7 +36,6 @@ buildPythonPackage rec { propagatedBuildInputs = [ asgiref click - colorama h11 httptools python-dotenv From 0cd80c488e89f0ec39b6cc4e7d6ae3e27a2c32a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Mon, 30 May 2022 05:58:49 +0200 Subject: [PATCH 025/336] python310Packages.constantly: add pythonImportsCheck --- pkgs/development/python-modules/constantly/default.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkgs/development/python-modules/constantly/default.nix b/pkgs/development/python-modules/constantly/default.nix index e3a9c642f478..b75eca716365 100644 --- a/pkgs/development/python-modules/constantly/default.nix +++ b/pkgs/development/python-modules/constantly/default.nix @@ -9,6 +9,8 @@ buildPythonPackage rec { sha256 = "0dgwdla5kfpqz83hfril716inm41hgn9skxskvi77605jbmp4qsq"; }; + pythonImportsCheck = [ "constantly" ]; + meta = with lib; { homepage = "https://github.com/twisted/constantly"; description = "symbolic constant support"; From 6d5d2abc6a9b696a5d855914b191dc3efce332e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Mon, 30 May 2022 06:18:25 +0200 Subject: [PATCH 026/336] python310Packages.ifaddr: remove backport ipaddress, run test with pytestCheckHook --- pkgs/development/python-modules/ifaddr/default.nix | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/pkgs/development/python-modules/ifaddr/default.nix b/pkgs/development/python-modules/ifaddr/default.nix index 35bafd67fa97..82b00d550950 100644 --- a/pkgs/development/python-modules/ifaddr/default.nix +++ b/pkgs/development/python-modules/ifaddr/default.nix @@ -1,8 +1,7 @@ { lib , buildPythonPackage , fetchPypi -, ipaddress -, python +, pytestCheckHook }: buildPythonPackage rec { @@ -14,11 +13,11 @@ buildPythonPackage rec { sha256 = "1f9e8a6ca6f16db5a37d3356f07b6e52344f6f9f7e806d618537731669eb1a94"; }; - propagatedBuildInputs = [ ipaddress ]; + checkInputs = [ + pytestCheckHook + ]; - checkPhase = '' - ${python.interpreter} -m unittest discover - ''; + pythonImportsCheck = [ "ifaddr" ]; meta = with lib; { homepage = "https://github.com/pydron/ifaddr"; From 8bcb1ef0067dd6271d1839695f61e8b4fac4392b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Mon, 30 May 2022 06:33:13 +0200 Subject: [PATCH 027/336] python310Packages.limits: 2.6.1 -> 2.6.2 --- pkgs/development/python-modules/limits/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/limits/default.nix b/pkgs/development/python-modules/limits/default.nix index a79bd445b6bf..56816c74d50c 100644 --- a/pkgs/development/python-modules/limits/default.nix +++ b/pkgs/development/python-modules/limits/default.nix @@ -17,7 +17,7 @@ buildPythonPackage rec { pname = "limits"; - version = "2.6.1"; + version = "2.6.2"; format = "setuptools"; disabled = pythonOlder "3.7"; @@ -32,7 +32,7 @@ buildPythonPackage rec { postFetch = '' rm "$out/limits/_version.py" ''; - hash = "sha256-ja+YbRHCcZ5tFnoofdR44jbkkdDroVUdKeDOt6yE0LI="; + hash = "sha256-1TfwGxEgf6LFYSaNLyVRtJVOnTVNxvswoKMFNWrNOv0="; }; propagatedBuildInputs = [ From fea73bfd63669e0a22d240e89bb7b451f1888157 Mon Sep 17 00:00:00 2001 From: Sergei Trofimovich Date: Mon, 30 May 2022 07:15:14 +0100 Subject: [PATCH 028/336] linux: disable WERROR by default gcc update frequently breaks most recent kernel releases due to blanket -Werror flag. Let's avoid -Werror in a default build to ease kernel and gcc maintenance. --- pkgs/os-specific/linux/kernel/common-config.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkgs/os-specific/linux/kernel/common-config.nix b/pkgs/os-specific/linux/kernel/common-config.nix index 20532d75e764..bc7f5cc25aa2 100644 --- a/pkgs/os-specific/linux/kernel/common-config.nix +++ b/pkgs/os-specific/linux/kernel/common-config.nix @@ -917,6 +917,9 @@ let TASK_DELAY_ACCT = yes; TASK_XACCT = yes; TASK_IO_ACCOUNTING = yes; + + # Fresh toolchains frequently break -Werror build for minor issues. + WERROR = whenAtLeast "5.15" no; } // optionalAttrs (stdenv.hostPlatform.system == "x86_64-linux" || stdenv.hostPlatform.system == "aarch64-linux") { # Enable CPU/memory hotplug support # Allows you to dynamically add & remove CPUs/memory to a VM client running NixOS without requiring a reboot From 04d41ba8cc770aecc76a72b50f09c281d88a5022 Mon Sep 17 00:00:00 2001 From: Robin Gloster Date: Tue, 17 May 2022 14:55:20 +0200 Subject: [PATCH 029/336] lua5_2: add patch for CVE-2022-28805 Derived from https://github.com/lua/lua/commit/1f3c6f4534c6411313361697d98d1145a1f030fa --- .../interpreters/lua-5/CVE-2022-28805.patch | 10 ++++++++++ pkgs/development/interpreters/lua-5/default.nix | 4 +++- 2 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 pkgs/development/interpreters/lua-5/CVE-2022-28805.patch diff --git a/pkgs/development/interpreters/lua-5/CVE-2022-28805.patch b/pkgs/development/interpreters/lua-5/CVE-2022-28805.patch new file mode 100644 index 000000000000..bcf16acbea42 --- /dev/null +++ b/pkgs/development/interpreters/lua-5/CVE-2022-28805.patch @@ -0,0 +1,10 @@ +--- a/src/lparser.c ++++ b/src/lparser.c +@@ -301,6 +301,7 @@ + expdesc key; + singlevaraux(fs, ls->envn, var, 1); /* get environment variable */ + lua_assert(var->k == VLOCAL || var->k == VUPVAL); ++ luaK_exp2anyregup(fs, var); /* but could be a constant */ + codestring(ls, &key, varname); /* key is variable name */ + luaK_indexed(fs, var, &key); /* env[varname] */ + } diff --git a/pkgs/development/interpreters/lua-5/default.nix b/pkgs/development/interpreters/lua-5/default.nix index 5230a46afef3..40aa429d8e27 100644 --- a/pkgs/development/interpreters/lua-5/default.nix +++ b/pkgs/development/interpreters/lua-5/default.nix @@ -32,7 +32,9 @@ rec { sourceVersion = { major = "5"; minor = "2"; patch = "4"; }; hash = "0jwznq0l8qg9wh5grwg07b5cy3lzngvl5m2nl1ikp6vqssmf9qmr"; makeWrapper = makeBinaryWrapper; - patches = lib.optional stdenv.isDarwin ./5.2.darwin.patch; + patches = [ + ./CVE-2022-28805.patch + ] ++ lib.optional stdenv.isDarwin ./5.2.darwin.patch; }; lua5_2_compat = lua5_2.override({ From 5a7d0b6b34e1414c7fe1e9ddd4c8407e03510bff Mon Sep 17 00:00:00 2001 From: Robin Gloster Date: Thu, 12 May 2022 16:00:09 +0200 Subject: [PATCH 030/336] lua5_4: fix CVE-2022-28805 --- pkgs/development/interpreters/lua-5/default.nix | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/pkgs/development/interpreters/lua-5/default.nix b/pkgs/development/interpreters/lua-5/default.nix index 40aa429d8e27..a160ee039f3a 100644 --- a/pkgs/development/interpreters/lua-5/default.nix +++ b/pkgs/development/interpreters/lua-5/default.nix @@ -7,7 +7,17 @@ rec { hash = "1yxvjvnbg4nyrdv10bq42gz6dr66pyan28lgzfygqfwy2rv24qgq"; makeWrapper = makeBinaryWrapper; - patches = lib.optional stdenv.isDarwin ./5.4.darwin.patch; + patches = lib.optional stdenv.isDarwin ./5.4.darwin.patch + ++ [ + (fetchpatch { + name = "CVE-2022-28805.patch"; + url = "https://github.com/lua/lua/commit/1f3c6f4534c6411313361697d98d1145a1f030fa.patch"; + sha256 = "sha256-YTwoolSnRNJIHFPVijSO6ZDw35BG5oWYralZ8qOb9y8="; + stripLen = 1; + extraPrefix = "src/"; + excludes = [ "src/testes/*" ]; + }) + ]; }; lua5_4_compat = lua5_4.override({ From ada881482879e5ab93be766a0305b55ad3705b70 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Mon, 30 May 2022 22:19:38 +0200 Subject: [PATCH 031/336] python310Packages.ipaddress: drop --- .../python-modules/ipaddress/default.nix | 27 ------------------- pkgs/top-level/python-aliases.nix | 1 + pkgs/top-level/python-packages.nix | 2 -- 3 files changed, 1 insertion(+), 29 deletions(-) delete mode 100644 pkgs/development/python-modules/ipaddress/default.nix diff --git a/pkgs/development/python-modules/ipaddress/default.nix b/pkgs/development/python-modules/ipaddress/default.nix deleted file mode 100644 index 06211470daa4..000000000000 --- a/pkgs/development/python-modules/ipaddress/default.nix +++ /dev/null @@ -1,27 +0,0 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonAtLeast -, python -}: - -if (pythonAtLeast "3.3") then null else buildPythonPackage rec { - pname = "ipaddress"; - version = "1.0.23"; - - src = fetchPypi { - inherit pname version; - sha256 = "b7f8e0369580bb4a24d5ba1d7cc29660a4a6987763faf1d8a8046830e020e7e2"; - }; - - checkPhase = '' - ${python.interpreter} test_ipaddress.py - ''; - - meta = with lib; { - description = "Port of the 3.3+ ipaddress module to 2.6, 2.7, and 3.2"; - homepage = "https://github.com/phihag/ipaddress"; - license = licenses.psfl; - }; - -} diff --git a/pkgs/top-level/python-aliases.nix b/pkgs/top-level/python-aliases.nix index 50fe734c6c7d..d1dbaf2c2a7c 100644 --- a/pkgs/top-level/python-aliases.nix +++ b/pkgs/top-level/python-aliases.nix @@ -84,6 +84,7 @@ mapAliases ({ hdlparse = throw "hdlparse has been removed, it was using setuptools 2to3 translation feature, which has been removed in setuptools 58"; # added 2022-01-18 hyperkitty = throw "Please use pkgs.mailmanPackages.hyperkitty"; # added 2022-04-29 IMAPClient = imapclient; # added 2021-10-28 + ipaddress = throw "ipaddress has been removed because it is no longer required since python 2.7."; # added 2022-05-30 jupyter_client = jupyter-client; # added 2021-10-15 Keras = keras; # added 2021-11-25 lammps-cython = throw "lammps-cython no longer builds and is unmaintained"; # added 2021-07-04 diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 360206928c4e..aa6419cb8f8d 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -4271,8 +4271,6 @@ in { ipaddr = callPackage ../development/python-modules/ipaddr { }; - ipaddress = callPackage ../development/python-modules/ipaddress { }; - ipdb = callPackage ../development/python-modules/ipdb { }; ipdbplugin = callPackage ../development/python-modules/ipdbplugin { }; From 002669d20a1ff982f4bf9278fd1deef56625a384 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Tue, 31 May 2022 06:04:57 +0000 Subject: [PATCH 032/336] glib: 2.72.1 -> 2.72.2 --- pkgs/development/libraries/glib/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/libraries/glib/default.nix b/pkgs/development/libraries/glib/default.nix index 2c02bac92d2c..29a1f642089d 100644 --- a/pkgs/development/libraries/glib/default.nix +++ b/pkgs/development/libraries/glib/default.nix @@ -45,11 +45,11 @@ in stdenv.mkDerivation rec { pname = "glib"; - version = "2.72.1"; + version = "2.72.2"; src = fetchurl { url = "mirror://gnome/sources/glib/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz"; - sha256 = "wH5XFHslTO+SzoCgN43AwCpDWOfeRwLp9AMGl4EJX+I="; + sha256 = "eNWZoTPbp/4gNt+o24+2Exq5ZCeD/JV4sHogmVJS0t4="; }; patches = optionals stdenv.isDarwin [ From da814333e90072dfd28ce0be4dee30ecc8276919 Mon Sep 17 00:00:00 2001 From: Dmitry Bogatov Date: Sun, 29 May 2022 14:55:00 -0400 Subject: [PATCH 033/336] python3.pkgs.mdx-truly-sane-lists: init at 1.2 This is plugin for python-markdown library that is needed to build documentation of python3.pkgs.pydantic. --- .../mdx-truly-sane-lists/default.nix | 36 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 ++ 2 files changed, 38 insertions(+) create mode 100644 pkgs/development/python-modules/mdx-truly-sane-lists/default.nix diff --git a/pkgs/development/python-modules/mdx-truly-sane-lists/default.nix b/pkgs/development/python-modules/mdx-truly-sane-lists/default.nix new file mode 100644 index 000000000000..9ea39e27a16e --- /dev/null +++ b/pkgs/development/python-modules/mdx-truly-sane-lists/default.nix @@ -0,0 +1,36 @@ +{ lib +, buildPythonPackage +, fetchFromGitHub +, markdown +, python +}: + +buildPythonPackage rec { + pname = "mdx_truly_sane_lists"; + version = "1.2"; + + src = fetchFromGitHub { + owner = "radude"; + repo = "mdx_truly_sane_lists"; + rev = version; + sha256 = "1h8403ch016cwdy5zklzp7c6xrdyyhl4z07h97qzbafrbq07jyss"; + }; + + propagatedBuildInputs = [ markdown ]; + + pythonImportsCheck = [ "mdx_truly_sane_lists" ]; + + checkPhase = '' + ${python.interpreter} mdx_truly_sane_lists/tests.py + ''; + + meta = with lib; { + description = "Extension for Python-Markdown that makes lists truly sane."; + longDescription = '' + Features custom indents for nested lists and fix for messy linebreaks and + paragraphs between lists. + ''; + license = licenses.mit; + maintainers = with maintainers; [ kaction ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 188e6c11b5e4..87d2bf85ad7b 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -5239,6 +5239,8 @@ in { md-toc = callPackage ../development/python-modules/md-toc { }; + mdx-truly-sane-lists = callPackage ../development/python-modules/mdx-truly-sane-lists { }; + md2gemini = callPackage ../development/python-modules/md2gemini { }; mdformat = callPackage ../development/python-modules/mdformat { }; From 19ceefe041d6663b5b86bf04b9b370c68842bb50 Mon Sep 17 00:00:00 2001 From: Dmitry Bogatov Date: Sun, 29 May 2022 15:14:52 -0400 Subject: [PATCH 034/336] python3.pkgs.mkdocs-exclude: init at 1.0.2 This plugin for mkdocs documentation generator is necessary to build documentation of pydantic. --- .../python-modules/mkdocs-exclude/default.nix | 37 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 1 + 2 files changed, 38 insertions(+) create mode 100644 pkgs/development/python-modules/mkdocs-exclude/default.nix diff --git a/pkgs/development/python-modules/mkdocs-exclude/default.nix b/pkgs/development/python-modules/mkdocs-exclude/default.nix new file mode 100644 index 000000000000..e959a15e4702 --- /dev/null +++ b/pkgs/development/python-modules/mkdocs-exclude/default.nix @@ -0,0 +1,37 @@ +{ lib +, callPackage +, buildPythonPackage +, fetchFromGitHub +, mkdocs +}: + +buildPythonPackage rec { + pname = "mkdocs-exclude"; + version = "1.0.2"; + + # Repository has only 3 commits and no tags. Each of these commits has + # version of 1.0.0, 1.0.1 and 1.0.2 in setup.py, though. + src = fetchFromGitHub { + owner = "apenwarr"; + repo = "mkdocs-exclude"; + rev = "fdd67d2685ff706de126e99daeaaaf3f6f7cf3ae"; + sha256 = "1phhl79xf4xq8w2sb2w5zm4bahcr33gsbxkz7dl1dws4qhcbxrfd"; + }; + + propagatedBuildInputs = [ mkdocs ]; + + # Attempt to import "mkdocs_exclude" module in stand-alone mode fails: + # + # module 'mkdocs.config' has no attribute 'config_options' + # + # It works fine when actually used to build documentation of "pydantic", + # though. This package has no tests. + doCheck = false; + + meta = with lib; { + description = "A mkdocs plugin to exclude files from input using globs or regexes."; + homepage = "https://github.com/apenwarr/mkdocs-exclude"; + license = licenses.asl20; + maintainers = with maintainers; [ kaction ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 87d2bf85ad7b..1c9bed161193 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -5372,6 +5372,7 @@ in { mkdocs = callPackage ../development/python-modules/mkdocs { }; mkdocs-drawio-exporter = callPackage ../development/python-modules/mkdocs-drawio-exporter { }; + mkdocs-exclude = callPackage ../development/python-modules/mkdocs-exclude { }; mkdocs-macros = callPackage ../development/python-modules/mkdocs-macros { }; mkdocs-material = callPackage ../development/python-modules/mkdocs-material { }; mkdocs-material-extensions = callPackage ../development/python-modules/mkdocs-material/mkdocs-material-extensions.nix { }; From d65f2b385a5285c9858fe7a8e11ac984d286288f Mon Sep 17 00:00:00 2001 From: Dmitry Bogatov Date: Sun, 29 May 2022 15:25:41 -0400 Subject: [PATCH 035/336] python3.pkgs.pydantic: build offline documentation --- .../python-modules/pydantic/default.nix | 40 +++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/pkgs/development/python-modules/pydantic/default.nix b/pkgs/development/python-modules/pydantic/default.nix index aac95982ceae..a886b5ba78ce 100644 --- a/pkgs/development/python-modules/pydantic/default.nix +++ b/pkgs/development/python-modules/pydantic/default.nix @@ -9,11 +9,23 @@ , python-dotenv , pythonOlder , typing-extensions +# dependencies for building documentation. +, ansi2html +, markdown-include +, mkdocs +, mkdocs-exclude +, mkdocs-material +, mdx-truly-sane-lists +, sqlalchemy +, ujson +, orjson +, hypothesis }: buildPythonPackage rec { pname = "pydantic"; version = "1.9.0"; + outputs = [ "out" "doc" ]; disabled = pythonOlder "3.7"; src = fetchFromGitHub { @@ -23,8 +35,24 @@ buildPythonPackage rec { sha256 = "sha256-C4WP8tiMRFmkDkQRrvP3yOSM2zN8pHJmX9cdANIckpM="; }; + postPatch = '' + sed -i '/flake8/ d' Makefile + ''; + nativeBuildInputs = [ cython + + # dependencies for building documentation + ansi2html + markdown-include + mdx-truly-sane-lists + mkdocs + mkdocs-exclude + mkdocs-material + sqlalchemy + ujson + orjson + hypothesis ]; propagatedBuildInputs = [ @@ -43,6 +71,18 @@ buildPythonPackage rec { export HOME=$(mktemp -d) ''; + # Must include current directory into PYTHONPATH, since documentation + # building process expects "import pydantic" to work. + preBuild = '' + PYTHONPATH=$PWD:$PYTHONPATH make docs + ''; + + # Layout documentation in same way as "sphinxHook" does. + postInstall = '' + mkdir -p $out/share/doc/$name + mv ./site $out/share/doc/$name/html + ''; + enableParallelBuilding = true; pythonImportsCheck = [ "pydantic" ]; From bf5c00fc75b36f9647d9832d1262f07f433d02d7 Mon Sep 17 00:00:00 2001 From: ajs124 Date: Tue, 31 May 2022 23:39:36 +0200 Subject: [PATCH 036/336] nss_esr: 3.68.3 -> 3.68.4 https://github.com/nss-dev/nss/blob/master/doc/rst/releases/nss_3_68_4.rst --- pkgs/development/libraries/nss/esr.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/libraries/nss/esr.nix b/pkgs/development/libraries/nss/esr.nix index a958fa059d6d..27f19298068d 100644 --- a/pkgs/development/libraries/nss/esr.nix +++ b/pkgs/development/libraries/nss/esr.nix @@ -1,4 +1,4 @@ import ./generic.nix { - version = "3.68.3"; - sha256 = "sha256-5NDZsLVhfLM0gSZC7YAfjlH1mVyN2FwN78jMra/Lwzc="; + version = "3.68.4"; + sha256 = "sha256-K5/T9aG0nzs7KdEgAmdPcEgRViV1b7R3KELsfDm+Fgs="; } From ae1f1709b7cb5e8cd9b72ac3e9c6f82462abcff5 Mon Sep 17 00:00:00 2001 From: ajs124 Date: Tue, 31 May 2022 23:42:38 +0200 Subject: [PATCH 037/336] nss_latest: 3.78 -> 3.79 https://github.com/nss-dev/nss/blob/master/doc/rst/releases/nss_3_79.rst --- pkgs/development/libraries/nss/latest.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/libraries/nss/latest.nix b/pkgs/development/libraries/nss/latest.nix index 622c9fca8586..e9d02fba3121 100644 --- a/pkgs/development/libraries/nss/latest.nix +++ b/pkgs/development/libraries/nss/latest.nix @@ -5,6 +5,6 @@ # Example: nix-shell ./maintainers/scripts/update.nix --argstr package cacert import ./generic.nix { - version = "3.78"; - sha256 = "sha256-9FXzQeeHwRZzKOgKhPd7mlV9WVBm3aZIahh01y2miAA="; + version = "3.79"; + sha256 = "sha256-698tapZhO2/nCtV56fmD4OlOARAXHPspmdtjPTOUpRQ="; } From 309bfdf2e25a513dcc28f52b23efb1d114c5e45b Mon Sep 17 00:00:00 2001 From: ajs124 Date: Wed, 1 Jun 2022 00:33:23 +0200 Subject: [PATCH 038/336] nss: sha256 -> hash --- pkgs/development/libraries/nss/esr.nix | 2 +- pkgs/development/libraries/nss/generic.nix | 4 ++-- pkgs/development/libraries/nss/latest.nix | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/pkgs/development/libraries/nss/esr.nix b/pkgs/development/libraries/nss/esr.nix index 27f19298068d..a789f0306d32 100644 --- a/pkgs/development/libraries/nss/esr.nix +++ b/pkgs/development/libraries/nss/esr.nix @@ -1,4 +1,4 @@ import ./generic.nix { version = "3.68.4"; - sha256 = "sha256-K5/T9aG0nzs7KdEgAmdPcEgRViV1b7R3KELsfDm+Fgs="; + hash = "sha256-K5/T9aG0nzs7KdEgAmdPcEgRViV1b7R3KELsfDm+Fgs="; } diff --git a/pkgs/development/libraries/nss/generic.nix b/pkgs/development/libraries/nss/generic.nix index 3affffda0820..9a3d7bdfe270 100644 --- a/pkgs/development/libraries/nss/generic.nix +++ b/pkgs/development/libraries/nss/generic.nix @@ -1,4 +1,4 @@ -{ version, sha256 }: +{ version, hash }: { lib , stdenv , fetchurl @@ -31,7 +31,7 @@ stdenv.mkDerivation rec { src = fetchurl { url = "mirror://mozilla/security/nss/releases/NSS_${underscoreVersion}_RTM/src/${pname}-${version}.tar.gz"; - inherit sha256; + inherit hash; }; depsBuildBuild = [ buildPackages.stdenv.cc ]; diff --git a/pkgs/development/libraries/nss/latest.nix b/pkgs/development/libraries/nss/latest.nix index e9d02fba3121..fa99543eb37a 100644 --- a/pkgs/development/libraries/nss/latest.nix +++ b/pkgs/development/libraries/nss/latest.nix @@ -6,5 +6,5 @@ import ./generic.nix { version = "3.79"; - sha256 = "sha256-698tapZhO2/nCtV56fmD4OlOARAXHPspmdtjPTOUpRQ="; + hash = "sha256-698tapZhO2/nCtV56fmD4OlOARAXHPspmdtjPTOUpRQ="; } From cd3d17f3e2404b4d2bb056f0ad89b0520a7a40c8 Mon Sep 17 00:00:00 2001 From: Michael Weiss Date: Sat, 23 Apr 2022 21:46:51 +0200 Subject: [PATCH 039/336] mesa: 22.0.4 -> 22.1.1 --- pkgs/development/libraries/mesa/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/libraries/mesa/default.nix b/pkgs/development/libraries/mesa/default.nix index 8954eae19b46..38efff9b5497 100644 --- a/pkgs/development/libraries/mesa/default.nix +++ b/pkgs/development/libraries/mesa/default.nix @@ -34,7 +34,7 @@ with lib; let # Release calendar: https://www.mesa3d.org/release-calendar.html # Release frequency: https://www.mesa3d.org/releasing.html#schedule - version = "22.0.4"; + version = "22.1.1"; branch = versions.major version; self = stdenv.mkDerivation { @@ -48,7 +48,7 @@ self = stdenv.mkDerivation { "ftp://ftp.freedesktop.org/pub/mesa/${version}/mesa-${version}.tar.xz" "ftp://ftp.freedesktop.org/pub/mesa/older-versions/${branch}.x/${version}/mesa-${version}.tar.xz" ]; - sha256 = "1m0y8wgy48hmcidsr7sbk5hcw3v0qr8359fd2x34fvl2z9c1z5y7"; + sha256 = "1w8fpki67238l4yc92hsnsh4402py9zspirbmirxp577zxjhi526"; }; # TODO: From 4293c8d970cf3df37be59ff99468bd2533c69625 Mon Sep 17 00:00:00 2001 From: Rick van Schijndel Date: Thu, 2 Jun 2022 21:09:41 +0200 Subject: [PATCH 040/336] libqmi: disable introspection and gtk-doc when cross-compiling --- pkgs/development/libraries/libqmi/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/libraries/libqmi/default.nix b/pkgs/development/libraries/libqmi/default.nix index 0906d7b967c9..fb2d4aa69c9c 100644 --- a/pkgs/development/libraries/libqmi/default.nix +++ b/pkgs/development/libraries/libqmi/default.nix @@ -45,8 +45,8 @@ stdenv.mkDerivation rec { configureFlags = [ "--with-udev-base-dir=${placeholder "out"}/lib/udev" - "--enable-gtk-doc" - "--enable-introspection" + "--enable-gtk-doc=${if (stdenv.buildPlatform == stdenv.hostPlatform) then "yes" else "no"}" + "--enable-introspection=${if (stdenv.buildPlatform == stdenv.hostPlatform) then "yes" else "no"}" ]; enableParallelBuilding = true; From 55886c3946b443fe23b3d1a17c1047d4e8f4a365 Mon Sep 17 00:00:00 2001 From: Sergei Trofimovich Date: Thu, 2 Jun 2022 11:27:18 +0100 Subject: [PATCH 041/336] pkgsCross.ppc64.libffi: pull upstream patch to support gcc-12 Without the change `libffi` fails to build against `gcc-12` as: libtool: compile: powerpc64-unknown-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -I. -I../include -Iinclude \ -I../src -O3 -fomit-frame-pointer -fstrict-aliasing -ffast-math -Wall -fexceptions -c ../src/tramp.c \ -fPIC -DPIC -o src/.libs/tramp.o ../src/powerpc/linux64_closure.S: Assembler messages: ../src/powerpc/linux64_closure.S:363: Error: unrecognized opcode: `lvx' Co-authored-by: Sandro --- pkgs/development/libraries/libffi/default.nix | 13 ++++++----- .../libraries/libffi/libffi-powerpc64.patch | 23 +++++++++++++++++++ 2 files changed, 30 insertions(+), 6 deletions(-) create mode 100644 pkgs/development/libraries/libffi/libffi-powerpc64.patch diff --git a/pkgs/development/libraries/libffi/default.nix b/pkgs/development/libraries/libffi/default.nix index 7387a4a1f062..0971091d8a10 100644 --- a/pkgs/development/libraries/libffi/default.nix +++ b/pkgs/development/libraries/libffi/default.nix @@ -7,11 +7,6 @@ , dejagnu }: -# Note: this package is used for bootstrapping fetchurl, and thus -# cannot use fetchpatch! All mutable patches (generated by GitHub or -# cgit) that are needed here should be included directly in Nixpkgs as -# files. - stdenv.mkDerivation rec { pname = "libffi"; version = "3.4.2"; @@ -21,7 +16,13 @@ stdenv.mkDerivation rec { sha256 = "081nx7wpzds168jbr59m34n6s3lyiq6r8zggvqxvlslsc4hvf3sl"; }; - patches = []; + # Note: this package is used for bootstrapping fetchurl, and thus + # cannot use fetchpatch! All mutable patches (generated by GitHub or + # cgit) that are needed here should be included directly in Nixpkgs as + # files. + patches = [ + ./libffi-powerpc64.patch + ]; strictDeps = true; outputs = [ "out" "dev" "man" "info" ]; diff --git a/pkgs/development/libraries/libffi/libffi-powerpc64.patch b/pkgs/development/libraries/libffi/libffi-powerpc64.patch new file mode 100644 index 000000000000..5748ac084982 --- /dev/null +++ b/pkgs/development/libraries/libffi/libffi-powerpc64.patch @@ -0,0 +1,23 @@ +https://github.com/libffi/libffi/issues/668 +--- a/src/powerpc/linux64.S ++++ b/src/powerpc/linux64.S +@@ -29,6 +29,8 @@ + #include + #include + ++ .machine altivec ++ + #ifdef POWERPC64 + .hidden ffi_call_LINUX64 + .globl ffi_call_LINUX64 +--- a/src/powerpc/linux64_closure.S ++++ b/src/powerpc/linux64_closure.S +@@ -30,6 +30,8 @@ + + .file "linux64_closure.S" + ++ .machine altivec ++ + #ifdef POWERPC64 + FFI_HIDDEN (ffi_closure_LINUX64) + .globl ffi_closure_LINUX64 From be560224beabe7da5fa543cf8f59592015a36ccb Mon Sep 17 00:00:00 2001 From: Asad Mehmood Date: Thu, 2 Jun 2022 23:32:30 +0100 Subject: [PATCH 042/336] binutils: Reduce closure size when building for cross platform --- pkgs/development/tools/misc/binutils/default.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkgs/development/tools/misc/binutils/default.nix b/pkgs/development/tools/misc/binutils/default.nix index 279e0da7155f..4457db094301 100644 --- a/pkgs/development/tools/misc/binutils/default.nix +++ b/pkgs/development/tools/misc/binutils/default.nix @@ -194,6 +194,9 @@ stdenv.mkDerivation { # mass rebuild. postFixup = ""; + # Break dependency on pkgsBuildBuild.gcc when building a cross-binutils + stripDebugList = if stdenv.hostPlatform != stdenv.targetPlatform then "bin lib ${stdenv.hostPlatform.config}" else null; + # INFO: Otherwise it fails with: # `./sanity.sh: line 36: $out/bin/size: not found` doInstallCheck = (buildPlatform == hostPlatform) && (hostPlatform == targetPlatform); From 06dd4caa34dd9c33d6c9cfed98a07971562272ca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Fri, 3 Jun 2022 22:02:23 +0200 Subject: [PATCH 043/336] json-c: 0.15 -> 0.16 --- pkgs/development/libraries/json-c/default.nix | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/pkgs/development/libraries/json-c/default.nix b/pkgs/development/libraries/json-c/default.nix index 5a77ea789afe..d6aac7161d4f 100644 --- a/pkgs/development/libraries/json-c/default.nix +++ b/pkgs/development/libraries/json-c/default.nix @@ -2,11 +2,11 @@ stdenv.mkDerivation rec { pname = "json-c"; - version = "0.15"; + version = "0.16"; src = fetchurl { url = "https://s3.amazonaws.com/json-c_releases/releases/${pname}-${version}.tar.gz"; - sha256 = "1im484iz08j3gmzpw07v16brwq46pxxj65i996kkp2vivcfhmn5q"; + sha256 = "sha256-jkWsj5bsd5Hq87t+5Q6cIQC7vIe40PHQMMW6igKI2Ws="; }; outputs = [ "out" "dev" ]; @@ -15,16 +15,15 @@ stdenv.mkDerivation rec { meta = with lib; { description = "A JSON implementation in C"; - homepage = "https://github.com/json-c/json-c/wiki"; - maintainers = with maintainers; [ lovek323 ]; - platforms = platforms.unix; - license = licenses.mit; - longDescription = '' JSON-C implements a reference counting object model that allows you to easily construct JSON objects in C, output them as JSON formatted strings and parse JSON formatted strings back into the C representation of JSON objects. ''; + homepage = "https://github.com/json-c/json-c/wiki"; + maintainers = with maintainers; [ lovek323 ]; + platforms = platforms.unix; + license = licenses.mit; }; } From 9ac2a6f064700a75dbd674b2706a22fe00f95c78 Mon Sep 17 00:00:00 2001 From: Mario Rodas Date: Sat, 4 Jun 2022 04:20:00 +0000 Subject: [PATCH 044/336] jansson: 2.13.1 -> 2.14 https://github.com/akheron/jansson/raw/v2.14/CHANGES --- pkgs/development/libraries/jansson/default.nix | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/pkgs/development/libraries/jansson/default.nix b/pkgs/development/libraries/jansson/default.nix index 21a697f1e3ab..04921e5d0a50 100644 --- a/pkgs/development/libraries/jansson/default.nix +++ b/pkgs/development/libraries/jansson/default.nix @@ -1,17 +1,22 @@ -{lib, stdenv, fetchurl}: +{ lib, stdenv, fetchFromGitHub, cmake }: stdenv.mkDerivation rec { pname = "jansson"; - version = "2.13.1"; + version = "2.14"; - src = fetchurl { - url = "https://digip.org/jansson/releases/${pname}-${version}.tar.gz"; - sha256 = "0ks7gbs0j8p4dmmi2sq129mxy5gfg0z6220i1jk020mi2zd7gwzl"; + src = fetchFromGitHub { + owner = "akheron"; + repo = "jansson"; + rev = "v${version}"; + sha256 = "sha256-FQgy2+g3AyRVJeniqPQj0KNeHgPdza2pmEIXqSyYry4="; }; + nativeBuildInputs = [ cmake ]; + meta = with lib; { - homepage = "http://www.digip.org/jansson/"; + homepage = "https://github.com/akheron/jansson"; description = "C library for encoding, decoding and manipulating JSON data"; + changelog = "https://github.com/akheron/jansson/raw/v${version}/CHANGES"; license = licenses.mit; platforms = platforms.all; }; From 2b6596c426cf3c3e0bf4b588571bfc8b74c93f33 Mon Sep 17 00:00:00 2001 From: Mario Rodas Date: Sat, 4 Jun 2022 04:20:00 +0000 Subject: [PATCH 045/336] jansson: add marsam to maintainers --- pkgs/development/libraries/jansson/default.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/pkgs/development/libraries/jansson/default.nix b/pkgs/development/libraries/jansson/default.nix index 04921e5d0a50..44d48329fad0 100644 --- a/pkgs/development/libraries/jansson/default.nix +++ b/pkgs/development/libraries/jansson/default.nix @@ -19,5 +19,6 @@ stdenv.mkDerivation rec { changelog = "https://github.com/akheron/jansson/raw/v${version}/CHANGES"; license = licenses.mit; platforms = platforms.all; + maintainers = [ maintainers.marsam ]; }; } From 85be5352c3c9c5970716b4bd1a77801da8731b5e Mon Sep 17 00:00:00 2001 From: Rasmus Rendal Date: Sat, 4 Jun 2022 18:46:32 +0200 Subject: [PATCH 046/336] xxHash: Build with cmake and allow all platforms (#163279) Co-authored-by: Sandro Co-authored-by: Jan Tojnar --- pkgs/development/libraries/xxHash/default.nix | 39 ++++++++++++------- 1 file changed, 25 insertions(+), 14 deletions(-) diff --git a/pkgs/development/libraries/xxHash/default.nix b/pkgs/development/libraries/xxHash/default.nix index f4fa06112814..336dd5b32576 100644 --- a/pkgs/development/libraries/xxHash/default.nix +++ b/pkgs/development/libraries/xxHash/default.nix @@ -1,4 +1,9 @@ -{ lib, stdenv, fetchFromGitHub }: +{ lib +, stdenv +, fetchFromGitHub +, cmake +, fetchurl +}: stdenv.mkDerivation rec { pname = "xxHash"; @@ -11,21 +16,27 @@ stdenv.mkDerivation rec { sha256 = "sha256-2WoYCO6QRHWrbGP2mK04/sLNTyQLOuL3urVktilAwMA="; }; - # Upstream Makefile does not anticipate that user may not want to - # build .so library. - postPatch = lib.optionalString stdenv.hostPlatform.isStatic '' - sed -i 's/lib: libxxhash.a libxxhash/lib: libxxhash.a/' Makefile - sed -i '/LIBXXH) $(DESTDIR/ d' Makefile - ''; + patches = [ + # Merged in https://github.com/Cyan4973/xxHash/pull/649 + # Should be present in next release + (fetchurl { + name = "cmakeinstallfix.patch"; + url = "https://github.com/Cyan4973/xxHash/commit/636f966ecc713c84ddd3b7ccfde2bfb2cc7492a0.patch"; + hash = "sha256-fj+5V5mDhFgWGvrG1E4fEekL4eh7as0ouVvY4wnIHjs="; + }) + ]; - outputs = [ "out" "dev" ]; - makeFlags = [ "PREFIX=$(dev)" "EXEC_PREFIX=$(out)" ]; + nativeBuildInputs = [ + cmake + ]; - # pkgs/build-support/setup-hooks/compress-man-pages.sh hook fails - # to compress symlinked manpages. Avoid compressing manpages until - # it's fixed. - dontGzipMan = true; + # Using unofficial CMake build script to install CMake module files. + cmakeDir = "../cmake_unofficial"; + + cmakeFlags = [ + "-DBUILD_SHARED_LIBS=${if stdenv.hostPlatform.isStatic then "OFF" else "ON"}" + ]; meta = with lib; { description = "Extremely fast hash algorithm"; @@ -39,6 +50,6 @@ stdenv.mkDerivation rec { homepage = "https://github.com/Cyan4973/xxHash"; license = with licenses; [ bsd2 gpl2 ]; maintainers = with maintainers; [ orivej ]; - platforms = platforms.unix; + platforms = platforms.all; }; } From b32df807ea2c244b566c2a619b132509d75a85c7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Janne=20He=C3=9F?= Date: Sat, 4 Jun 2022 22:45:41 +0200 Subject: [PATCH 047/336] openldap: Fix some issues by applying patches These patches are from the 2.6 support branch and will hence make it into 2.6.3 at a later point. At this point however, I cannot use slapd as a syncrepl slave because it segfaults on startup. This also fixes parallel build. --- .../libraries/openldap/default.nix | 38 ++++++++++++++++++- 1 file changed, 36 insertions(+), 2 deletions(-) diff --git a/pkgs/development/libraries/openldap/default.nix b/pkgs/development/libraries/openldap/default.nix index 1f7bbb41c36e..551a0827eee2 100644 --- a/pkgs/development/libraries/openldap/default.nix +++ b/pkgs/development/libraries/openldap/default.nix @@ -1,6 +1,7 @@ { lib , stdenv , fetchurl +, fetchpatch # dependencies , cyrus_sasl @@ -21,6 +22,39 @@ stdenv.mkDerivation rec { hash = "sha256-gdCTRSMutiSG7PWsrNLFbAxFtKbIwGZhLn9CGiOhz4c"; }; + patches = [ + # ITS#9840 - ldif-filter: fix parallel build failure + (fetchpatch { + url = "https://github.com/openldap/openldap/commit/7d977f51e6dfa570a471d163b9e8255bdd3dc12f.patch"; + hash = "sha256:1vid6pj2gmqywbghnd380x19ml241ldc1fyslb6br6q27zpgbdlp"; + }) + # ITS#9840 - libraries/Makefile.in: ignore the mkdir errors + (fetchpatch { + url = "https://github.com/openldap/openldap/commit/71f24015c312171c00ce94c9ff9b9c6664bdca8d.patch"; + hash = "sha256:1a81vv6nkhgiadnj4g1wyzgzdp2zd151h0vkwvv9gzmqvhwcnc04"; + }) + # ITS#7165 back-mdb: check for stale readers on + (fetchpatch { + url = "https://github.com/openldap/openldap/commit/7e7f01c301db454e8c507999c77b55a1d97efc21.patch"; + hash = "sha256:1fc2yck2gn3zlpfqjdn56ar206npi8cmb8yg5ny4lww0ygmyzdfz"; + }) + # ITS#9858 back-mdb: delay indexer task startup + (fetchpatch { + url = "https://github.com/openldap/openldap/commit/ac061c684cc79d64ab4089fe3020921a0064a307.patch"; + hash = "sha256:01f0y50zlcj6n5mfkmb0di4p5vrlgn31zccx4a9k5m8vzxaqmw9d"; + }) + # ITS#9858 back-mdb: fix index reconfig + (fetchpatch { + url = "https://github.com/openldap/openldap/commit/c43c7a937cfb3a781f99b458b7ad71eb564a2bc2.patch"; + hash = "sha256:02yh0c8cyx14iir5qhfam5shrg5d3115s2nv0pmqdj6najrqc5mm"; + }) + # ITS#9157: check for NULL ld + (fetchpatch { + url = "https://github.com/openldap/openldap/commit/6675535cd6ad01f9519ecd5d75061a74bdf095c7.patch"; + hash = "sha256:0dali5ifcwba8400s065f0fizl9h44i0mzb06qgxhygff6yfrgif"; + }) + ]; + # TODO: separate "out" and "bin" outputs = [ "out" @@ -59,7 +93,7 @@ stdenv.mkDerivation rec { "ac_cv_func_memcmp_working=yes" ] ++ lib.optional stdenv.isFreeBSD "--with-pic"; - makeFlags= [ + makeFlags = [ "CC=${stdenv.cc.targetPrefix}cc" "STRIP=" # Disable install stripping as it breaks cross-compiling. We strip binaries anyway in fixupPhase. "prefix=${placeholder "out"}" @@ -116,6 +150,6 @@ stdenv.mkDerivation rec { description = "An open source implementation of the Lightweight Directory Access Protocol"; license = licenses.openldap; maintainers = with maintainers; [ ajs124 das_j hexa ]; - platforms = platforms.unix; + platforms = platforms.unix; }; } From 81c57a8407e943526cc5ba445ed2b65c87038b2d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Sat, 4 Jun 2022 22:55:26 +0200 Subject: [PATCH 048/336] cacert: use buildcatrust build with python3Minimal to avoid inifinite recursion with mailcap Co-authored-by: Artturi --- pkgs/top-level/all-packages.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 8a397005774a..38e182ec05c1 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -24120,7 +24120,10 @@ with pkgs; brise = callPackage ../data/misc/brise { }; - cacert = callPackage ../data/misc/cacert { }; + cacert = callPackage ../data/misc/cacert { + # avoid an infinite recursion through mailcap + buildcatrust = with python3Minimal.pkgs; toPythonApplication buildcatrust; + }; caladea = callPackage ../data/fonts/caladea {}; From 80f9a78c01df1fafc4e0743a8ca763018bc0ff45 Mon Sep 17 00:00:00 2001 From: Artturin Date: Sun, 5 Jun 2022 00:08:12 +0300 Subject: [PATCH 049/336] mailcap: fix build and prevent future inf rec issues --- pkgs/data/misc/mailcap/default.nix | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/pkgs/data/misc/mailcap/default.nix b/pkgs/data/misc/mailcap/default.nix index 3519b01f54ba..06c8047e1cab 100644 --- a/pkgs/data/misc/mailcap/default.nix +++ b/pkgs/data/misc/mailcap/default.nix @@ -1,23 +1,25 @@ -{ lib, fetchzip }: +{ lib, stdenv, fetchurl }: -let +stdenv.mkDerivation rec { + pname = "mailcap"; version = "2.1.53"; -in fetchzip { - name = "mailcap-${version}"; + src = fetchurl { + url = "https://releases.pagure.org/mailcap/mailcap-${version}.tar.xz"; + sha256 = "sha256-Xuou8XswSXe6PsuHr61DGfoEQPgl5Pb7puj6L/64h4U="; + }; - url = "https://releases.pagure.org/mailcap/mailcap-${version}.tar.xz"; - sha256 = "sha256-6JPj2tZgoTEZ8hNEi9ZZhElBNm9SRTSXifMmCicwiLo="; + installPhase = '' + runHook preInstall - postFetch = '' - tar -xavf $downloadedFile --strip-components=1 substituteInPlace mailcap --replace "/usr/bin/" "" - gzip mailcap.5 sh generate-nginx-mimetypes.sh < mime.types > nginx-mime.types install -D -m0644 nginx-mime.types $out/etc/nginx/mime.types install -D -m0644 -t $out/etc mailcap mime.types - install -D -m0644 -t $out/share/man/man5 mailcap.5.gz + install -D -m0644 -t $out/share/man/man5 mailcap.5 + + runHook postInstall ''; meta = with lib; { From 1711b30687175b37bc32094a342017f3c39fa4e5 Mon Sep 17 00:00:00 2001 From: linsui Date: Sun, 5 Jun 2022 11:00:26 +0800 Subject: [PATCH 050/336] jami: 20211223.2.37be4c3 -> 20220503.1550.0f35faa --- .../instant-messengers/jami/client-gnome.nix | 64 ------------------- .../instant-messengers/jami/client-qt.nix | 26 +++++--- .../jami/config/pjsip_args_common | 19 ++++++ .../jami/config/pjsip_args_linux | 1 + .../instant-messengers/jami/daemon.nix | 16 +++-- .../instant-messengers/jami/default.nix | 21 +++--- .../instant-messengers/jami/libclient.nix | 1 + .../instant-messengers/jami/pjproject-src.nix | 6 -- .../instant-messengers/jami/update.sh | 24 +++++-- pkgs/top-level/aliases.nix | 1 + pkgs/top-level/all-packages.nix | 6 +- 11 files changed, 80 insertions(+), 105 deletions(-) delete mode 100644 pkgs/applications/networking/instant-messengers/jami/client-gnome.nix create mode 100644 pkgs/applications/networking/instant-messengers/jami/config/pjsip_args_common create mode 100644 pkgs/applications/networking/instant-messengers/jami/config/pjsip_args_linux delete mode 100644 pkgs/applications/networking/instant-messengers/jami/pjproject-src.nix diff --git a/pkgs/applications/networking/instant-messengers/jami/client-gnome.nix b/pkgs/applications/networking/instant-messengers/jami/client-gnome.nix deleted file mode 100644 index 8cb748f54059..000000000000 --- a/pkgs/applications/networking/instant-messengers/jami/client-gnome.nix +++ /dev/null @@ -1,64 +0,0 @@ -{ version -, src -, jami-meta -, stdenv -, lib -, pkg-config -, cmake -, wrapQtAppsHook -, wrapGAppsHook -, gtk3-x11 -, networkmanager # for libnm -, libayatana-appindicator -, libnotify -, clutter-gtk -, libcanberra-gtk3 -, webkitgtk -, qrencode -, jami-libclient -, qttools -}: - -stdenv.mkDerivation { - pname = "jami-client-gnome"; - inherit version src; - - sourceRoot = "source/client-gnome"; - - preConfigure = '' - echo ${version} > version.txt - ''; - - nativeBuildInputs = [ - pkg-config - cmake - wrapGAppsHook - wrapQtAppsHook - ]; - # To spare double wrapping - dontWrapGApps = true; - preFixup = '' - qtWrapperArgs+=("''${gappsWrapperArgs[@]}") - # Users that set CLUTTER_BACKEND=wayland in their default environment will - # encounter a segfault due to: - # https://git.jami.net/savoirfairelinux/jami-client-gnome/-/issues/1100 . - qtWrapperArgs+=("--unset" "CLUTTER_BACKEND") - ''; - - buildInputs = [ - qttools - jami-libclient - gtk3-x11 - networkmanager - libayatana-appindicator - libnotify - clutter-gtk - libcanberra-gtk3 - webkitgtk - qrencode - ]; - - meta = jami-meta // { - description = "The client based on GTK" + jami-meta.description; - }; -} diff --git a/pkgs/applications/networking/instant-messengers/jami/client-qt.nix b/pkgs/applications/networking/instant-messengers/jami/client-qt.nix index 0c952fd1ecad..74bfbc600689 100644 --- a/pkgs/applications/networking/instant-messengers/jami/client-qt.nix +++ b/pkgs/applications/networking/instant-messengers/jami/client-qt.nix @@ -1,8 +1,8 @@ { version , src , jami-meta -, mkDerivation , lib +, stdenv , pkg-config , cmake , networkmanager # for libnm @@ -10,18 +10,19 @@ , qttools # for translations , wrapQtAppsHook , libnotify -, qrencode -, qtwebengine +, qt5compat +, qtbase , qtdeclarative -, qtquickcontrols2 +, qrencode , qtmultimedia +, qtnetworkauth , qtsvg +, qtwebengine , qtwebchannel -, qtgraphicaleffects # no gui without this , jami-libclient }: -mkDerivation { +stdenv.mkDerivation { pname = "jami-client-qt"; inherit version src; @@ -33,6 +34,7 @@ mkDerivation { ''; nativeBuildInputs = [ + wrapQtAppsHook pkg-config cmake python3 @@ -43,14 +45,20 @@ mkDerivation { jami-libclient networkmanager libnotify + qtbase + qt5compat qrencode - qtwebengine + qtnetworkauth qtdeclarative - qtquickcontrols2 qtmultimedia qtsvg qtwebchannel - qtgraphicaleffects + qtwebengine + ]; + + qtWrapperArgs = [ + # With wayland the titlebar is not themed and the wmclass is wrong. + "--set-default QT_QPA_PLATFORM xcb" ]; meta = jami-meta // { diff --git a/pkgs/applications/networking/instant-messengers/jami/config/pjsip_args_common b/pkgs/applications/networking/instant-messengers/jami/config/pjsip_args_common new file mode 100644 index 000000000000..5c3f607e5c0e --- /dev/null +++ b/pkgs/applications/networking/instant-messengers/jami/config/pjsip_args_common @@ -0,0 +1,19 @@ +--disable-sound +--enable-video +--enable-ext-sound +--disable-speex-aec +--disable-g711-codec +--disable-l16-codec +--disable-gsm-codec +--disable-g722-codec +--disable-g7221-codec +--disable-speex-codec +--disable-ilbc-codec +--disable-opencore-amr +--disable-silk +--disable-sdl +--disable-ffmpeg +--disable-v4l2 +--disable-openh264 +--disable-resample +--disable-libwebrtc diff --git a/pkgs/applications/networking/instant-messengers/jami/config/pjsip_args_linux b/pkgs/applications/networking/instant-messengers/jami/config/pjsip_args_linux new file mode 100644 index 000000000000..d1292afe3a29 --- /dev/null +++ b/pkgs/applications/networking/instant-messengers/jami/config/pjsip_args_linux @@ -0,0 +1 @@ +--enable-epoll diff --git a/pkgs/applications/networking/instant-messengers/jami/daemon.nix b/pkgs/applications/networking/instant-messengers/jami/daemon.nix index f39b731132ea..635cc569e86f 100644 --- a/pkgs/applications/networking/instant-messengers/jami/daemon.nix +++ b/pkgs/applications/networking/instant-messengers/jami/daemon.nix @@ -58,16 +58,22 @@ let pjsip-jami = pjsip.overrideAttrs (old: let - src-args = import ./pjproject-src.nix; - version = lib.concatStrings (lib.lists.take 7 (lib.stringToCharacters src-args.rev)); patch-src = src + "/daemon/contrib/src/pjproject/"; in - { - inherit version; + rec { + version = "e1f389d0b905011e0cb62cbdf7a8b37fc1bcde1a"; - src = fetchFromGitHub src-args; + src = fetchFromGitHub { + owner = "savoirfairelinux"; + repo = "pjproject"; + rev = version; + sha256 = "sha256-6t+3b7pvvwi+VD05vxtujabEJmWmJTAeyD/Dapav10Y="; + }; patches = old.patches ++ (map (x: patch-src + x) (readLinesToList ./config/pjsip_patches)); + + configureFlags = (readLinesToList ./config/pjsip_args_common) + ++ lib.optionals stdenv.isLinux (readLinesToList ./config/pjsip_args_linux); }); opendht-jami = opendht.override { diff --git a/pkgs/applications/networking/instant-messengers/jami/default.nix b/pkgs/applications/networking/instant-messengers/jami/default.nix index ef8959b57a97..32b5a2663898 100644 --- a/pkgs/applications/networking/instant-messengers/jami/default.nix +++ b/pkgs/applications/networking/instant-messengers/jami/default.nix @@ -4,21 +4,21 @@ , fetchzip , jack , udev -, libsForQt5 +, qt6Packages }: -rec { - version = "20211223.2.37be4c3"; +let + version = "20220503.1550.0f35faa"; src = fetchzip { url = "https://dl.jami.net/release/tarballs/jami_${version}.tar.gz"; - sha256 = "1zw9azwmxr4991nq5kl527lbwlj7psrissgvrkl1kxxbfbdncbhh"; + hash = "sha256-iCmsgjgGogNjj1k0sYRqx59ZEwFZcJOeVGBNyBlcy1M="; stripRoot = false; postFetch = '' cd $out - mv ring-project/* ./ - rm -r ring-project.rst ring-project client-android client-ios client-macosx client-uwp + mv jami-project/* ./ + rm -r jami-project.rst jami-project client-android client-ios client-macosx client-uwp rm daemon/contrib/tarballs/* ''; }; @@ -30,12 +30,11 @@ rec { platforms = platforms.linux; maintainers = [ maintainers.linsui ]; }; - +in +rec { jami-daemon = callPackage ./daemon.nix { inherit version src udev jack jami-meta; }; - jami-libclient = libsForQt5.callPackage ./libclient.nix { inherit version src jami-meta; }; + jami-libclient = qt6Packages.callPackage ./libclient.nix { inherit version src jami-meta; }; - jami-client-gnome = libsForQt5.callPackage ./client-gnome.nix { inherit version src jami-meta; }; - - jami-client-qt = libsForQt5.callPackage ./client-qt.nix { inherit version src jami-meta; }; + jami-client-qt = qt6Packages.callPackage ./client-qt.nix { inherit version src jami-meta; }; } diff --git a/pkgs/applications/networking/instant-messengers/jami/libclient.nix b/pkgs/applications/networking/instant-messengers/jami/libclient.nix index b5ea7431b915..d998fe7a0612 100644 --- a/pkgs/applications/networking/instant-messengers/jami/libclient.nix +++ b/pkgs/applications/networking/instant-messengers/jami/libclient.nix @@ -22,6 +22,7 @@ stdenv.mkDerivation { buildInputs = [ jami-daemon + jami-daemon.ffmpeg ]; patches = [ diff --git a/pkgs/applications/networking/instant-messengers/jami/pjproject-src.nix b/pkgs/applications/networking/instant-messengers/jami/pjproject-src.nix deleted file mode 100644 index 76e88d887555..000000000000 --- a/pkgs/applications/networking/instant-messengers/jami/pjproject-src.nix +++ /dev/null @@ -1,6 +0,0 @@ -{ - owner = "savoirfairelinux"; - repo = "pjproject"; - rev = "e1f389d0b905011e0cb62cbdf7a8b37fc1bcde1a"; - sha256 = "0inpmyb6mhrzr0g309d6clkc99lddqdvyf9xajz0igvgp9pvgpza"; -} diff --git a/pkgs/applications/networking/instant-messengers/jami/update.sh b/pkgs/applications/networking/instant-messengers/jami/update.sh index 10d9bb885c35..ecf14e25ddaf 100755 --- a/pkgs/applications/networking/instant-messengers/jami/update.sh +++ b/pkgs/applications/networking/instant-messengers/jami/update.sh @@ -3,11 +3,14 @@ set -e -jami_dir="$( dirname "${BASH_SOURCE[0]}" )" +jami_dir=$(readlink -e $(dirname "${BASH_SOURCE[0]}")) + +cd $jami_dir/../../../../.. # Update src version and hash version=$(curl -s 'https://dl.jami.net/release/tarballs/?C=M;O=D' | sed -n -E 's/^.*jami_([0-9.a-f]+)\.tar\.gz.*$/\1/p' | head -n 1) -update-source-version jami-libclient "$version" --file=pkgs/applications/networking/instant-messengers/jami/default.nix + +update-source-version jami-libclient "$version" --file=$jami_dir/default.nix src=$(nix-build --no-out-link -A jami-libclient.src) @@ -43,8 +46,15 @@ echo "${pjsip_patches}" > "$config_dir/pjsip_patches" # Update pjsip version pjsip_version=$(sed -n -E 's/.*PJPROJECT_VERSION := ([0-9a-f]+).*/\1/p' ${src}/daemon/contrib/src/pjproject/rules.mak) -nix-prefetch fetchFromGitHub \ - --owner savoirfairelinux \ - --repo pjproject \ - --rev ${pjsip_version} \ - --output nix > "${jami_dir}/pjproject-src.nix" +update-source-version jami-daemon.pjsip "$pjsip_version" --file=pkgs/applications/networking/instant-messengers/jami/daemon.nix + +pjsip_rules="${src}/daemon/contrib/src/pjproject/rules.mak" + +# Update pjsip args +pjsip_args_common=$(sed -n '/PJPROJECT_OPTIONS :=/,/with-gnutls/p' ${pjsip_rules} | sed -n -E 's/.*(--[0-9a-z=_-]+).*\\/\1/p') +echo -e "Common args for pjsip:\n${pjsip_args_common}\n" +echo "${pjsip_args_common}" > "$config_dir/pjsip_args_common" + +pjsip_args_linux=$(sed -n '/HAVE_LINUX/,/endif/p' ${pjsip_rules} | sed -n -E 's/.*(--[0-9a-z=_-]+).*/\1/p') +echo -e "Linux args for pjsip:\n${pjsip_args_linux}\n" +echo "${pjsip_args_linux}" > "$config_dir/pjsip_args_linux" diff --git a/pkgs/top-level/aliases.nix b/pkgs/top-level/aliases.nix index 1e81ea80809e..aa9635959937 100644 --- a/pkgs/top-level/aliases.nix +++ b/pkgs/top-level/aliases.nix @@ -612,6 +612,7 @@ mapAliases ({ jack2Full = jack2; # moved from top-level 2021-03-14 + jami-client-gnome = throw "jami-client-gnome has been removed: abandoned upstream"; # Added 2022-05-15 jamomacore = throw "jamomacore has been removed: abandoned upstream"; # Added 2020-11-21 jbidwatcher = throw "jbidwatcher was discontinued in march 2021"; # Added 2021-03-15 jbuilder = throw "'jbuilder' has been renamed to/replaced by 'dune_1'"; # Converted to throw 2022-02-22 diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 51b8eb6f2688..36610c6cb721 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -35389,12 +35389,12 @@ with pkgs; btcdeb = callPackage ../applications/blockchains/btcdeb { }; - inherit (callPackage ../applications/networking/instant-messengers/jami { + jami = callPackages ../applications/networking/instant-messengers/jami { # TODO: remove once `udev` is `systemdMinimal` everywhere. udev = systemdMinimal; jack = libjack2; - }) - jami-daemon jami-libclient jami-client-gnome jami-client-qt; + }; + inherit (jami) jami-daemon jami-libclient jami-client-qt; jitsi-meet-electron = callPackage ../applications/networking/instant-messengers/jitsi-meet-electron { electron = electron_17; From 421ca6d67b2388d7d954d9cf171740f47f001ce7 Mon Sep 17 00:00:00 2001 From: Adam Joseph Date: Sun, 24 Apr 2022 20:30:34 -0700 Subject: [PATCH 051/336] gstreamer: add bluezSupport flag This allows the option of compiling gstreamer (and packages depending upon it) without bluetooth support. --- pkgs/development/libraries/gstreamer/bad/default.nix | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pkgs/development/libraries/gstreamer/bad/default.nix b/pkgs/development/libraries/gstreamer/bad/default.nix index 758c4b091cda..28bcbe9a74c4 100644 --- a/pkgs/development/libraries/gstreamer/bad/default.nix +++ b/pkgs/development/libraries/gstreamer/bad/default.nix @@ -93,6 +93,7 @@ , Foundation , MediaToolbox , enableGplPlugins ? true +, bluezSupport ? stdenv.isLinux }: stdenv.mkDerivation rec { @@ -181,8 +182,9 @@ stdenv.mkDerivation rec { mjpegtools faad2 x265 - ] ++ lib.optionals stdenv.isLinux [ + ] ++ lib.optionals bluezSupport [ bluez + ] ++ lib.optionals stdenv.isLinux [ libva # vaapi requires libva -> libdrm -> libpciaccess, which is Linux-only in nixpkgs wayland wayland-protocols @@ -264,12 +266,12 @@ stdenv.mkDerivation rec { "-Dgs=disabled" # depends on `google-cloud-cpp` "-Donnx=disabled" # depends on `libonnxruntime` not packaged in nixpkgs as of writing "-Dopenaptx=enabled" # since gstreamer-1.20.1 `libfreeaptx` is supported for circumventing the dubious license conflict with `libopenaptx` + "-Dbluez=${if bluezSupport then "enabled" else "disabled"}" ] ++ lib.optionals (!stdenv.isLinux) [ "-Dva=disabled" # see comment on `libva` in `buildInputs` ] ++ lib.optionals stdenv.isDarwin [ - "-Dbluez=disabled" "-Dchromaprint=disabled" "-Ddirectfb=disabled" "-Dflite=disabled" From 6868bb9ceb91799a700b0386dea3df17f99d68e1 Mon Sep 17 00:00:00 2001 From: Sergei Trofimovich Date: Sun, 5 Jun 2022 10:01:43 +0100 Subject: [PATCH 052/336] darwin.top: add -fcommon workaround Workaround build failure on -fno-common toolchains like upstream clang-11. Otherwise build fails as: duplicate symbol '_tsamp' in: main.o top.o --- pkgs/os-specific/darwin/apple-source-releases/top/default.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkgs/os-specific/darwin/apple-source-releases/top/default.nix b/pkgs/os-specific/darwin/apple-source-releases/top/default.nix index a2f912ca5782..ef766f7bd7f1 100644 --- a/pkgs/os-specific/darwin/apple-source-releases/top/default.nix +++ b/pkgs/os-specific/darwin/apple-source-releases/top/default.nix @@ -3,6 +3,9 @@ appleDerivation { nativeBuildInputs = [ xcbuildHook ]; buildInputs = [ apple_sdk.frameworks.IOKit ncurses libutil ]; + # Workaround build failure on -fno-common toolchains: + # duplicate symbol '_tsamp' in: main.o top.o + NIX_CFLAGS_COMPILE = "-fcommon"; NIX_LDFLAGS = "-lutil"; installPhase = '' install -D Products/Release/libtop.a $out/lib/libtop.a From e5cb0069141235c32c740b688355fbd640b84e80 Mon Sep 17 00:00:00 2001 From: Nick Cao Date: Sun, 5 Jun 2022 19:05:29 +0800 Subject: [PATCH 053/336] portaudio: fix cross compilation --- pkgs/development/libraries/portaudio/default.nix | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/pkgs/development/libraries/portaudio/default.nix b/pkgs/development/libraries/portaudio/default.nix index c1c76a900175..d96a85fb8336 100644 --- a/pkgs/development/libraries/portaudio/default.nix +++ b/pkgs/development/libraries/portaudio/default.nix @@ -3,6 +3,7 @@ , fetchurl , alsa-lib , pkg-config +, which , AudioUnit , AudioToolbox , CoreAudio @@ -18,7 +19,7 @@ stdenv.mkDerivation rec { sha256 = "1vrdrd42jsnffh6rq8ap2c6fr4g9fcld89z649fs06bwqx1bzvs7"; }; - nativeBuildInputs = [ pkg-config ]; + nativeBuildInputs = [ pkg-config which ]; buildInputs = lib.optional (!stdenv.isDarwin) alsa-lib; configureFlags = [ "--disable-mac-universal" "--enable-cxx" ]; @@ -34,6 +35,11 @@ stdenv.mkDerivation rec { # https://github.com/PortAudio/portaudio/commit/28d2781d9216115543aa3f0a0ffb7b4ee0fac551.patch enableParallelBuilding = false; + postPatch = '' + # workaround for the configure script which expects an absolute path + export AR=$(which $AR) + ''; + # not sure why, but all the headers seem to be installed by the make install installPhase = '' make install From 2923e72443fe791333ee6ec4e3244b60dfca1db5 Mon Sep 17 00:00:00 2001 From: Sergei Trofimovich Date: Sun, 5 Jun 2022 13:37:40 +0100 Subject: [PATCH 054/336] darwin.developer_cmds: add -fcommon workaround Workaround build failure on -fno-common toolchains like upstream clang-11. Otherwise build fails as: duplicate symbol '_btype_2' in:args.o pr_comment.o --- .../darwin/apple-source-releases/developer_cmds/default.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkgs/os-specific/darwin/apple-source-releases/developer_cmds/default.nix b/pkgs/os-specific/darwin/apple-source-releases/developer_cmds/default.nix index f2c4ec32146f..18233cfc5227 100644 --- a/pkgs/os-specific/darwin/apple-source-releases/developer_cmds/default.nix +++ b/pkgs/os-specific/darwin/apple-source-releases/developer_cmds/default.nix @@ -16,6 +16,10 @@ appleDerivation { --replace "/usr/bin/cpp" "$out/bin/clang-cpp" ''; + # Workaround build failure on -fno-common toolchains: + # duplicate symbol '_btype_2' in:args.o pr_comment.o + NIX_CFLAGS_COMPILE = "-fcommon"; + # temporary install phase until xcodebuild has "install" support installPhase = '' for f in Products/Release/*; do From 9e1c94057ca6152b32e7860b76b8f340a0e18f7c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Fri, 27 May 2022 15:39:03 +0200 Subject: [PATCH 055/336] rsync: adopt, greatly simplify package --- .../networking/sync/rsync/base.nix | 22 ----------- .../networking/sync/rsync/default.nix | 39 +++++++++++++------ .../networking/sync/rsync/rrsync.nix | 12 ++---- 3 files changed, 31 insertions(+), 42 deletions(-) delete mode 100644 pkgs/applications/networking/sync/rsync/base.nix diff --git a/pkgs/applications/networking/sync/rsync/base.nix b/pkgs/applications/networking/sync/rsync/base.nix deleted file mode 100644 index 27358c3ef590..000000000000 --- a/pkgs/applications/networking/sync/rsync/base.nix +++ /dev/null @@ -1,22 +0,0 @@ -{ lib, fetchurl, fetchpatch }: - -rec { - version = "3.2.4"; - src = fetchurl { - # signed with key 0048 C8B0 26D4 C96F 0E58 9C2F 6C85 9FB1 4B96 A8C5 - url = "mirror://samba/rsync/src/rsync-${version}.tar.gz"; - sha256 = "sha256-b3YYONCAUrC2V5z39nN9k+R/AfTaBMXSTTRHt/Kl+tE="; - }; - upstreamPatchTarball = fetchurl { - # signed with key 0048 C8B0 26D4 C96F 0E58 9C2F 6C85 9FB1 4B96 A8C5 - url = "mirror://samba/rsync/rsync-patches-${version}.tar.gz"; - sha256 = "sha256-cKWXWQr2xhzz0F1mNCn/n2D/4k5E+cc6TNxp69wTIqQ="; - }; - - meta = with lib; { - description = "Fast incremental file transfer utility"; - homepage = "https://rsync.samba.org/"; - license = licenses.gpl3Plus; - platforms = platforms.unix; - }; -} diff --git a/pkgs/applications/networking/sync/rsync/default.nix b/pkgs/applications/networking/sync/rsync/default.nix index 29016bc14af2..f47c9c75367d 100644 --- a/pkgs/applications/networking/sync/rsync/default.nix +++ b/pkgs/applications/networking/sync/rsync/default.nix @@ -20,27 +20,32 @@ , nixosTests }: -let - base = import ./base.nix { inherit lib fetchurl fetchpatch; }; -in stdenv.mkDerivation rec { pname = "rsync"; - version = base.version; + version = "3.2.4"; - mainSrc = base.src; + srcs = [ + (fetchurl { + # signed with key 0048 C8B0 26D4 C96F 0E58 9C2F 6C85 9FB1 4B96 A8C5 + url = "mirror://samba/rsync/src/rsync-${version}.tar.gz"; + sha256 = "sha256-b3YYONCAUrC2V5z39nN9k+R/AfTaBMXSTTRHt/Kl+tE="; + }) + ] ++ lib.optional enableCopyDevicesPatch (fetchurl { + # signed with key 0048 C8B0 26D4 C96F 0E58 9C2F 6C85 9FB1 4B96 A8C5 + url = "mirror://samba/rsync/rsync-patches-${version}.tar.gz"; + sha256 = "1wj21v57v135n6fnm2m2dxmb9lhrrg62jgkggldp1gb7d6s4arny"; + }); - patchesSrc = base.upstreamPatchTarball; - - srcs = [ mainSrc ] ++ lib.optional enableCopyDevicesPatch patchesSrc; patches = lib.optional enableCopyDevicesPatch "./patches/copy-devices.diff"; + nativeBuildInputs = [ perl ]; + buildInputs = [ libiconv zlib popt ] ++ lib.optional enableACLs acl ++ lib.optional enableZstd zstd ++ lib.optional enableLZ4 lz4 ++ lib.optional enableOpenSSL openssl ++ lib.optional enableXXHash xxHash; - nativeBuildInputs = [ perl ]; configureFlags = [ "--with-nobody-group=nogroup" @@ -48,12 +53,22 @@ stdenv.mkDerivation rec { # disable the included zlib explicitly as it otherwise still compiles and # links them even. "--with-included-zlib=no" - ]; + ] + # Work around issue with cross-compilation: + # configure.sh: error: cannot run test program while cross compiling + # Remove once 3.2.4 or more recent is released. + # The following PR should fix the cross-compilation issue. + # Test using `nix-build -A pkgsCross.aarch64-multiplatform.rsync`. + # https://github.com/WayneD/rsync/commit/b7fab6f285ff0ff3816b109a8c3131b6ded0b484 + ++ lib.optional (stdenv.hostPlatform != stdenv.buildPlatform) "--enable-simd=no"; passthru.tests = { inherit (nixosTests) rsyncd; }; - meta = base.meta // { - description = "A fast incremental file transfer utility"; + meta = with lib; { + description = "Fast incremental file transfer utility"; + homepage = "https://rsync.samba.org/"; + license = licenses.gpl3Plus; + platforms = platforms.unix; maintainers = with lib.maintainers; [ ehmry kampfschlaefer ]; }; } diff --git a/pkgs/applications/networking/sync/rsync/rrsync.nix b/pkgs/applications/networking/sync/rsync/rrsync.nix index bb83a9e3cd4e..d1e6b6ad96eb 100644 --- a/pkgs/applications/networking/sync/rsync/rrsync.nix +++ b/pkgs/applications/networking/sync/rsync/rrsync.nix @@ -1,13 +1,8 @@ { lib, stdenv, fetchurl, perl, rsync, fetchpatch }: -let - base = import ./base.nix { inherit lib fetchurl fetchpatch; }; -in stdenv.mkDerivation { pname = "rrsync"; - version = base.version; - - src = base.src; + inherit (rsync) version srcs; buildInputs = [ rsync perl ]; @@ -16,6 +11,8 @@ stdenv.mkDerivation { dontConfigure = true; dontBuild = true; + inherit (rsync) patches; + postPatch = '' substituteInPlace support/rrsync --replace /usr/bin/rsync ${rsync}/bin/rsync ''; @@ -26,8 +23,7 @@ stdenv.mkDerivation { chmod a+x $out/bin/rrsync ''; - meta = base.meta // { + meta = rsync.meta // { description = "A helper to run rsync-only environments from ssh-logins"; - maintainers = [ lib.maintainers.kampfschlaefer ]; }; } From ce4fc55f31f04e90e56eff4cc95cf38e4f3f8c21 Mon Sep 17 00:00:00 2001 From: pacien Date: Sun, 5 Jun 2022 23:00:56 +0200 Subject: [PATCH 056/336] matrix-commander: unstable-2021-08-05 -> 2.30.0 The project switched to pyproject, allowing the use of `buildPythonApplication` instead of `mkDerivation`. Some of the modules listed as dependencies but shipping with Python itself had to be patched out. --- .../matrix-commander/default.nix | 69 ++++++++++++------- pkgs/top-level/all-packages.nix | 2 +- 2 files changed, 47 insertions(+), 24 deletions(-) diff --git a/pkgs/applications/networking/instant-messengers/matrix-commander/default.nix b/pkgs/applications/networking/instant-messengers/matrix-commander/default.nix index ad3248fabba9..576ebf1075b5 100644 --- a/pkgs/applications/networking/instant-messengers/matrix-commander/default.nix +++ b/pkgs/applications/networking/instant-messengers/matrix-commander/default.nix @@ -1,38 +1,61 @@ -{ stdenv, lib, fetchFromGitHub, cacert, python3 }: +{ lib +, fetchFromGitHub +, buildPythonApplication +, cacert +, setuptools +, matrix-nio +, python-magic +, markdown +, pillow +, urllib3 +, aiofiles +, notify2 +, dbus-python +, python-olm +}: -stdenv.mkDerivation { +buildPythonApplication { pname = "matrix-commander"; - version = "unstable-2021-08-05"; + version = "2.30.0"; src = fetchFromGitHub { owner = "8go"; repo = "matrix-commander"; - rev = "7ab3fd9a0ef4eb19d882cb3701d2025b4d41b63a"; - sha256 = "sha256-WWf7GbJxGlqIdsS1d0T1DO0WN2RBepHGgJrl/nt7UIg="; + rev = "77cf433af0d2e63a88b8914026795a0da5486b77"; + sha256 = "sha256-qUyaN0syP2lLRJLCAD5nCWfwR/CW4t/g40a8xDYseIg="; }; - buildInputs = [ - cacert - (python3.withPackages(ps: with ps; [ - matrix-nio - magic - markdown - pillow - urllib3 - aiofiles - notify2 - ]))]; + format = "pyproject"; - installPhase = '' - runHook preInstall + postPatch = '' + # Dependencies already bundled with Python + sed -i \ + -e '/uuid/d' \ + -e '/argparse/d' \ + -e '/asyncio/d' \ + -e '/datetime/d' \ + setup.cfg requirements.txt - mkdir -p $out/bin - cp $src/matrix-commander.py $out/bin/matrix-commander - chmod +x $out/bin/matrix-commander - - runHook postInstall + # Dependencies not correctly detected + sed -i \ + -e '/dbus-python/d' \ + setup.cfg requirements.txt ''; + propagatedBuildInputs = [ + cacert + setuptools + matrix-nio + python-magic + markdown + pillow + urllib3 + aiofiles + notify2 + dbus-python + python-olm + ]; + meta = with lib; { description = "Simple but convenient CLI-based Matrix client app for sending and receiving"; homepage = "https://github.com/8go/matrix-commander"; diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index daa30701e59c..4cdff0b1a0af 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -28029,7 +28029,7 @@ with pkgs; canonicaljson; }; - matrix-commander = callPackage ../applications/networking/instant-messengers/matrix-commander { }; + matrix-commander = python3Packages.callPackage ../applications/networking/instant-messengers/matrix-commander { }; matrix-dl = callPackage ../applications/networking/instant-messengers/matrix-dl { }; From 06b472c49f60cbc452950718a960ac4cba14c9d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20=C4=8Cun=C3=A1t?= Date: Sun, 5 Jun 2022 18:01:40 +0200 Subject: [PATCH 057/336] gcc9: 9.3.0 -> 9.5.0 The issue from 9.4.0 on aarch64-linux seems gone. --- pkgs/development/compilers/gcc/9/default.nix | 24 ++++---------------- 1 file changed, 4 insertions(+), 20 deletions(-) diff --git a/pkgs/development/compilers/gcc/9/default.nix b/pkgs/development/compilers/gcc/9/default.nix index 2ecfa1bb1cf0..30ae18e49173 100644 --- a/pkgs/development/compilers/gcc/9/default.nix +++ b/pkgs/development/compilers/gcc/9/default.nix @@ -58,22 +58,12 @@ with lib; with builtins; let majorVersion = "9"; - /* - If you update, please build on aarch64-linux - and check braces adjacent to `cplusplus` lines in file - ./result/lib/gcc/aarch64-unknown-linux-gnu/9.*.0/include/arm_acle.h - */ - version = "${majorVersion}.3.0"; + version = "${majorVersion}.5.0"; inherit (stdenv) buildPlatform hostPlatform targetPlatform; patches = - # Fix ICE: Max. number of generated reload insns per insn is achieved (90) - # - # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96796 - # - # This patch can most likely be removed by a post 9.3.0-release. - [ ./avoid-cycling-subreg-reloads.patch ./gcc9-asan-glibc-2.34.patch ] + [ ] ++ optional (targetPlatform != hostPlatform) ../libstdc++-target.patch ++ optional targetPlatform.isNetBSD ../libstdc++-netbsd-ctypes.patch ++ optional noSysDirs ../no-sys-dirs.patch @@ -83,19 +73,13 @@ let majorVersion = "9"; sha256 = ""; # TODO: uncomment and check hash when available. }) */ ++ optional langAda ../gnat-cflags.patch - ++ optional langAda (fetchpatch { - name = "gnat-glibc-234.diff"; - url = "https://github.com/gcc-mirror/gcc/commit/331763de7d4850702a0f67298f36017c73cdb103.diff"; - sha256 = "eS4B7vJasnv2N+5v5yB8/iDpKPX8CJDAy2xabWWj+aU="; - }) ++ optional langD ../libphobos.patch ++ optional langFortran ../gfortran-driving.patch ++ optional (targetPlatform.libc == "musl" && targetPlatform.isPower) ../ppc-musl.patch # Obtain latest patch with ../update-mcfgthread-patches.sh ++ optional (!crossStageStatic && targetPlatform.isMinGW) ./Added-mcf-thread-model-support-from-mcfgthread.patch - - ++ [ ../libsanitizer-no-cyclades-9.patch ]; + ; /* Cross-gcc settings (build == host != target) */ crossMingw = targetPlatform != hostPlatform && targetPlatform.libc == "msvcrt"; @@ -112,7 +96,7 @@ stdenv.mkDerivation ({ src = fetchurl { url = "mirror://gcc/releases/gcc-${version}/gcc-${version}.tar.xz"; - sha256 = "1la2yy27ziasyf0jvzk58y1i5b5bq2h176qil550bxhifs39gqbi"; + sha256 = "13ygjmd938m0wmy946pxdhz9i1wq7z4w10l6pvidak0xxxj9yxi7"; }; inherit patches; From a9bb8e4c98da7ab71ca36ae7d8a3bb71eae70f84 Mon Sep 17 00:00:00 2001 From: Brian McKenna Date: Mon, 6 Jun 2022 12:27:23 +1000 Subject: [PATCH 058/336] unclutter-xfixes: fix cross-compilation --- pkgs/tools/misc/unclutter-xfixes/default.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkgs/tools/misc/unclutter-xfixes/default.nix b/pkgs/tools/misc/unclutter-xfixes/default.nix index 710932af5e92..d04846637a0c 100644 --- a/pkgs/tools/misc/unclutter-xfixes/default.nix +++ b/pkgs/tools/misc/unclutter-xfixes/default.nix @@ -16,6 +16,9 @@ stdenv.mkDerivation rec { nativeBuildInputs = [ pkg-config asciidoc libxslt docbook_xsl ]; buildInputs = [ xlibsWrapper libev libXi libXfixes ]; + prePatch = '' + substituteInPlace Makefile --replace 'PKG_CONFIG =' 'PKG_CONFIG ?=' + ''; makeFlags = [ "CC=${stdenv.cc.targetPrefix}cc" ]; installFlags = [ "PREFIX=$(out)" ]; From 11ea0e99b713744b5e76141fb26a3d4b4d16c507 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Thu, 26 May 2022 01:02:36 +0200 Subject: [PATCH 059/336] python3: 3.9 -> 3.10 Defaults python3 to Python 3.10 while still keeping Python 3.9 around until after the 22.11 release. --- pkgs/top-level/all-packages.nix | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 66c78c6783d2..6f3eadb8701b 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -14426,11 +14426,11 @@ with pkgs; # available as `pythonPackages.tkinter` and can be used as any other Python package. # When switching these sets, please update docs at ../../doc/languages-frameworks/python.md python2 = python27; - python3 = python39; + python3 = python310; # pythonPackages further below, but assigned here because they need to be in sync python2Packages = dontRecurseIntoAttrs python27Packages; - python3Packages = dontRecurseIntoAttrs python39Packages; + python3Packages = dontRecurseIntoAttrs python310Packages; pypy = pypy2; pypy2 = pypy27; @@ -14472,6 +14472,12 @@ with pkgs; bluezSupport = true; x11Support = true; }; + python310Full = python310.override { + self = python310Full; + pythonAttr = "python310Full"; + bluezSupport = true; + x11Support = true; + }; pythonInterpreters = callPackage ./../development/interpreters/python { }; inherit (pythonInterpreters) python27 python37 python38 python39 python310 python311 python3Minimal pypy27 pypy38 pypy37 rustpython; From f1ac3fa330a57dbbffe3e88d9435e6e9fefa3ee8 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Sun, 29 May 2022 20:17:02 +0200 Subject: [PATCH 060/336] python3Minimal: 3.9 -> 3.10 --- pkgs/development/interpreters/python/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/development/interpreters/python/default.nix b/pkgs/development/interpreters/python/default.nix index 518bb0ec0f86..e902fdcece3b 100644 --- a/pkgs/development/interpreters/python/default.nix +++ b/pkgs/development/interpreters/python/default.nix @@ -230,7 +230,7 @@ in { enableOptimizations = false; enableLTO = false; mimetypesSupport = false; - } // sources.python39)).overrideAttrs(old: { + } // sources.python310)).overrideAttrs(old: { # TODO(@Artturin): Add this to the main cpython expr strictDeps = true; pname = "python3-minimal"; From 4566beb39019f6343dd9227b1b53491a9cfb726f Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Thu, 26 May 2022 01:03:43 +0200 Subject: [PATCH 061/336] doc/python: update python version references --- doc/languages-frameworks/python.section.md | 67 +++++++++++----------- 1 file changed, 35 insertions(+), 32 deletions(-) diff --git a/doc/languages-frameworks/python.section.md b/doc/languages-frameworks/python.section.md index 3211ae616a1c..09e177c7a482 100644 --- a/doc/languages-frameworks/python.section.md +++ b/doc/languages-frameworks/python.section.md @@ -8,9 +8,9 @@ Several versions of the Python interpreter are available on Nix, as well as a high amount of packages. The attribute `python3` refers to the default -interpreter, which is currently CPython 3.9. The attribute `python` refers to +interpreter, which is currently CPython 3.10. The attribute `python` refers to CPython 2.7 for backwards-compatibility. It is also possible to refer to -specific versions, e.g. `python38` refers to CPython 3.8, and `pypy` refers to +specific versions, e.g. `python39` refers to CPython 3.9, and `pypy` refers to the default PyPy interpreter. Python is used a lot, and in different ways. This affects also how it is @@ -26,10 +26,10 @@ however, are in separate sets, with one set per interpreter version. The interpreters have several common attributes. One of these attributes is `pkgs`, which is a package set of Python libraries for this specific interpreter. E.g., the `toolz` package corresponding to the default interpreter -is `python.pkgs.toolz`, and the CPython 3.8 version is `python38.pkgs.toolz`. +is `python.pkgs.toolz`, and the CPython 3.9 version is `python39.pkgs.toolz`. The main package set contains aliases to these package sets, e.g. -`pythonPackages` refers to `python.pkgs` and `python38Packages` to -`python38.pkgs`. +`pythonPackages` refers to `python.pkgs` and `python39Packages` to +`python39.pkgs`. #### Installing Python and packages {#installing-python-and-packages} @@ -54,7 +54,7 @@ with `python.buildEnv` or `python.withPackages` where the interpreter and other executables are wrapped to be able to find each other and all of the modules. In the following examples we will start by creating a simple, ad-hoc environment -with a nix-shell that has `numpy` and `toolz` in Python 3.8; then we will create +with a nix-shell that has `numpy` and `toolz` in Python 3.9; then we will create a re-usable environment in a single-file Python script; then we will create a full Python environment for development with this same environment. @@ -70,10 +70,10 @@ temporary shell session with a Python and a *precise* list of packages (plus their runtime dependencies), with no other Python packages in the Python interpreter's scope. -To create a Python 3.8 session with `numpy` and `toolz` available, run: +To create a Python 3.9 session with `numpy` and `toolz` available, run: ```sh -$ nix-shell -p 'python38.withPackages(ps: with ps; [ numpy toolz ])' +$ nix-shell -p 'python39.withPackages(ps: with ps; [ numpy toolz ])' ``` By default `nix-shell` will start a `bash` session with this interpreter in our @@ -81,8 +81,8 @@ By default `nix-shell` will start a `bash` session with this interpreter in our ```Python console [nix-shell:~/src/nixpkgs]$ python3 -Python 3.8.1 (default, Dec 18 2019, 19:06:26) -[GCC 9.2.0] on linux +Python 3.9.12 (main, Mar 23 2022, 21:36:19) +[GCC 11.3.0] on linux Type "help", "copyright", "credits" or "license" for more information. >>> import numpy; import toolz ``` @@ -102,13 +102,16 @@ will still get 1 wrapped Python interpreter. We can start the interpreter directly like so: ```sh -$ nix-shell -p 'python38.withPackages(ps: with ps; [ numpy toolz requests ])' --run python3 -these derivations will be built: - /nix/store/xbdsrqrsfa1yva5s7pzsra8k08gxlbz1-python3-3.8.1-env.drv -building '/nix/store/xbdsrqrsfa1yva5s7pzsra8k08gxlbz1-python3-3.8.1-env.drv'... -created 277 symlinks in user environment -Python 3.8.1 (default, Dec 18 2019, 19:06:26) -[GCC 9.2.0] on linux +$ nix-shell -p "python39.withPackages (ps: with ps; [ numpy toolz requests ])" --run python3 +this derivation will be built: + /nix/store/mpn7k6bkjl41fm51342rafaqfsl10qs4-python3-3.9.12-env.drv +this path will be fetched (0.09 MiB download, 0.41 MiB unpacked): + /nix/store/5gaiacnzi096b6prc6aa1pwrhncmhc8b-python3.9-toolz-0.11.2 +copying path '/nix/store/5gaiacnzi096b6prc6aa1pwrhncmhc8b-python3.9-toolz-0.11.2' from 'https://cache.nixos.org'... +building '/nix/store/mpn7k6bkjl41fm51342rafaqfsl10qs4-python3-3.9.12-env.drv'... +created 279 symlinks in user environment +Python 3.9.12 (main, Mar 23 2022, 21:36:19) +[GCC 11.3.0] on linux Type "help", "copyright", "credits" or "license" for more information. >>> import requests >>> @@ -147,7 +150,7 @@ Executing this script requires a `python3` that has `numpy`. Using what we learn in the previous section, we could startup a shell and just run it like so: ```ShellSession -$ nix-shell -p 'python38.withPackages(ps: with ps; [ numpy ])' --run 'python3 foo.py' +$ nix-shell -p 'python39.withPackages(ps: with ps; [ numpy ])' --run 'python3 foo.py' The dot product of [1 2] and [3 4] is: 11 ``` @@ -210,12 +213,12 @@ create a single script with Python dependencies, but in the course of normal development we're usually working in an entire package repository. As explained in the Nix manual, `nix-shell` can also load an expression from a -`.nix` file. Say we want to have Python 3.8, `numpy` and `toolz`, like before, +`.nix` file. Say we want to have Python 3.9, `numpy` and `toolz`, like before, in an environment. We can add a `shell.nix` file describing our dependencies: ```nix with import {}; -(python38.withPackages (ps: [ps.numpy ps.toolz])).env +(python39.withPackages (ps: [ps.numpy ps.toolz])).env ``` And then at the command line, just typing `nix-shell` produces the same @@ -229,7 +232,7 @@ What's happening here? imports the `` function, `{}` calls it and the `with` statement brings all attributes of `nixpkgs` in the local scope. These attributes form the main package set. -2. Then we create a Python 3.8 environment with the `withPackages` function, as before. +2. Then we create a Python 3.9 environment with the `withPackages` function, as before. 3. The `withPackages` function expects us to provide a function as an argument that takes the set of all Python packages and returns a list of packages to include in the environment. Here, we select the packages `numpy` and `toolz` @@ -240,7 +243,7 @@ To combine this with `mkShell` you can: ```nix with import {}; let - pythonEnv = python38.withPackages (ps: [ + pythonEnv = python39.withPackages (ps: [ ps.numpy ps.toolz ]); @@ -378,8 +381,8 @@ information. The output of the function is a derivation. An expression for `toolz` can be found in the Nixpkgs repository. As explained in the introduction of this Python section, a derivation of `toolz` is available -for each interpreter version, e.g. `python38.pkgs.toolz` refers to the `toolz` -derivation corresponding to the CPython 3.8 interpreter. +for each interpreter version, e.g. `python39.pkgs.toolz` refers to the `toolz` +derivation corresponding to the CPython 3.9 interpreter. The above example works when you're directly working on `pkgs/top-level/python-packages.nix` in the Nixpkgs repository. Often though, @@ -392,11 +395,11 @@ and adds it along with a `numpy` package to a Python environment. with import {}; ( let - my_toolz = python38.pkgs.buildPythonPackage rec { + my_toolz = python39.pkgs.buildPythonPackage rec { pname = "toolz"; version = "0.10.0"; - src = python38.pkgs.fetchPypi { + src = python39.pkgs.fetchPypi { inherit pname version; sha256 = "08fdd5ef7c96480ad11c12d472de21acd32359996f69a5259299b540feba4560"; }; @@ -414,7 +417,7 @@ with import {}; ``` Executing `nix-shell` will result in an environment in which you can use -Python 3.8 and the `toolz` package. As you can see we had to explicitly mention +Python 3.9 and the `toolz` package. As you can see we had to explicitly mention for which Python version we want to build a package. So, what did we do here? Well, we took the Nix expression that we used earlier @@ -742,7 +745,7 @@ If we create a `shell.nix` file which calls `buildPythonPackage`, and if `src` is a local source, and if the local source has a `setup.py`, then development mode is activated. -In the following example we create a simple environment that has a Python 3.8 +In the following example we create a simple environment that has a Python 3.9 version of our package in it, as well as its dependencies and other packages we like to have in the environment, all specified with `propagatedBuildInputs`. Indeed, we can just add any package we like to have in our environment to @@ -750,7 +753,7 @@ Indeed, we can just add any package we like to have in our environment to ```nix with import {}; -with python38Packages; +with python39Packages; buildPythonPackage rec { name = "mypackage"; @@ -828,9 +831,9 @@ and in this case the `python38` interpreter is automatically used. ### Interpreters {#interpreters} -Versions 2.7, 3.7, 3.8 and 3.9 of the CPython interpreter are available as -respectively `python27`, `python37`, `python38` and `python39`. The -aliases `python2` and `python3` correspond to respectively `python27` and +Versions 2.7, 3.7, 3.8, 3.9 and 3.10 of the CPython interpreter are available +as respectively `python27`, `python37`, `python38`, `python39` and `python310`. +The aliases `python2` and `python3` correspond to respectively `python27` and `python39`. The attribute `python` maps to `python2`. The PyPy interpreters compatible with Python 2.7 and 3 are available as `pypy27` and `pypy3`, with aliases `pypy2` mapping to `pypy27` and `pypy` mapping to `pypy2`. The Nix From a15f7ddc2847f1c7c865288d9db32611b1d3297b Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Thu, 2 Jun 2022 00:03:36 +0200 Subject: [PATCH 062/336] spidermonkey_78: pin python39 Because the configure script hasn't been update to work with Python 3.10 and never will. Spidermonkey 78 is EOL. Traceback (most recent call last): File "/build/firefox-78.15.0/obj/../js/src/../../configure.py", line 25, in from mozbuild.configure import ( File "/build/firefox-78.15.0/python/mozbuild/mozbuild/configure/__init__.py", line 33, in from mozbuild.util import ( File "/build/firefox-78.15.0/python/mozbuild/mozbuild/util.py", line 760, in class HierarchicalStringList(object): File "/build/firefox-78.15.0/python/mozbuild/mozbuild/util.py", line 785, in HierarchicalStringList class StringListAdaptor(collections.Sequence): AttributeError: module 'collections' has no attribute 'Sequence' --- pkgs/development/interpreters/spidermonkey/78.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/interpreters/spidermonkey/78.nix b/pkgs/development/interpreters/spidermonkey/78.nix index f2a68158266b..0ce007057a23 100644 --- a/pkgs/development/interpreters/spidermonkey/78.nix +++ b/pkgs/development/interpreters/spidermonkey/78.nix @@ -4,7 +4,7 @@ , autoconf213 , pkg-config , perl -, python3 +, python39 , zip , buildPackages , which @@ -54,7 +54,7 @@ stdenv.mkDerivation rec { rustc.llvmPackages.llvm # for llvm-objdump perl pkg-config - python3 + python39 rust-cbindgen rustc which From 7986ff22a0b5c2eed30066860d2516546ab4ff59 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Thu, 2 Jun 2022 01:05:39 +0200 Subject: [PATCH 063/336] python3Packages.gyp: 2020-05-12 -> unstable-2022-04-01 --- .../python-modules/gyp/default.nix | 20 +++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/pkgs/development/python-modules/gyp/default.nix b/pkgs/development/python-modules/gyp/default.nix index e98d844a33e3..ca9a8dc5a2d7 100644 --- a/pkgs/development/python-modules/gyp/default.nix +++ b/pkgs/development/python-modules/gyp/default.nix @@ -1,16 +1,19 @@ -{ lib, stdenv +{ lib +, stdenv , buildPythonPackage , fetchFromGitiles +, six +, python }: buildPythonPackage { pname = "gyp"; - version = "2020-05-12"; + version = "unstable-2022-04-01"; src = fetchFromGitiles { url = "https://chromium.googlesource.com/external/gyp"; - rev = "caa60026e223fc501e8b337fd5086ece4028b1c6"; - sha256 = "0r9phq5yrmj968vdvy9vivli35wn1j9a6iwshp69wl7q4p0x8q2b"; + rev = "9ecf45e37677743503342ee4c6a76eaee80e4a7f"; + hash = "sha256-LUlF2VhRnuDwJLdITgmXIQV/IuKdx1KXQkiPVHKrl4Q="; }; patches = lib.optionals stdenv.isDarwin [ @@ -18,11 +21,16 @@ buildPythonPackage { ./no-xcode.patch ]; + propagatedBuildInputs = [ + six + ]; + + pythonImportsCheck = [ "gyp" "gyp.generator" ]; + meta = with lib; { description = "A tool to generate native build files"; - homepage = "https://chromium.googlesource.com/external/gyp/+/master/README.md"; + homepage = "https://gyp.gsrc.io"; license = licenses.bsd3; maintainers = with maintainers; [ codyopel ]; }; - } From 4571d1db96a7ffeb635ded9afa887d88b5e824dc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Wed, 1 Jun 2022 19:42:40 +0200 Subject: [PATCH 064/336] python310Packages.asgiref: 3.5.0 -> 3.5.2 --- pkgs/development/python-modules/asgiref/default.nix | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/pkgs/development/python-modules/asgiref/default.nix b/pkgs/development/python-modules/asgiref/default.nix index 2ea9f4130f97..4ccbe3175cc8 100644 --- a/pkgs/development/python-modules/asgiref/default.nix +++ b/pkgs/development/python-modules/asgiref/default.nix @@ -6,11 +6,10 @@ , pytest-asyncio , pytestCheckHook , pythonOlder -, fetchpatch }: buildPythonPackage rec { - version = "3.5.0"; + version = "3.5.2"; pname = "asgiref"; format = "setuptools"; @@ -20,17 +19,9 @@ buildPythonPackage rec { owner = "django"; repo = pname; rev = version; - sha256 = "sha256-eWDsd8iWK1C/X3t/fKAM1i4hyTM/daGTd8CDSgDTL/U="; + sha256 = "sha256-56suF63ePRDprqODhVIPCEGiO8UGgWrpwg2wYEs6OOE="; }; - patches = [ - (fetchpatch { - name = "remove-sock-nonblock-in-tests.patch"; - url = "https://github.com/django/asgiref/commit/d451a724c93043b623e83e7f86743bbcd9a05c45.patch"; - sha256 = "0whdsn5isln4dqbqqngvsy4yxgaqgpnziz0cndj1zdxim8cdicj7"; - }) - ]; - propagatedBuildInputs = [ async-timeout ]; From fa3f5e15246ff9539b1aff4f1b869f3d08c850d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Wed, 1 Jun 2022 18:34:19 +0200 Subject: [PATCH 065/336] python310Packages.astroid: 2.11.2 -> 2.11.4, adopt --- .../python-modules/astroid/default.nix | 22 +++++++++---------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/pkgs/development/python-modules/astroid/default.nix b/pkgs/development/python-modules/astroid/default.nix index 539787403c6e..dc28b10d7b9d 100644 --- a/pkgs/development/python-modules/astroid/default.nix +++ b/pkgs/development/python-modules/astroid/default.nix @@ -5,17 +5,18 @@ , pythonOlder , isPyPy , lazy-object-proxy -, wrapt +, setuptools +, setuptools-scm , typing-extensions , typed-ast -, pytestCheckHook -, setuptools-scm , pylint +, pytestCheckHook +, wrapt }: buildPythonPackage rec { pname = "astroid"; - version = "2.11.2"; # Check whether the version is compatible with pylint + version = "2.11.5"; # Check whether the version is compatible with pylint disabled = pythonOlder "3.6.2"; @@ -23,7 +24,7 @@ buildPythonPackage rec { owner = "PyCQA"; repo = pname; rev = "v${version}"; - sha256 = "sha256-adnvJCchsMWQxsIlenndUb6Mw1MgCNAanZcTmssmsEc="; + sha256 = "sha256-GKda3hNdOrsd11pi+6NpYodW4TAgSvqbv2hF4GaIvtM="; }; SETUPTOOLS_SCM_PRETEND_VERSION = version; @@ -34,19 +35,19 @@ buildPythonPackage rec { propagatedBuildInputs = [ lazy-object-proxy + setuptools wrapt ] ++ lib.optionals (pythonOlder "3.10") [ typing-extensions - ] ++ lib.optional (!isPyPy && pythonOlder "3.8") typed-ast; + ] ++ lib.optionals (!isPyPy && pythonOlder "3.8") [ + typed-ast + ]; checkInputs = [ pytestCheckHook ]; disabledTests = [ - # assert (1, 1) == (1, 16) - "test_end_lineno_string" - ] ++ lib.optionals (pythonAtLeast "3.10") [ # AssertionError: Lists differ: ['ABC[16 chars]yBase', 'Final', 'Generic', 'MyProtocol', 'Protocol', 'object'] != ['ABC[16 chars]yBase', 'Final', 'Generic', 'MyProtocol', 'object'] "test_mro_typing_extensions" ]; @@ -59,7 +60,6 @@ buildPythonPackage rec { description = "An abstract syntax tree for Python with inference support"; homepage = "https://github.com/PyCQA/astroid"; license = licenses.lgpl21Plus; - platforms = platforms.all; - maintainers = with maintainers; [ ]; + maintainers = with maintainers; [ SuperSandro2000 ]; }; } From 374f134e245c0578f9f9ee940b7802ce2d832a6a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Wed, 1 Jun 2022 18:34:56 +0200 Subject: [PATCH 066/336] python310Packages.pylint: 2.13.5 -> 2.14.0, adopt --- .../python-modules/pylint/default.nix | 22 +++++++++++++------ 1 file changed, 15 insertions(+), 7 deletions(-) diff --git a/pkgs/development/python-modules/pylint/default.nix b/pkgs/development/python-modules/pylint/default.nix index 9bb6cdf900df..54906b8c7f40 100644 --- a/pkgs/development/python-modules/pylint/default.nix +++ b/pkgs/development/python-modules/pylint/default.nix @@ -11,6 +11,7 @@ , mccabe , platformdirs , tomli +, tomlkit , typing-extensions , GitPython , pytest-timeout @@ -20,16 +21,16 @@ buildPythonPackage rec { pname = "pylint"; - version = "2.13.5"; + version = "2.14.0"; format = "setuptools"; - disabled = pythonOlder "3.6.2"; + disabled = pythonOlder "3.7.2"; src = fetchFromGitHub { owner = "PyCQA"; repo = pname; rev = "v${version}"; - sha256 = "sha256-FB99vmUtoTc0cTjDUSbx80Tesh0vASigSpPktrDYk08="; + sha256 = "sha256-nFgSI7Dk+/DEoeSkd3Pv+a/MtZPja89O3BrxrbqcgTo="; }; nativeBuildInputs = [ @@ -42,6 +43,7 @@ buildPythonPackage rec { isort mccabe platformdirs + tomlkit ] ++ lib.optionals (pythonOlder "3.11") [ tomli ] ++ lib.optionals (pythonOlder "3.9") [ @@ -65,9 +67,7 @@ buildPythonPackage rec { dontUseSetuptoolsCheck = true; - # calls executable in one of the tests preCheck = '' - export PATH=$PATH:$out/bin export HOME=$TEMPDIR ''; @@ -78,7 +78,15 @@ buildPythonPackage rec { "tests/pyreverse/test_writer.py" ]; - disabledTests = lib.optionals stdenv.isDarwin [ + disabledTests = [ + # AssertionError when self executing and checking output + # expected output looks like it should match though + "test_invocation_of_pylint_config" + "test_generate_rcfile" + "test_generate_toml_config" + "test_help_msg" + "test_output_of_callback_options" + ] ++ lib.optionals stdenv.isDarwin [ "test_parallel_execution" "test_py3k_jobs_option" ]; @@ -96,6 +104,6 @@ buildPythonPackage rec { - epylint: Emacs and Flymake compatible Pylint ''; license = licenses.gpl1Plus; - maintainers = with maintainers; [ totoroot ]; + maintainers = with maintainers; [ SuperSandro2000 ]; }; } From b5f8c41fa075bca182130e36ab35c90e8c31db97 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Wed, 1 Jun 2022 19:55:51 +0200 Subject: [PATCH 067/336] python310Packages.certifi: 2021.10.08 -> 2022.05.18.1 --- pkgs/development/python-modules/certifi/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/certifi/default.nix b/pkgs/development/python-modules/certifi/default.nix index bc361806d87a..bef7c64ea132 100644 --- a/pkgs/development/python-modules/certifi/default.nix +++ b/pkgs/development/python-modules/certifi/default.nix @@ -7,7 +7,7 @@ buildPythonPackage rec { pname = "certifi"; - version = "2021.10.08"; + version = "2022.05.18.1"; disabled = pythonOlder "3.5"; @@ -15,7 +15,7 @@ buildPythonPackage rec { owner = pname; repo = "python-certifi"; rev = version; - sha256 = "sha256-SFb/spVHK15b53ZG1P147DcTjs1dqR0+MBXzpE+CWpo="; + sha256 = "sha256-uDNVzKcT45mz0zXBwPkttKV21fEcgbRamE3+QutNLjA="; }; checkInputs = [ From 8abc97c217a7e06504f31d6a177963e9473ac765 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Wed, 11 May 2022 23:14:20 +0200 Subject: [PATCH 068/336] python310Packages.hypothesis: 6.40.0 -> 6.46.3 --- .../python-modules/hypothesis/default.nix | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/pkgs/development/python-modules/hypothesis/default.nix b/pkgs/development/python-modules/hypothesis/default.nix index 8eaa808563e6..01664e36638b 100644 --- a/pkgs/development/python-modules/hypothesis/default.nix +++ b/pkgs/development/python-modules/hypothesis/default.nix @@ -8,27 +8,21 @@ , pytestCheckHook , pytest-xdist , sortedcontainers -, tzdata , pythonOlder }: + buildPythonPackage rec { - # https://hypothesis.readthedocs.org/en/latest/packaging.html - - # Hypothesis has optional dependencies on the following libraries - # pytz fake_factory django numpy pytest - # If you need these, you can just add them to your environment. - pname = "hypothesis"; - version = "6.40.0"; + version = "6.46.3"; format = "setuptools"; disabled = pythonOlder "3.7"; src = fetchFromGitHub { owner = "HypothesisWorks"; - repo = "hypothesis-python"; + repo = "hypothesis"; rev = "hypothesis-python-${version}"; - hash = "sha256-6BC3CTotkMhguueH4NJM8VjbrYhofHqtZEUytcllMwQ="; + hash = "sha256-6WFXSu4wPJba8Gi3WWkqrxUE6Dyz+yl/V/jMVpsWLHw="; }; postUnpack = "sourceRoot=$sourceRoot/hypothesis-python"; @@ -42,8 +36,6 @@ buildPythonPackage rec { pexpect pytest-xdist pytestCheckHook - ] ++ lib.optional (pythonAtLeast "3.9") [ - tzdata ]; inherit doCheck; From 055e0f9147f654c5d5874adab4e54b33d658388a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Wed, 1 Jun 2022 20:44:36 +0200 Subject: [PATCH 069/336] python310Packages.hypothesis: 6.46.3 -> 6.46.10 --- pkgs/development/python-modules/hypothesis/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/hypothesis/default.nix b/pkgs/development/python-modules/hypothesis/default.nix index 01664e36638b..c92b655fabd5 100644 --- a/pkgs/development/python-modules/hypothesis/default.nix +++ b/pkgs/development/python-modules/hypothesis/default.nix @@ -13,7 +13,7 @@ buildPythonPackage rec { pname = "hypothesis"; - version = "6.46.3"; + version = "6.46.10"; format = "setuptools"; disabled = pythonOlder "3.7"; @@ -22,7 +22,7 @@ buildPythonPackage rec { owner = "HypothesisWorks"; repo = "hypothesis"; rev = "hypothesis-python-${version}"; - hash = "sha256-6WFXSu4wPJba8Gi3WWkqrxUE6Dyz+yl/V/jMVpsWLHw="; + hash = "sha256-eQ7Ns0k1hOVw8/xiINMei6GbQqDHXrBl+1v8YQeFO9Q="; }; postUnpack = "sourceRoot=$sourceRoot/hypothesis-python"; From 4561bf0464c55d4871ca7d32042bf8f2ec81cad4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Wed, 1 Jun 2022 20:21:07 +0200 Subject: [PATCH 070/336] python310Packages.cryptography: 36.0.2 -> 37.0.2 --- .../python-modules/cryptography/default.nix | 10 +++++++--- .../python-modules/cryptography/vectors.nix | 2 +- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/pkgs/development/python-modules/cryptography/default.nix b/pkgs/development/python-modules/cryptography/default.nix index b4048366ed54..08314f71308e 100644 --- a/pkgs/development/python-modules/cryptography/default.nix +++ b/pkgs/development/python-modules/cryptography/default.nix @@ -12,7 +12,9 @@ , isPyPy , cffi , pytestCheckHook +, pytest-benchmark , pytest-subtests +, pythonOlder , pretend , libiconv , iso8601 @@ -25,18 +27,19 @@ let in buildPythonPackage rec { pname = "cryptography"; - version = "36.0.2"; # Also update the hash in vectors.nix + version = "37.0.2"; # Also update the hash in vectors.nix + disabled = pythonOlder "3.6"; src = fetchPypi { inherit pname version; - sha256 = "sha256-cPj097sqyfNAZVy6yJ1oxSevW7Q4dSKoQT6EHj5mKMk="; + sha256 = "sha256-8iStJTzJzqdWj0kHcAfSJj76VzlqLy94EUBm/VS1xo4="; }; cargoDeps = rustPlatform.fetchCargoTarball { inherit src; sourceRoot = "${pname}-${version}/${cargoRoot}"; name = "${pname}-${version}"; - sha256 = "sha256-6C4N445h4Xf2nCc9rJWpSZaNPilR9GfgbmKvNlSIFqg="; + sha256 = "sha256-qvrxvneoBXjP96AnUPyrtfmCnZo+IriHR5HbtWQ5Gk8="; }; cargoRoot = "src/rust"; @@ -63,6 +66,7 @@ buildPythonPackage rec { iso8601 pretend pytestCheckHook + pytest-benchmark pytest-subtests pytz ]; diff --git a/pkgs/development/python-modules/cryptography/vectors.nix b/pkgs/development/python-modules/cryptography/vectors.nix index 993720907265..d2c2beb9aba6 100644 --- a/pkgs/development/python-modules/cryptography/vectors.nix +++ b/pkgs/development/python-modules/cryptography/vectors.nix @@ -8,7 +8,7 @@ buildPythonPackage rec { src = fetchPypi { pname = "cryptography_vectors"; inherit version; - sha256 = "sha256-KnkkRJoDAl+vf4dUpvQgAAHKshBzSmzmrB9r2s06aOQ="; + sha256 = "sha256-fGXT3lF1b0GBQt9gVBfsLG6WHDZPcMyKEDAwiJ1aMhk="; }; # No tests included From f68add0632a7a6c04461fdb643d87dcc8f549e69 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sun, 1 May 2022 00:34:32 +0200 Subject: [PATCH 071/336] python310Packages.pure-eval: 0.2.1 -> 0.2.2 --- .../python-modules/pure-eval/default.nix | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/pkgs/development/python-modules/pure-eval/default.nix b/pkgs/development/python-modules/pure-eval/default.nix index 866b2bdcadf6..ba84c1db5fae 100644 --- a/pkgs/development/python-modules/pure-eval/default.nix +++ b/pkgs/development/python-modules/pure-eval/default.nix @@ -1,6 +1,6 @@ { lib , buildPythonPackage -, isPy3k +, pythonOlder , fetchFromGitHub , setuptools-scm , toml @@ -9,15 +9,16 @@ buildPythonPackage rec { pname = "pure_eval"; - version = "0.2.1"; + version = "0.2.2"; + format = "setuptools"; - disabled = !isPy3k; + disabled = pythonOlder "3.7"; src = fetchFromGitHub { owner = "alexmojaki"; repo = pname; rev = "v${version}"; - sha256 = "sha256-+Vucu16NFPtQ23AbBH/cQU+klxp6DMicSScbnKegLZI="; + hash = "sha256-9N+UcgAv30s4ctgsBrOHiix4BoXhKPgxH/GOz/NIFdU="; }; SETUPTOOLS_SCM_PRETEND_VERSION = version; @@ -34,7 +35,9 @@ buildPythonPackage rec { pytestCheckHook ]; - pythonImportsCheck = [ "pure_eval" ]; + pythonImportsCheck = [ + "pure_eval" + ]; meta = with lib; { description = "Safely evaluate AST nodes without side effects"; From cfe5a6b8624739fe3e0d144d5caff8f6f27fb526 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sat, 14 May 2022 14:11:58 +0200 Subject: [PATCH 072/336] python310Packages.aiomysql: 0.1.0 -> 0.1.1 --- pkgs/development/python-modules/aiomysql/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/aiomysql/default.nix b/pkgs/development/python-modules/aiomysql/default.nix index b52760d20694..420b3aaf8b9c 100644 --- a/pkgs/development/python-modules/aiomysql/default.nix +++ b/pkgs/development/python-modules/aiomysql/default.nix @@ -9,7 +9,7 @@ buildPythonPackage rec { pname = "aiomysql"; - version = "0.1.0"; + version = "0.1.1"; format = "pyproject"; disabled = pythonOlder "3.7"; @@ -18,7 +18,7 @@ buildPythonPackage rec { owner = "aio-libs"; repo = pname; rev = "v${version}"; - hash = "sha256-TNaQ4EKiHwSmPpUco0pA5SBP3fljWQ/Kd5RLs649fu0="; + hash = "sha256-rYEos2RuE2xI59httYlN21smBH4/fU4uT48FWwrI6Qg="; }; nativeBuildInputs = [ From 205524d190080d38414cddc054028bb55ce813ea Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Wed, 18 May 2022 21:15:51 +0200 Subject: [PATCH 073/336] python310Packages.pytest-httpbin: 1.0.1 -> 1.0.2 --- .../development/python-modules/pytest-httpbin/default.nix | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/pytest-httpbin/default.nix b/pkgs/development/python-modules/pytest-httpbin/default.nix index 7dc70c49280f..c83724fa8036 100644 --- a/pkgs/development/python-modules/pytest-httpbin/default.nix +++ b/pkgs/development/python-modules/pytest-httpbin/default.nix @@ -4,19 +4,23 @@ , httpbin , pytest , pytestCheckHook +, pythonOlder , requests , six }: buildPythonPackage rec { pname = "pytest-httpbin"; - version = "1.0.1"; + version = "1.0.2"; + format = "setuptools"; + + disabled = pythonOlder "3.7"; src = fetchFromGitHub { owner = "kevin1024"; repo = "pytest-httpbin"; rev = "v${version}"; - hash = "sha256-Vngd8Vum96+rdG8Nz1+aHrO6WZjiAz+0CeIovaH8N+s="; + hash = "sha256-S4ThQx4H3UlKhunJo35esPClZiEn7gX/Qwo4kE1QMTI="; }; buildInputs = [ From b19bb22dc700b846255b3f26e18c3310ae0f8519 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Wed, 18 May 2022 21:21:40 +0200 Subject: [PATCH 074/336] python310Packages.pytest-localserver: 0.5.1.post0 -> 0.6.0 --- .../python-modules/pytest-localserver/default.nix | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/pytest-localserver/default.nix b/pkgs/development/python-modules/pytest-localserver/default.nix index e3823c18d895..b64f3365dd6f 100644 --- a/pkgs/development/python-modules/pytest-localserver/default.nix +++ b/pkgs/development/python-modules/pytest-localserver/default.nix @@ -1,20 +1,25 @@ { lib +, aiosmtpd , buildPythonPackage , fetchPypi , werkzeug +, pythonOlder }: buildPythonPackage rec { pname = "pytest-localserver"; - version = "0.5.1.post0"; + version = "0.6.0"; format = "setuptools"; + disabled = pythonOlder "3.6"; + src = fetchPypi { inherit pname version; - sha256 = "5ec7f8e6534cf03887af2cb59e577f169ac0e8b2fd2c3e3409280035f386d407"; + sha256 = "sha256-3cR5q6lqfaDnocx9OjA+UFgtbVBYA+j2e4JyGPn+D2U="; }; propagatedBuildInputs = [ + aiosmtpd werkzeug ]; From 14f956459324d7bd2c01dc506c26054ff4e2d5cf Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Fri, 20 May 2022 16:09:28 +0200 Subject: [PATCH 075/336] python310Packages.sopel: 7.1.8 -> 7.1.9 --- .../python-modules/sopel/default.nix | 28 +++++++++++++------ 1 file changed, 19 insertions(+), 9 deletions(-) diff --git a/pkgs/development/python-modules/sopel/default.nix b/pkgs/development/python-modules/sopel/default.nix index bbc3f8edbf2d..ac0a39363134 100644 --- a/pkgs/development/python-modules/sopel/default.nix +++ b/pkgs/development/python-modules/sopel/default.nix @@ -1,11 +1,15 @@ -{ lib, buildPythonPackage, fetchPypi, isPyPy +{ lib +, buildPythonPackage , dnspython +, fetchPypi , geoip2 , ipython +, isPyPy , praw , pyenchant , pygeoip , pytestCheckHook +, pythonOlder , pytz , sqlalchemy , xmltodict @@ -13,12 +17,14 @@ buildPythonPackage rec { pname = "sopel"; - version = "7.1.8"; - disabled = isPyPy; + version = "7.1.9"; + format = "setuptools"; + + disabled = isPyPy || pythonOlder "3.7"; src = fetchPypi { inherit pname version; - sha256 = "sha256-zxb95GVcDrd3FG/k+0PLg+dVlMgQpf1ntG8jF/zpHH4="; + hash = "sha256-IJ+ovLQv6/UU1oepmUQjzaWBG3Rdd3xvui7FjK85Urs="; }; propagatedBuildInputs = [ @@ -33,15 +39,17 @@ buildPythonPackage rec { xmltodict ]; - # remove once https://github.com/sopel-irc/sopel/pull/1653 lands + checkInputs = [ + pytestCheckHook + ]; + postPatch = '' substituteInPlace requirements.txt \ --replace "praw>=4.0.0,<6.0.0" "praw" \ - --replace "sqlalchemy<1.4" "sqlalchemy" + --replace "sqlalchemy<1.4" "sqlalchemy" \ + --replace "xmltodict==0.12" "xmltodict>=0.12" ''; - checkInputs = [ pytestCheckHook ]; - preCheck = '' export TESTDIR=$(mktemp -d) cp -R ./test $TESTDIR @@ -52,7 +60,9 @@ buildPythonPackage rec { popd ''; - pythonImportsCheck = [ "sopel" ]; + pythonImportsCheck = [ + "sopel" + ]; meta = with lib; { description = "Simple and extensible IRC bot"; From 181ec21de33feffa0900a9402c2bf10012c5e135 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Fri, 20 May 2022 21:59:46 +0200 Subject: [PATCH 076/336] python310Packages.pytest-randomly: 3.11.0 -> 3.12.0 --- pkgs/development/python-modules/pytest-randomly/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/pytest-randomly/default.nix b/pkgs/development/python-modules/pytest-randomly/default.nix index 5aae59bc605f..8bb8c6d06374 100644 --- a/pkgs/development/python-modules/pytest-randomly/default.nix +++ b/pkgs/development/python-modules/pytest-randomly/default.nix @@ -12,7 +12,7 @@ buildPythonPackage rec { pname = "pytest-randomly"; - version = "3.11.0"; + version = "3.12.0"; format = "setuptools"; disabled = pythonOlder "3.7"; @@ -21,7 +21,7 @@ buildPythonPackage rec { repo = pname; owner = "pytest-dev"; rev = version; - hash = "sha256-NoYpMpFWz52Z0+KIUumUFp3xMPA1jGw8COojU+bsgHc="; + hash = "sha256-n/Xp/HghqcQUreez+QbR3Mi5hE1U4zoOJCdFqD+pVBk="; }; propagatedBuildInputs = lib.optionals (pythonOlder "3.10") [ From 276654d888a24d6dff171512e1a4420965200012 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sat, 21 May 2022 16:04:17 +0200 Subject: [PATCH 077/336] python310Packages.vulture: 2.3 -> 2.4 https://github.com/jendrikseipp/vulture/releases/tag/v2.4 --- .../python-modules/vulture/default.nix | 27 ++++++++++++------- 1 file changed, 17 insertions(+), 10 deletions(-) diff --git a/pkgs/development/python-modules/vulture/default.nix b/pkgs/development/python-modules/vulture/default.nix index 7ab5bcbb65bc..e1dd04ed75f6 100644 --- a/pkgs/development/python-modules/vulture/default.nix +++ b/pkgs/development/python-modules/vulture/default.nix @@ -1,32 +1,39 @@ { lib , buildPythonPackage -, coverage , fetchPypi -, isPy27 -, pytest-cov +, pythonOlder , pytestCheckHook , toml }: buildPythonPackage rec { pname = "vulture"; - version = "2.3"; - disabled = isPy27; + version = "2.4"; + format = "setuptools"; + + disabled = pythonOlder "3.6"; src = fetchPypi { inherit pname version; - sha256 = "0ryrmsm72z3fzaanyblz49q40h9d3bbl4pspn2lvkkp9rcmsdm83"; + hash = "sha256-gZQ5KUp2tOC44Ixw11VlqM49wfbgNVjtEjpfK7c3wOo="; }; - propagatedBuildInputs = [ toml ]; + postPatch = '' + substituteInPlace setup.cfg \ + --replace " --cov vulture --cov-report=html --cov-report=term --cov-report=xml --cov-append" "" + ''; + + propagatedBuildInputs = [ + toml + ]; checkInputs = [ - coverage - pytest-cov pytestCheckHook ]; - pythonImportsCheck = [ "vulture" ]; + pythonImportsCheck = [ + "vulture" + ]; meta = with lib; { description = "Finds unused code in Python programs"; From 6ca651b824710024b3fbc73a07678b38a6eadc55 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Thu, 26 May 2022 21:54:16 +0200 Subject: [PATCH 078/336] python310Packages.pytest-subtests: 0.7.0 -> 0.8.0 --- pkgs/development/python-modules/pytest-subtests/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/pytest-subtests/default.nix b/pkgs/development/python-modules/pytest-subtests/default.nix index b1df1ceaad67..4b88991bb741 100644 --- a/pkgs/development/python-modules/pytest-subtests/default.nix +++ b/pkgs/development/python-modules/pytest-subtests/default.nix @@ -8,14 +8,14 @@ buildPythonPackage rec { pname = "pytest-subtests"; - version = "0.7.0"; + version = "0.8.0"; format = "setuptools"; disabled = pythonOlder "3.6"; src = fetchPypi { inherit pname version; - sha256 = "sha256-lcRMd+P77emEi7iMqQs4SBX8uoCQ75qfVWWasWOxaBw="; + sha256 = "sha256-Rus3YCLpJpUIFszCNQLeMnetzBOWZS3bMyjOAokFLE0="; }; nativeBuildInputs = [ From 39d1306d96e7b5ad47370a2e63f701c675afdff4 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Wed, 25 May 2022 21:04:50 +0200 Subject: [PATCH 079/336] python310Packages.apipkg: 2.1.0 -> 2.1.1 --- pkgs/development/python-modules/apipkg/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/apipkg/default.nix b/pkgs/development/python-modules/apipkg/default.nix index 241ddfaa11ab..1b6528ab3009 100644 --- a/pkgs/development/python-modules/apipkg/default.nix +++ b/pkgs/development/python-modules/apipkg/default.nix @@ -3,11 +3,11 @@ buildPythonPackage rec { pname = "apipkg"; - version = "2.1.0"; + version = "2.1.1"; src = fetchPypi { inherit pname version; - sha256 = "a4be31cf8081e660d2cdea6edfb8a0f39f385866abdcfcfa45e5a0887345cb70"; + sha256 = "sha256-zKNAIkFKE5duM6HjjWoJBWfve2jQNy+SPGmaj4wIivw="; }; nativeBuildInputs = [ setuptools-scm ]; From b31b5f18c794a58f10eb2b7158dbbdea7d6c862f Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sun, 29 May 2022 00:30:06 +0200 Subject: [PATCH 080/336] python310Packages.webob: switch to pytestCheckHook --- .../python-modules/webob/default.nix | 32 ++++++++++++++----- 1 file changed, 24 insertions(+), 8 deletions(-) diff --git a/pkgs/development/python-modules/webob/default.nix b/pkgs/development/python-modules/webob/default.nix index 201893c2536b..e4fb4f0ea324 100644 --- a/pkgs/development/python-modules/webob/default.nix +++ b/pkgs/development/python-modules/webob/default.nix @@ -1,25 +1,41 @@ { lib , buildPythonPackage , fetchPypi -, nose -, pytest +, pytestCheckHook +, pythonOlder }: buildPythonPackage rec { - pname = "WebOb"; + pname = "webob"; version = "1.8.7"; + format = "setuptools"; + + disabled = pythonOlder "3.7"; src = fetchPypi { - inherit pname version; - sha256 = "b64ef5141be559cfade448f044fa45c2260351edcb6a8ef6b7e00c7dcef0c323"; + pname = "WebOb"; + inherit version; + hash = "sha256-tk71FBvlWc+t5EjwRPpFwiYDUe3Lao72t+AMfc7wwyM="; }; - propagatedBuildInputs = [ nose pytest ]; + checkInputs = [ + pytestCheckHook + ]; + + pythonImportsCheck = [ + "webob" + ]; + + disabledTestPaths = [ + # AttributeError: 'Thread' object has no attribute 'isAlive' + "tests/test_in_wsgiref.py" + "tests/test_client_functional.py" + ]; meta = with lib; { description = "WSGI request and response object"; - homepage = "http://pythonpaste.org/webob/"; + homepage = "https://webob.org/"; license = licenses.mit; + maintainers = with maintainers; [ ]; }; - } From 774f6930664a35c3ff451c067f1c28d79332001d Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sat, 28 May 2022 11:14:36 +0200 Subject: [PATCH 081/336] python310Packages.pyzmq: 22.3.0 -> 23.0.0 --- .../python-modules/pysqueezebox/default.nix | 1 + .../python-modules/pyzmq/default.nix | 60 +++++++++++++------ 2 files changed, 42 insertions(+), 19 deletions(-) diff --git a/pkgs/development/python-modules/pysqueezebox/default.nix b/pkgs/development/python-modules/pysqueezebox/default.nix index 67344d8a5744..b3504c9959b5 100644 --- a/pkgs/development/python-modules/pysqueezebox/default.nix +++ b/pkgs/development/python-modules/pysqueezebox/default.nix @@ -46,3 +46,4 @@ buildPythonPackage rec { maintainers = with maintainers; [ nyanloutre ]; }; } + diff --git a/pkgs/development/python-modules/pyzmq/default.nix b/pkgs/development/python-modules/pyzmq/default.nix index 60fcce9442a8..62de8e72b4c4 100644 --- a/pkgs/development/python-modules/pyzmq/default.nix +++ b/pkgs/development/python-modules/pyzmq/default.nix @@ -1,46 +1,68 @@ -{ buildPythonPackage +{ lib +, buildPythonPackage , fetchPypi +, py , pytestCheckHook +, python +, pythonOlder , tornado , zeromq -, py -, python }: buildPythonPackage rec { pname = "pyzmq"; - version = "22.3.0"; + version = "23.0.0"; + format = "setuptools"; + + disabled = pythonOlder "3.6"; src = fetchPypi { inherit pname version; - sha256 = "8eddc033e716f8c91c6a2112f0a8ebc5e00532b4a6ae1eb0ccc48e027f9c671c"; + hash = "sha256-pF9cBHfRLfBe8uKSK0m3wK6dD0/5trsNZmVY3w7zcSI="; }; + buildInputs = [ + zeromq + ]; + + propagatedBuildInputs = [ + py + ]; + checkInputs = [ pytestCheckHook tornado ]; - buildInputs = [ zeromq ]; - propagatedBuildInputs = [ py ]; - # failing tests - disabledTests = [ - "test_socket" # hangs - "test_current" - "test_instance" - "test_callable_check" - "test_on_recv_basic" - "test_on_recv_wake" - "test_monitor" # https://github.com/zeromq/pyzmq/issues/1272 - "test_cython" - "test_asyncio" # hangs - "test_mockable" # fails + pythonImportsCheck = [ + "zmq" ]; pytestFlagsArray = [ "$out/${python.sitePackages}/zmq/tests/" # Folder with tests ]; + disabledTests = [ + # Tests hang + "test_socket" + "test_monitor" + # https://github.com/zeromq/pyzmq/issues/1272 + "test_cython" + # Test fails + "test_mockable" + # Issues with the sandbox + "TestFutureSocket" + "TestIOLoop" + "TestPubLog" + ]; + # Some of the tests use localhost networking. __darwinAllowLocalNetworking = true; + + meta = with lib; { + description = "Python bindings for ØMQ"; + homepage = "https://pyzmq.readthedocs.io/"; + license = with licenses; [ bsd3 /* or */ lgpl3Only ]; + maintainers = with maintainers; [ ]; + }; } From 04b30697eddc27e7c36b15caf3fe49d92dd7b55d Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Mon, 23 May 2022 10:57:10 +0200 Subject: [PATCH 082/336] python310Packages.GitPython: 3.1.25 -> 3.1.27 --- pkgs/development/python-modules/GitPython/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/GitPython/default.nix b/pkgs/development/python-modules/GitPython/default.nix index dc909f5bcee8..8d89c1af8d0c 100644 --- a/pkgs/development/python-modules/GitPython/default.nix +++ b/pkgs/development/python-modules/GitPython/default.nix @@ -11,14 +11,14 @@ buildPythonPackage rec { pname = "gitpython"; - version = "3.1.25"; + version = "3.1.27"; disabled = pythonOlder "3.7"; src = fetchFromGitHub { owner = "gitpython-developers"; repo = "GitPython"; rev = version; - sha256 = "sha256-ienc7zvLe6t8rkMtC6wVIewUqQBFdFbLc8iPT6aPVrE="; + sha256 = "sha256-RA+6JFXHUQoXGErV8+aYuJPsfXzNSZK3kTm6eMbQIss="; }; patches = [ From 91696299e5b86b022baddcab43235bb5be9f6f12 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Mon, 30 May 2022 23:35:35 +0200 Subject: [PATCH 083/336] python310Packages.lxml: 4.8.0 -> 4.9.0 --- pkgs/development/python-modules/lxml/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/lxml/default.nix b/pkgs/development/python-modules/lxml/default.nix index 3ef230eb8e8d..c9d4a7cf9616 100644 --- a/pkgs/development/python-modules/lxml/default.nix +++ b/pkgs/development/python-modules/lxml/default.nix @@ -8,13 +8,13 @@ buildPythonPackage rec { pname = "lxml"; - version = "4.8.0"; + version = "4.9.0"; src = fetchFromGitHub { owner = pname; repo = pname; rev = "lxml-${version}"; - sha256 = "sha256-ppyLn8B0YFQivRCOE8TjKGdDDQHbb7UdTUkevznoVC8="; + sha256 = "sha256-3bPyfsiJGDNB0MPw4OhATRnsM3I8ThZwvPWI+easgNo="; }; # setuptoolsBuildPhase needs dependencies to be passed through nativeBuildInputs From 76170bf8e5984fb9cd71854e954aaf000e102365 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Wed, 1 Jun 2022 23:39:27 +0200 Subject: [PATCH 084/336] python310Packages.typed-ast: 1.5.2 -> 1.5.4 --- pkgs/development/python-modules/typed-ast/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/typed-ast/default.nix b/pkgs/development/python-modules/typed-ast/default.nix index 87116017063d..0c5e1fa3cd27 100644 --- a/pkgs/development/python-modules/typed-ast/default.nix +++ b/pkgs/development/python-modules/typed-ast/default.nix @@ -7,7 +7,7 @@ buildPythonPackage rec { pname = "typed-ast"; - version = "1.5.2"; + version = "1.5.4"; format = "setuptools"; disabled = pythonOlder "3.6"; @@ -16,7 +16,7 @@ buildPythonPackage rec { owner = "python"; repo = "typed_ast"; rev = version; - hash = "sha256-Ul1FIS1a1f8l3tX+m8Bj/LsLQW1sXJv6XzEZ9zh8rfI="; + hash = "sha256-GRmKw7SRrrIIb61VeB8GLhSKCmLUd54AA+GAf43vor8="; }; checkInputs = [ From 8842868bf3bf73d20e89f91f763a5704c2329856 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Wed, 1 Jun 2022 23:41:43 +0200 Subject: [PATCH 085/336] python310Packages.types-typed-ast: 1.5.4 -> 1.5.6 --- pkgs/development/python-modules/types-typed-ast/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/types-typed-ast/default.nix b/pkgs/development/python-modules/types-typed-ast/default.nix index 2c8e2a09580e..ca45ec7039ba 100644 --- a/pkgs/development/python-modules/types-typed-ast/default.nix +++ b/pkgs/development/python-modules/types-typed-ast/default.nix @@ -5,12 +5,12 @@ buildPythonPackage rec { pname = "types-typed-ast"; - version = "1.5.4"; + version = "1.5.6"; format = "setuptools"; src = fetchPypi { inherit pname version; - hash = "sha256-MlOHn/Y6+4lkZa/kIoocTfLmPNw57vm5dD1QC42aUXY="; + hash = "sha256-UzmUeAz3KbdAwUdQZsRAdi8pqZvalRHU+mhdXuOoQ4k="; }; # Module doesn't have tests From 9a7c0666dafb4f8b2d3d7f345b51edb0ccbe8ef0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Wed, 1 Jun 2022 23:46:34 +0200 Subject: [PATCH 086/336] python310Packages.xmltodict: 0.12.0 -> 0.13.0 --- pkgs/development/python-modules/xmltodict/default.nix | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/xmltodict/default.nix b/pkgs/development/python-modules/xmltodict/default.nix index e0a9f4c5d73e..19c2b1d283f6 100644 --- a/pkgs/development/python-modules/xmltodict/default.nix +++ b/pkgs/development/python-modules/xmltodict/default.nix @@ -2,22 +2,26 @@ , buildPythonPackage , fetchPypi , pytestCheckHook +, pythonOlder }: buildPythonPackage rec { pname = "xmltodict"; - version = "0.12.0"; + version = "0.13.0"; format = "setuptools"; + disabled = pythonOlder "3.4"; src = fetchPypi { inherit pname version; - sha256 = "50d8c638ed7ecb88d90561beedbf720c9b4e851a9fa6c47ebd64e99d166d8a21"; + sha256 = "sha256-NBWVpIjj4BqFqdiRHYkS/ZIu3l/sxNzkN+tLbI0DflY="; }; checkInputs = [ pytestCheckHook ]; + pythonImportsCheck = [ "xmltodict" ]; + meta = with lib; { description = "Makes working with XML feel like you are working with JSON"; homepage = "https://github.com/martinblech/xmltodict"; From 989872eb44a7b8d078f490982bdb3148a160cf55 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Mon, 30 May 2022 04:59:44 +0200 Subject: [PATCH 087/336] python310Packages.raven: update dependencies, description, comment --- .../python-modules/raven/default.nix | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/pkgs/development/python-modules/raven/default.nix b/pkgs/development/python-modules/raven/default.nix index 45a408640b52..cdcec2bf249d 100644 --- a/pkgs/development/python-modules/raven/default.nix +++ b/pkgs/development/python-modules/raven/default.nix @@ -1,5 +1,8 @@ -{ lib, buildPythonPackage, fetchFromGitHub, isPy3k -, contextlib2, blinker +{ lib +, buildPythonPackage +, fetchFromGitHub +, blinker +, flask }: buildPythonPackage rec { @@ -13,14 +16,17 @@ buildPythonPackage rec { sha256 = "16x9ldl8cy7flw5kh7qmgbmflqyf210j3q6ac2lw61sgwajsnvw8"; }; - # way too many dependencies to run tests - # see https://github.com/getsentry/raven-python/blob/master/setup.py + # requires outdated dependencies which have no official support for python 3.4 doCheck = false; - propagatedBuildInputs = [ blinker ] ++ lib.optionals (!isPy3k) [ contextlib2 ]; + pythonImportsCheck = [ "raven" ]; + + passthru.optional-dependencies = { + flask = [ blinker flask ]; + }; meta = { - description = "A Python client for Sentry (getsentry.com)"; + description = "Legacy Python client for Sentry (getsentry.com) — replaced by sentry-python"; homepage = "https://github.com/getsentry/raven-python"; license = [ lib.licenses.bsd3 ]; maintainers = with lib.maintainers; [ primeos ]; From 2d25c8e449e9a60d7a47952f0d38267eec82a103 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Mon, 30 May 2022 05:00:14 +0200 Subject: [PATCH 088/336] python310Packages.httpbin: fix dependencies --- pkgs/development/python-modules/httpbin/default.nix | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/pkgs/development/python-modules/httpbin/default.nix b/pkgs/development/python-modules/httpbin/default.nix index a5a77a82af29..98c50fd15232 100644 --- a/pkgs/development/python-modules/httpbin/default.nix +++ b/pkgs/development/python-modules/httpbin/default.nix @@ -11,6 +11,7 @@ , raven , six , pytestCheckHook +, werkzeug }: buildPythonPackage rec { @@ -34,14 +35,15 @@ buildPythonPackage rec { propagatedBuildInputs = [ brotlipy + decorator flask flask-limiter - markupsafe - decorator itsdangerous + markupsafe raven six - ]; + werkzeug + ] ++ raven.optional-dependencies.flask; checkInputs = [ pytestCheckHook From 1f5366f237972aa60cf553360bd10ae60651bfdb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Wed, 1 Jun 2022 23:52:11 +0200 Subject: [PATCH 089/336] python310Packages.zipp: 3.7.0 -> 3.8.0 --- pkgs/development/python-modules/zipp/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/development/python-modules/zipp/default.nix b/pkgs/development/python-modules/zipp/default.nix index 253962910acb..ba3ea107ea02 100644 --- a/pkgs/development/python-modules/zipp/default.nix +++ b/pkgs/development/python-modules/zipp/default.nix @@ -9,14 +9,14 @@ let zipp = buildPythonPackage rec { pname = "zipp"; - version = "3.7.0"; - format = "setuptools"; + version = "3.8.0"; + format = "pyproject"; disabled = pythonOlder "3.7"; src = fetchPypi { inherit pname version; - sha256 = "9f50f446828eb9d45b267433fd3e9da8d801f614129124863f9c51ebceafb87d"; + sha256 = "sha256-Vr+Krbg8JNtsS1d+E943TM+2faIHi+uh0DfBeYC/Q60="; }; nativeBuildInputs = [ From 473c5663894d9aff47e410cdeeb4a02510d78a31 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Thu, 2 Jun 2022 11:04:19 +0200 Subject: [PATCH 090/336] python310Packages.pysqueezebox: fix formatting --- pkgs/development/python-modules/pysqueezebox/default.nix | 1 - 1 file changed, 1 deletion(-) diff --git a/pkgs/development/python-modules/pysqueezebox/default.nix b/pkgs/development/python-modules/pysqueezebox/default.nix index b3504c9959b5..67344d8a5744 100644 --- a/pkgs/development/python-modules/pysqueezebox/default.nix +++ b/pkgs/development/python-modules/pysqueezebox/default.nix @@ -46,4 +46,3 @@ buildPythonPackage rec { maintainers = with maintainers; [ nyanloutre ]; }; } - From 292269900315d5b952a99ec95aa4ccfc099952e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Mon, 30 May 2022 06:39:57 +0200 Subject: [PATCH 091/336] python310Packages.urllib3: add optional-dependencies --- .../python-modules/urllib3/default.nix | 21 +++++++++++-------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/pkgs/development/python-modules/urllib3/default.nix b/pkgs/development/python-modules/urllib3/default.nix index 6d29a107f004..8a79241eebca 100644 --- a/pkgs/development/python-modules/urllib3/default.nix +++ b/pkgs/development/python-modules/urllib3/default.nix @@ -1,11 +1,13 @@ { lib , brotli +, brotlicffi , buildPythonPackage +, certifi , cryptography , python-dateutil , fetchPypi +, isPyPy , idna -, isPy27 , mock , pyopenssl , pysocks @@ -26,14 +28,9 @@ buildPythonPackage rec { hash = "sha256-qrrxZHeAal4d0ZqkH4wreVDdPHRjYtfjIj2+beasRI4="; }; - propagatedBuildInputs = [ - brotli - pysocks - ] ++ lib.optionals isPy27 [ - cryptography - idna - pyopenssl - ]; + # FIXME: remove backwards compatbility hack + propagatedBuildInputs = passthru.optional-dependencies.brotli + ++ passthru.optional-dependencies.secure; checkInputs = [ python-dateutil @@ -66,6 +63,12 @@ buildPythonPackage rec { "urllib3" ]; + passthru.optional-dependencies = { + brotli = if isPyPy then [ brotlicffi ] else [ brotli ]; + secure = [ certifi cryptography idna pyopenssl ]; + socks = [ pysocks ]; + }; + meta = with lib; { description = "Powerful, sanity-friendly HTTP client for Python"; homepage = "https://github.com/shazow/urllib3"; From 7895b85444e3aef1de0b37afe9d4cf757d95d027 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Wed, 1 Jun 2022 23:23:38 +0200 Subject: [PATCH 092/336] python310Packages.pillow: 9.1.0 -> 9.1.1 --- pkgs/development/python-modules/pillow/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/pillow/default.nix b/pkgs/development/python-modules/pillow/default.nix index 47ed191c6d99..e482cd75e1a5 100644 --- a/pkgs/development/python-modules/pillow/default.nix +++ b/pkgs/development/python-modules/pillow/default.nix @@ -12,14 +12,14 @@ import ./generic.nix (rec { pname = "pillow"; - version = "9.1.0"; + version = "9.1.1"; disabled = pythonOlder "3.7"; src = fetchPypi { pname = "Pillow"; inherit version; - sha256 = "f401ed2bbb155e1ade150ccc63db1a4f6c1909d3d378f7d1235a44e90d75fb97"; + sha256 = "sha256-dQJTmTm1PXVl89Edh8eOfskA08cpRdTuDi8lDVmDCaA="; }; passthru.tests = { From ab0b9034b5b0da30e0020f6d73d4c65ae9658a73 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Sat, 28 May 2022 18:53:49 +0200 Subject: [PATCH 093/336] python310Packages.ordereddict: drop --- .../python-modules/ordereddict/default.nix | 21 ------------------- pkgs/top-level/python-aliases.nix | 1 + pkgs/top-level/python-packages.nix | 2 -- 3 files changed, 1 insertion(+), 23 deletions(-) delete mode 100644 pkgs/development/python-modules/ordereddict/default.nix diff --git a/pkgs/development/python-modules/ordereddict/default.nix b/pkgs/development/python-modules/ordereddict/default.nix deleted file mode 100644 index 6ef006405853..000000000000 --- a/pkgs/development/python-modules/ordereddict/default.nix +++ /dev/null @@ -1,21 +0,0 @@ -{ lib -, buildPythonPackage -, fetchPypi -}: - -buildPythonPackage rec { - pname = "ordereddict"; - version = "1.1"; - - src = fetchPypi { - inherit pname version; - sha256 = "07qvy11nvgxpzarrni3wrww3vpc9yafgi2bch4j2vvvc42nb8d8w"; - }; - - meta = with lib; { - description = "A drop-in substitute for Py2.7's new collections.OrderedDict that works in Python 2.4-2.6"; - license = licenses.bsd3; - maintainers = with maintainers; [ ]; - }; - -} diff --git a/pkgs/top-level/python-aliases.nix b/pkgs/top-level/python-aliases.nix index d6d09a412427..6d99f378f423 100644 --- a/pkgs/top-level/python-aliases.nix +++ b/pkgs/top-level/python-aliases.nix @@ -97,6 +97,7 @@ mapAliases ({ mailman-web = throw "Please use pkgs.mailman-web"; # added 2022-04-29 net2grid = gridnet; # add 2022-04-22 nose-cover3 = throw "nose-cover3 has been removed, it was using setuptools 2to3 translation feature, which has been removed in setuptools 58"; # added 2022-02-16 + ordereddict = throw "ordereddict has been removed because it is only useful on unsupported python versions."; # added 2022-05-28 pam = python-pam; # added 2020-09-07. PasteDeploy = pastedeploy; # added 2021-10-07 pathpy = path; # added 2022-04-12 diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index f246981439f2..f56a06427fb7 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -6120,8 +6120,6 @@ in { opuslib = callPackage ../development/python-modules/opuslib { }; - ordereddict = callPackage ../development/python-modules/ordereddict { }; - orderedmultidict = callPackage ../development/python-modules/orderedmultidict { }; ordered-set = callPackage ../development/python-modules/ordered-set { }; From 014c7bd869013b9ad774d1baf5747931bb73a784 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Sat, 28 May 2022 17:38:46 +0200 Subject: [PATCH 094/336] python310Packages.botocore: drop ordereddict --- pkgs/development/python-modules/botocore/default.nix | 2 -- 1 file changed, 2 deletions(-) diff --git a/pkgs/development/python-modules/botocore/default.nix b/pkgs/development/python-modules/botocore/default.nix index 52b8d8d37fc1..6774189043c9 100644 --- a/pkgs/development/python-modules/botocore/default.nix +++ b/pkgs/development/python-modules/botocore/default.nix @@ -4,7 +4,6 @@ , python-dateutil , jmespath , docutils -, ordereddict , simplejson , mock , nose @@ -24,7 +23,6 @@ buildPythonPackage rec { python-dateutil jmespath docutils - ordereddict simplejson urllib3 ]; From 1e861c4e034f244d051df9da9dc7c74ebcab2921 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Sat, 28 May 2022 18:48:22 +0200 Subject: [PATCH 095/336] python310Packages.flask-limiter: drop ordereddict --- pkgs/development/python-modules/flask-limiter/default.nix | 2 -- 1 file changed, 2 deletions(-) diff --git a/pkgs/development/python-modules/flask-limiter/default.nix b/pkgs/development/python-modules/flask-limiter/default.nix index 418225550167..c593c855c70f 100644 --- a/pkgs/development/python-modules/flask-limiter/default.nix +++ b/pkgs/development/python-modules/flask-limiter/default.nix @@ -6,7 +6,6 @@ , hiro , limits , mock -, ordereddict , pymemcache , pytestCheckHook , redis @@ -32,7 +31,6 @@ buildPythonPackage rec { redis flask-restful pymemcache - ordereddict ]; postPatch = '' From 9e3cbe04c6416ec955671b9bec5e65db1b826cb7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Sat, 28 May 2022 18:54:36 +0200 Subject: [PATCH 096/336] python310Packages.yamlordereddictloader: drop ordereddict --- .../python-modules/yamlordereddictloader/default.nix | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/pkgs/development/python-modules/yamlordereddictloader/default.nix b/pkgs/development/python-modules/yamlordereddictloader/default.nix index ce9602a4720c..9de933fda157 100644 --- a/pkgs/development/python-modules/yamlordereddictloader/default.nix +++ b/pkgs/development/python-modules/yamlordereddictloader/default.nix @@ -1,8 +1,6 @@ { lib , buildPythonPackage , fetchPypi -, isPy27 -, ordereddict , pyyaml }: @@ -15,7 +13,7 @@ buildPythonPackage rec { sha256 = "03h8wa6pzqjiw25s3jv9gydn77gs444mf31lrgvpgy53kswz0c3z"; }; - propagatedBuildInputs = [ pyyaml ] ++ lib.optional (isPy27) ordereddict; + propagatedBuildInputs = [ pyyaml ]; # no tests doCheck = false; From d6252cb72c5705cf979703457fd8af8417c224ab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Sat, 28 May 2022 18:59:31 +0200 Subject: [PATCH 097/336] python27Packages.botocore: drop ordereddict --- pkgs/development/python2-modules/botocore/default.nix | 2 -- 1 file changed, 2 deletions(-) diff --git a/pkgs/development/python2-modules/botocore/default.nix b/pkgs/development/python2-modules/botocore/default.nix index d05c2decf497..f23a10579c6e 100644 --- a/pkgs/development/python2-modules/botocore/default.nix +++ b/pkgs/development/python2-modules/botocore/default.nix @@ -4,7 +4,6 @@ , python-dateutil , jmespath , docutils -, ordereddict , simplejson , mock , nose @@ -24,7 +23,6 @@ buildPythonPackage rec { python-dateutil jmespath docutils - ordereddict simplejson urllib3 ]; From bbe515c4c254f2d6c0d788d3ea00ef4771255e76 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Sat, 28 May 2022 19:02:02 +0200 Subject: [PATCH 098/336] jira_cli: drop ordereddict --- pkgs/development/tools/jira_cli/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/tools/jira_cli/default.nix b/pkgs/development/tools/jira_cli/default.nix index cf15a61477e4..9145f4a42cdb 100644 --- a/pkgs/development/tools/jira_cli/default.nix +++ b/pkgs/development/tools/jira_cli/default.nix @@ -1,6 +1,6 @@ { lib, libffi, openssl, python3Packages }: let - inherit (python3Packages) fetchPypi buildPythonApplication vcrpy mock hiro; + inherit (python3Packages) fetchPypi buildPythonApplication; in buildPythonApplication rec { pname = "jira-cli"; @@ -19,7 +19,7 @@ in checkInputs = with python3Packages; [ vcrpy mock hiro ]; buildInputs = [ libffi openssl ]; propagatedBuildInputs = with python3Packages; [ - ordereddict requests six suds-jurko termcolor keyring + requests six suds-jurko termcolor keyring jira keyrings-alt ]; From cb24b62e368b7aebdc4987668e2a00e8d3af29f7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Sat, 28 May 2022 19:17:24 +0200 Subject: [PATCH 099/336] python310Packages.pyscss: drop ordereddict --- pkgs/development/python-modules/pyscss/default.nix | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/pkgs/development/python-modules/pyscss/default.nix b/pkgs/development/python-modules/pyscss/default.nix index 3b91236a6ccf..a66475d81699 100644 --- a/pkgs/development/python-modules/pyscss/default.nix +++ b/pkgs/development/python-modules/pyscss/default.nix @@ -5,7 +5,6 @@ , six , enum34 , pathlib -, ordereddict , pythonOlder }: @@ -23,8 +22,7 @@ buildPythonPackage rec { checkInputs = [ pytest ]; propagatedBuildInputs = [ six ] - ++ (lib.optionals (pythonOlder "3.4") [ enum34 pathlib ]) - ++ (lib.optionals (pythonOlder "2.7") [ ordereddict ]); + ++ lib.optionals (pythonOlder "3.4") [ enum34 pathlib ]; # Test suite is broken. # See https://github.com/Kronuz/pyScss/issues/415 From 9d0985f5d7cb3738e3f3c19807f452d5ee928d17 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Sat, 28 May 2022 19:17:34 +0200 Subject: [PATCH 100/336] python310Packages.pyscss: switch to pytestCheckHook --- pkgs/development/python-modules/pyscss/default.nix | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/pkgs/development/python-modules/pyscss/default.nix b/pkgs/development/python-modules/pyscss/default.nix index a66475d81699..5153663c6e88 100644 --- a/pkgs/development/python-modules/pyscss/default.nix +++ b/pkgs/development/python-modules/pyscss/default.nix @@ -1,7 +1,7 @@ { lib , buildPythonPackage , fetchFromGitHub -, pytest +, pytestCheckHook , six , enum34 , pathlib @@ -19,7 +19,7 @@ buildPythonPackage rec { sha256 = "sha256-z0y4z+/JE6rZWHAvps/taDZvutyVhxxs2gMujV5rNu4="; }; - checkInputs = [ pytest ]; + checkInputs = [ pytestCheckHook ]; propagatedBuildInputs = [ six ] ++ lib.optionals (pythonOlder "3.4") [ enum34 pathlib ]; @@ -27,14 +27,11 @@ buildPythonPackage rec { # Test suite is broken. # See https://github.com/Kronuz/pyScss/issues/415 doCheck = false; - checkPhase = '' - py.test - ''; meta = with lib; { description = "A Scss compiler for Python"; homepage = "https://pyscss.readthedocs.org/en/latest/"; license = licenses.mit; + maintainers = with maintainers; [ ]; }; - } From a4a4d9b2c0f6707a2db26bb90f2bc7fac454f287 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Wed, 1 Jun 2022 22:20:58 +0200 Subject: [PATCH 101/336] python310Packages.pbr: 5.8.1 -> 5.9.0 --- pkgs/development/python-modules/pbr/default.nix | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/pbr/default.nix b/pkgs/development/python-modules/pbr/default.nix index 7a03226b4dde..7fb0574f75a0 100644 --- a/pkgs/development/python-modules/pbr/default.nix +++ b/pkgs/development/python-modules/pbr/default.nix @@ -7,13 +7,14 @@ buildPythonPackage rec { pname = "pbr"; - version = "5.8.1"; + version = "5.9.0"; src = fetchPypi { inherit pname version; - sha256 = "sha256-ZrxaNJEvQIuzklvyEjHLb1kgYme39j81A++GXBopLiU="; + sha256 = "sha256-6Nyi9LQ1YO3vWIE5afUqVs7wIxRsu4kxYm24DmwcQwg="; }; + # importlib-metadata could be added here if it wouldn't cause an infinite recursion propagatedBuildInputs = [ setuptools ]; # check in passthru.tests.pytest to escape infinite recursion with fixtures From 92ea671321165b23fbb22a498e73e3fe73ba33b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Wed, 1 Jun 2022 22:31:13 +0200 Subject: [PATCH 102/336] python310Packages.libcst: 0.4.1 -> 0.4.3, drop inactive maintainer --- .../development/python-modules/libcst/default.nix | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/pkgs/development/python-modules/libcst/default.nix b/pkgs/development/python-modules/libcst/default.nix index ccd12e4aaae3..7d6c185d1cc2 100644 --- a/pkgs/development/python-modules/libcst/default.nix +++ b/pkgs/development/python-modules/libcst/default.nix @@ -1,7 +1,6 @@ { lib , stdenv , buildPythonPackage -, dataclasses , fetchFromGitHub , hypothesis , libiconv @@ -18,23 +17,23 @@ buildPythonPackage rec { pname = "libcst"; - version = "0.4.1"; + version = "0.4.3"; format = "pyproject"; - disabled = pythonOlder "3.6"; + disabled = pythonOlder "3.7"; src = fetchFromGitHub { owner = "instagram"; repo = pname; rev = "v${version}"; - sha256 = "sha256-soAlt1KBpCn5JxM1b2LZ3vOpBn9HPGdbm+BBYbyEkfE="; + sha256 = "sha256-Lm62rVL5f+fu4KzOQMroM0Eu27l5v2dkGtRiIVPFNhg="; }; cargoDeps = rustPlatform.fetchCargoTarball { inherit src; sourceRoot = "source/${cargoRoot}"; name = "${pname}-${version}"; - hash = "sha256:1rz1c0dv3f1h2m5hwdisl3rbqnmifbva4f0c4vygk7rh1q27l515"; + hash = "sha256-i5BYYiILadKEPIJOaWdG1lZNSHfNQnwmc5j0D1jg/kc="; }; cargoRoot = "native"; @@ -56,15 +55,13 @@ buildPythonPackage rec { buildInputs = lib.optionals stdenv.isDarwin [ libiconv ]; propagatedBuildInputs = [ - hypothesis typing-extensions typing-inspect pyyaml - ] ++ lib.optional (pythonOlder "3.7") [ - dataclasses ]; checkInputs = [ + hypothesis pytestCheckHook ]; @@ -88,6 +85,6 @@ buildPythonPackage rec { description = "Concrete Syntax Tree (CST) parser and serializer library for Python"; homepage = "https://github.com/Instagram/libcst"; license = with licenses; [ mit asl20 psfl ]; - maintainers = with maintainers; [ ruuda SuperSandro2000 ]; + maintainers = with maintainers; [ SuperSandro2000 ]; }; } From 6944e6c445af28781abfe04016964998c6b4ea83 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Thu, 2 Jun 2022 15:17:33 +0200 Subject: [PATCH 103/336] python310Packages.cachecontrol: 0.12.10 -> 0.12.11 --- .../python-modules/cachecontrol/default.nix | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/pkgs/development/python-modules/cachecontrol/default.nix b/pkgs/development/python-modules/cachecontrol/default.nix index bee126fbf167..529975f1080b 100644 --- a/pkgs/development/python-modules/cachecontrol/default.nix +++ b/pkgs/development/python-modules/cachecontrol/default.nix @@ -7,12 +7,13 @@ , msgpack , pytestCheckHook , pythonOlder +, redis , requests }: buildPythonPackage rec { pname = "cachecontrol"; - version = "0.12.10"; + version = "0.12.11"; format = "setuptools"; disabled = pythonOlder "3.6"; @@ -21,11 +22,10 @@ buildPythonPackage rec { owner = "ionrock"; repo = pname; rev = "v${version}"; - hash = "sha256-mgvL0q10UbPHY1H3tJprke5p8qNl3HNYoeLAERZTcTs="; + hash = "sha256-uUPIQz/n347Q9G7NDOGuB760B/KxOglUxiS/rYjt5Po="; }; propagatedBuildInputs = [ - lockfile msgpack requests ]; @@ -34,12 +34,17 @@ buildPythonPackage rec { cherrypy mock pytestCheckHook - ]; + ] ++ passthru.optional-dependencies.filecache; pythonImportsCheck = [ "cachecontrol" ]; + passthru.optional-dependencies = { + filecache = [ lockfile ]; + redis = [ redis ]; + }; + meta = with lib; { description = "Httplib2 caching for requests"; homepage = "https://github.com/ionrock/cachecontrol"; From 55531cfbfb22a83bd488aafa8bb7e5dc480c89a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Thu, 2 Jun 2022 15:18:16 +0200 Subject: [PATCH 104/336] python310Packages.cherrypy: properly declare optional dependencies --- .../python-modules/cherrypy/default.nix | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/pkgs/development/python-modules/cherrypy/default.nix b/pkgs/development/python-modules/cherrypy/default.nix index f4272f90d629..6690a913beb2 100644 --- a/pkgs/development/python-modules/cherrypy/default.nix +++ b/pkgs/development/python-modules/cherrypy/default.nix @@ -8,9 +8,11 @@ , objgraph , path , portend +, pyopenssl , pytest-forked , pytest-services , pytestCheckHook +, python-memcached , pythonAtLeast , pythonOlder , requests-toolbelt @@ -38,15 +40,11 @@ buildPythonPackage rec { ]; propagatedBuildInputs = [ - # required cheroot portend more-itertools zc_lockfile jaraco_collections - # optional - routes - simplejson ]; checkInputs = [ @@ -90,6 +88,15 @@ buildPythonPackage rec { "cherrypy" ]; + passthru.optional-dependencies = { + json = [ simplejson ]; + memcached_session = [ python-memcached ]; + routes_dispatcher = [ routes ]; + ssl = [ pyopenssl ]; + # not packaged yet + xcgi = [ /* flup */ ]; + }; + meta = with lib; { description = "Object-oriented HTTP framework"; homepage = "https://www.cherrypy.org"; From 84657298de0a8f93a11aec8e688e67efe14bd745 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Thu, 2 Jun 2022 15:18:40 +0200 Subject: [PATCH 105/336] python310Packages.repoze_lru: add pythonImportsCheck --- pkgs/development/python-modules/repoze_lru/default.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkgs/development/python-modules/repoze_lru/default.nix b/pkgs/development/python-modules/repoze_lru/default.nix index e986f47e6e0d..cfe19f6b6376 100644 --- a/pkgs/development/python-modules/repoze_lru/default.nix +++ b/pkgs/development/python-modules/repoze_lru/default.nix @@ -12,11 +12,12 @@ buildPythonPackage rec { sha256 = "0429a75e19380e4ed50c0694e26ac8819b4ea7851ee1fc7583c8572db80aff77"; }; + pythonImportsCheck = [ "repoze.lru" ]; + meta = with lib; { description = "A tiny LRU cache implementation and decorator"; homepage = "http://www.repoze.org/"; license = licenses.bsd0; maintainers = with maintainers; [ domenkozar ]; }; - } From a40d0cbc5bb510e79cfeebf6d10a6382325aed37 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Thu, 2 Jun 2022 15:19:12 +0200 Subject: [PATCH 106/336] python310Packages.routes: update meta, normalize pname, cleanup --- .../development/python-modules/routes/default.nix | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/pkgs/development/python-modules/routes/default.nix b/pkgs/development/python-modules/routes/default.nix index 1176fcb4eb09..ea548fcfe56f 100644 --- a/pkgs/development/python-modules/routes/default.nix +++ b/pkgs/development/python-modules/routes/default.nix @@ -5,30 +5,29 @@ , six , soupsieve , webob -, coverage -, webtest }: buildPythonPackage rec { - pname = "Routes"; + pname = "routes"; version = "2.5.1"; src = fetchPypi { - inherit pname version; + pname = "Routes"; + inherit version; sha256 = "b6346459a15f0cbab01a45a90c3d25caf980d4733d628b4cc1952b865125d053"; }; propagatedBuildInputs = [ repoze_lru six soupsieve webob ]; + # incompatible with latest soupsieve doCheck = false; - checkInputs = [ coverage soupsieve webtest ]; pythonImportsCheck = [ "routes" ]; meta = with lib; { - description = "A Python re-implementation of the Rails routes system for mapping URLs to application actions"; - homepage = "http://routes.groovie.org/"; + description = "Re-implementation of the Rails routes system for mapping URLs to application actions"; + homepage = "https://github.com/bbangert/routes"; license = licenses.mit; + maintainers = with maintainers; [ ]; }; - } From 1d5ed925d529cbb37e8d666d968802c48fd6c602 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Thu, 2 Jun 2022 15:19:35 +0200 Subject: [PATCH 107/336] python310Packages.soupsieve: document circular dependency, cleanup --- .../python-modules/soupsieve/default.nix | 23 ++++++++----------- 1 file changed, 9 insertions(+), 14 deletions(-) diff --git a/pkgs/development/python-modules/soupsieve/default.nix b/pkgs/development/python-modules/soupsieve/default.nix index 6c50cc6e1150..8d92e49427af 100644 --- a/pkgs/development/python-modules/soupsieve/default.nix +++ b/pkgs/development/python-modules/soupsieve/default.nix @@ -1,8 +1,6 @@ { lib , buildPythonPackage , fetchPypi -, pytest -, beautifulsoup4 , isPy3k , backports_functools_lru_cache }: @@ -16,21 +14,18 @@ buildPythonPackage rec { sha256 = "b8d49b1cd4f037c7082a9683dfa1801aa2597fb11c3a1155b7a5b94829b4f1f9"; }; - checkPhase = '' - py.test - ''; - - checkInputs = [ pytest beautifulsoup4 ]; - propagatedBuildInputs = lib.optional (!isPy3k) backports_functools_lru_cache; - # Circular test dependency on beautifulsoup4 + # Circular dependency on beautifulsoup4 doCheck = false; - meta = { - description = "A CSS4 selector implementation for Beautiful Soup"; - license = lib.licenses.mit; - homepage = "https://github.com/facelessuser/soupsieve"; - }; + # Circular dependency on beautifulsoup4 + # pythonImportsCheck = [ "soupsieve" ]; + meta = with lib; { + description = "A CSS4 selector implementation for Beautiful Soup"; + license = licenses.mit; + homepage = "https://github.com/facelessuser/soupsieve"; + maintainers = with maintainers; [ ]; + }; } From 548ae98b588e433a2f82e6338052c7fd5e92fcc3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Thu, 2 Jun 2022 16:04:08 +0200 Subject: [PATCH 108/336] dtc: fix python 3.10 compatibility --- pkgs/development/compilers/dtc/default.nix | 25 +++++++++++++++-- .../compilers/dtc/python-3.10.patch | 28 +++++++++++++++++++ 2 files changed, 50 insertions(+), 3 deletions(-) create mode 100644 pkgs/development/compilers/dtc/python-3.10.patch diff --git a/pkgs/development/compilers/dtc/default.nix b/pkgs/development/compilers/dtc/default.nix index 04dca4772a98..594f9af44dbd 100644 --- a/pkgs/development/compilers/dtc/default.nix +++ b/pkgs/development/compilers/dtc/default.nix @@ -1,5 +1,15 @@ -{ stdenv, lib, fetchgit, flex, bison, pkg-config, which -, pythonSupport ? false, python ? null, swig, libyaml +{ stdenv +, lib +, fetchgit +, fetchpatch +, flex +, bison +, pkg-config +, which +, pythonSupport ? false +, python ? null +, swig +, libyaml }: stdenv.mkDerivation rec { @@ -12,8 +22,17 @@ stdenv.mkDerivation rec { sha256 = "sha256-gx9LG3U9etWhPxm7Ox7rOu9X5272qGeHqZtOe68zFs4="; }; + patches = [ + # fix python 3.10 compatibility + # based on without requiring the setup.py rework + # https://git.kernel.org/pub/scm/utils/dtc/dtc.git/commit/?id=383e148b70a47ab15f97a19bb999d54f9c3e810f + ./python-3.10.patch + ]; + + nativeBuildInputs = [ flex bison pkg-config which ] + ++ lib.optionals pythonSupport [ python swig ]; + buildInputs = [ libyaml ]; - nativeBuildInputs = [ flex bison pkg-config which ] ++ lib.optionals pythonSupport [ python swig ]; postPatch = '' patchShebangs pylibfdt/ diff --git a/pkgs/development/compilers/dtc/python-3.10.patch b/pkgs/development/compilers/dtc/python-3.10.patch new file mode 100644 index 000000000000..e6725a6831f1 --- /dev/null +++ b/pkgs/development/compilers/dtc/python-3.10.patch @@ -0,0 +1,28 @@ +diff --git a/pylibfdt/libfdt.i b/pylibfdt/libfdt.i +index 51ee801..075ef70 100644 +--- a/pylibfdt/libfdt.i ++++ b/pylibfdt/libfdt.i +@@ -1044,9 +1044,9 @@ typedef uint32_t fdt32_t; + $result = Py_None; + else + %#if PY_VERSION_HEX >= 0x03000000 +- $result = Py_BuildValue("y#", $1, *arg4); ++ $result = Py_BuildValue("y#", $1, (Py_ssize_t)*arg4); + %#else +- $result = Py_BuildValue("s#", $1, *arg4); ++ $result = Py_BuildValue("s#", $1, (Py_ssize_t)*arg4); + %#endif + } + +diff --git a/pylibfdt/setup.py b/pylibfdt/setup.py +index ef40f15..81e161a 100755 +--- a/pylibfdt/setup.py ++++ b/pylibfdt/setup.py +@@ -42,6 +42,7 @@ def get_version(): + libfdt_module = Extension( + '_libfdt', + sources=[os.path.join(srcdir, 'libfdt.i')], ++ define_macros=[('PY_SSIZE_T_CLEAN', None)], + include_dirs=[os.path.join(srcdir, '../libfdt')], + libraries=['fdt'], + library_dirs=[os.path.join(top_builddir, 'libfdt')], From 00f527c9233ca5e006bcc05274820cf69ccb6795 Mon Sep 17 00:00:00 2001 From: Nikolay Korotkiy Date: Thu, 2 Jun 2022 18:17:12 +0300 Subject: [PATCH 109/336] =?UTF-8?q?python3Packages.osmnx:=201.1.2=20?= =?UTF-8?q?=E2=86=92=201.2.0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pkgs/development/python-modules/osmnx/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/development/python-modules/osmnx/default.nix b/pkgs/development/python-modules/osmnx/default.nix index 75a2ce44630b..4442d2ddee01 100755 --- a/pkgs/development/python-modules/osmnx/default.nix +++ b/pkgs/development/python-modules/osmnx/default.nix @@ -3,14 +3,14 @@ buildPythonPackage rec { pname = "osmnx"; - version = "1.1.2"; - disabled = pythonOlder "3.6"; + version = "1.2.0"; + disabled = pythonOlder "3.8"; src = fetchFromGitHub { owner = "gboeing"; repo = pname; rev = "v${version}"; - sha256 = "sha256-qrTAXZFm88elMrVjvGwfdNwTA/PRdCOHFqpcgoKVGNk="; + sha256 = "sha256-HfgMmPEiKstMXV0rtul8QLxB1FY32Ws7IEonBB+qZOc="; }; propagatedBuildInputs = [ geopandas matplotlib networkx numpy pandas requests Rtree shapely folium scikit-learn scipy gdal rasterio ]; From a972e002a8cb43582756d246bc8268b84710ccee Mon Sep 17 00:00:00 2001 From: Nikolay Korotkiy Date: Thu, 2 Jun 2022 18:05:58 +0300 Subject: [PATCH 110/336] =?UTF-8?q?python3Packages.networkx:=202.7.1=20?= =?UTF-8?q?=E2=86=92=202.8.2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../development/python-modules/networkx/default.nix | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/pkgs/development/python-modules/networkx/default.nix b/pkgs/development/python-modules/networkx/default.nix index 140eb9bb24c9..3fb08348c7ff 100644 --- a/pkgs/development/python-modules/networkx/default.nix +++ b/pkgs/development/python-modules/networkx/default.nix @@ -2,26 +2,25 @@ , buildPythonPackage , fetchPypi , nose -, pytest +, pytestCheckHook , decorator , setuptools +, pythonOlder }: buildPythonPackage rec { pname = "networkx"; # upgrade may break sage, please test the sage build or ping @timokau on upgrade - version = "2.7.1"; + version = "2.8.2"; + disabled = pythonOlder "3.8"; src = fetchPypi { inherit pname version; - sha256 = "sha256-0RlLp1Pl7tB83s0dI8XNejx3IJm9jb0v6jZniM9N57o="; + sha256 = "sha256-rpnJsNNeW0pizxz+oB5bNjPY0C9KDq1paFtufeW4Xqs="; }; propagatedBuildInputs = [ decorator setuptools ]; - checkInputs = [ nose pytest]; - checkPhase = '' - pytest - ''; + checkInputs = [ nose pytestCheckHook ]; meta = { homepage = "https://networkx.github.io/"; From eebbe8c318f9875827675078ea45c1607bad5cce Mon Sep 17 00:00:00 2001 From: Nikolay Korotkiy Date: Thu, 2 Jun 2022 18:05:01 +0300 Subject: [PATCH 111/336] =?UTF-8?q?python3Packages.Rtree:=200.9.7=20?= =?UTF-8?q?=E2=86=92=201.0.0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../python-modules/Rtree/default.nix | 34 +++++++++++-------- 1 file changed, 19 insertions(+), 15 deletions(-) diff --git a/pkgs/development/python-modules/Rtree/default.nix b/pkgs/development/python-modules/Rtree/default.nix index eb4dae8e3aa2..0c599b18d73a 100644 --- a/pkgs/development/python-modules/Rtree/default.nix +++ b/pkgs/development/python-modules/Rtree/default.nix @@ -1,32 +1,36 @@ -{ lib, - stdenv, - buildPythonPackage, - fetchPypi, - libspatialindex, - numpy, - pytestCheckHook +{ lib +, stdenv +, buildPythonPackage +, fetchPypi +, libspatialindex +, numpy +, pytestCheckHook +, pythonOlder }: buildPythonPackage rec { - pname = "Rtree"; - version = "0.9.7"; + pname = "rtree"; + version = "1.0.0"; + disabled = pythonOlder "3.7"; src = fetchPypi { - inherit pname version; - sha256 = "be8772ca34699a9ad3fb4cfe2cfb6629854e453c10b3328039301bbfc128ca3e"; + pname = "Rtree"; + inherit version; + sha256 = "sha256-0Eg0ghITRrCTuaQlGNQPkhrfRFkVt66jB+smdoyDloI="; }; - buildInputs = [ libspatialindex ]; - - patchPhase = '' + postPatch = '' substituteInPlace rtree/finder.py --replace \ - "find_library('spatialindex_c')" "'${libspatialindex}/lib/libspatialindex_c${stdenv.hostPlatform.extensions.sharedLibrary}'" + 'find_library("spatialindex_c")' '"${libspatialindex}/lib/libspatialindex_c${stdenv.hostPlatform.extensions.sharedLibrary}"' ''; + buildInputs = [ libspatialindex ]; + checkInputs = [ numpy pytestCheckHook ]; + pythonImportsCheck = [ "rtree" ]; meta = with lib; { From 2933cc953c68c352835a53a3df8eef16e802384f Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Fri, 3 Jun 2022 00:48:34 +0200 Subject: [PATCH 112/336] python310Packages.responses: 0.20.0 -> 0.21.0 --- pkgs/development/python-modules/responses/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/responses/default.nix b/pkgs/development/python-modules/responses/default.nix index 7f9372dcdb71..1343aa6cfd01 100644 --- a/pkgs/development/python-modules/responses/default.nix +++ b/pkgs/development/python-modules/responses/default.nix @@ -10,7 +10,7 @@ buildPythonPackage rec { pname = "responses"; - version = "0.20.0"; + version = "0.21.0"; format = "setuptools"; disabled = pythonOlder "3.7"; @@ -19,7 +19,7 @@ buildPythonPackage rec { owner = "getsentry"; repo = pname; rev = version; - hash = "sha256-dhIKMQXBJfZGIanJN1bFmlr/FYL1UYgYKGYaSznKhZs="; + hash = "sha256-qYohrXrQkUBPo7yC+ZOwidDaCg/2nteXKAOCUvR4k2Q="; }; propagatedBuildInputs = [ From af4aa2f2e4faeb10e6e8f4ed00e902c2d8600cb9 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Fri, 3 Jun 2022 00:50:06 +0200 Subject: [PATCH 113/336] python310Packages.cachetools: 5.0.0 -> 5.2.0 --- pkgs/development/python-modules/cachetools/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/cachetools/default.nix b/pkgs/development/python-modules/cachetools/default.nix index f38eb328e3d9..9de26ad53395 100644 --- a/pkgs/development/python-modules/cachetools/default.nix +++ b/pkgs/development/python-modules/cachetools/default.nix @@ -7,7 +7,7 @@ buildPythonPackage rec { pname = "cachetools"; - version = "5.0.0"; + version = "5.2.0"; format = "setuptools"; disabled = pythonOlder "3.7"; @@ -16,7 +16,7 @@ buildPythonPackage rec { owner = "tkem"; repo = pname; rev = "v${version}"; - hash = "sha256-urTkls1S83m7Eo7chPaQc5gxz0omZBToNYa8upQEiOo="; + hash = "sha256-DheHTD62f1ZxoiS0y0/CzDMHvKGmEiEUAX6oaqTpB78="; }; checkInputs = [ From d028f1ee858df6d4da01cff2413d1eeb35b186ef Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Fri, 3 Jun 2022 01:27:27 +0200 Subject: [PATCH 114/336] python310Packages.httpcore: 0.14.7 -> 0.15.0 --- .../python-modules/httpcore/default.nix | 44 +++++++++++-------- 1 file changed, 25 insertions(+), 19 deletions(-) diff --git a/pkgs/development/python-modules/httpcore/default.nix b/pkgs/development/python-modules/httpcore/default.nix index d2286b6b022b..5016ece96f2f 100644 --- a/pkgs/development/python-modules/httpcore/default.nix +++ b/pkgs/development/python-modules/httpcore/default.nix @@ -1,33 +1,32 @@ { lib -, buildPythonPackage -, pythonOlder -, fetchFromGitHub , anyio +, buildPythonPackage , certifi +, fetchFromGitHub , h11 , h2 , pproxy , pytest-asyncio -, pytestCheckHook -, pytest-cov , pytest-httpbin +, pytest-trio +, pytestCheckHook +, pythonOlder , sniffio , socksio -, trio -, trustme -, uvicorn }: buildPythonPackage rec { pname = "httpcore"; - version = "0.14.7"; - disabled = pythonOlder "3.6"; + version = "0.15.0"; + format = "setuptools"; + + disabled = pythonOlder "3.7"; src = fetchFromGitHub { owner = "encode"; repo = pname; rev = version; - sha256 = "sha256-h+3MfP1p/ifN0mF/xxrOKPTjD4Q7WzRh94YO4DYSuXE="; + hash = "sha256-FF3Yzac9nkVcA5bHVOz2ymvOelSfJ0K6oU8UWpBDcmo="; }; postPatch = '' @@ -43,23 +42,30 @@ buildPythonPackage rec { ]; passthru.optional-dependencies = { - http2 = [ h2 ]; - socks = [ socksio ]; + http2 = [ + h2 + ]; + socks = [ + socksio + ]; }; checkInputs = [ pproxy pytest-asyncio - pytestCheckHook - pytest-cov pytest-httpbin - trio - trustme - uvicorn + pytest-trio + pytestCheckHook ] ++ passthru.optional-dependencies.http2 ++ passthru.optional-dependencies.socks; - pythonImportsCheck = [ "httpcore" ]; + pythonImportsCheck = [ + "httpcore" + ]; + + pytestFlagsArray = [ + "--asyncio-mode=strict" + ]; meta = with lib; { description = "A minimal low-level HTTP client"; From 99ecb8ded55ac57929d4e8b462bd3a81d81bd2a8 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Fri, 3 Jun 2022 01:32:32 +0200 Subject: [PATCH 115/336] python310Packages.httpx: 0.22.0 -> 0.23.0 --- .../python-modules/httpx/default.nix | 60 ++++++++++--------- 1 file changed, 32 insertions(+), 28 deletions(-) diff --git a/pkgs/development/python-modules/httpx/default.nix b/pkgs/development/python-modules/httpx/default.nix index 0070d5d04eff..ab5a6820529e 100644 --- a/pkgs/development/python-modules/httpx/default.nix +++ b/pkgs/development/python-modules/httpx/default.nix @@ -1,67 +1,74 @@ { lib -, async_generator -, buildPythonPackage -, pythonOlder -, fetchFromGitHub -, certifi -, charset-normalizer -, httpcore -, rfc3986 -, sniffio -, h2 -, socksio -, isPyPy , brotli , brotlicffi +, buildPythonPackage +, certifi +, chardet , click -, rich +, fetchFromGitHub +, h2 +, httpcore +, isPyPy , pygments , python +, pythonOlder +, rfc3986 +, rich +, sniffio +, socksio , pytestCheckHook , pytest-asyncio , pytest-trio -, typing-extensions , trustme , uvicorn }: buildPythonPackage rec { pname = "httpx"; - version = "0.22.0"; + version = "0.23.0"; format = "setuptools"; - disabled = pythonOlder "3.6"; + disabled = pythonOlder "3.7"; src = fetchFromGitHub { owner = "encode"; repo = pname; rev = version; - sha256 = "sha256-hQmQodGpVG23IZSsWV7rB1iB6QAudDao/8YshIgpmas="; + hash = "sha256-s11Yeizm3y3w5D6ACQ2wp/KJ0+1ALY/R71IlTP2pMC4="; }; propagatedBuildInputs = [ certifi - charset-normalizer httpcore rfc3986 sniffio - ] ++ lib.optionals (pythonOlder "3.7") [ - async_generator ]; passthru.optional-dependencies = { - http2 = [ h2 ]; - socks = [ socksio ]; - brotli = if isPyPy then [ brotlicffi ] else [ brotli ]; - cli = [ click rich pygments ]; + http2 = [ + h2 + ]; + socks = [ + socksio + ]; + brotli = if isPyPy then [ + brotlicffi + ] else [ + brotli + ]; + cli = [ + click + rich + pygments + ]; }; checkInputs = [ + chardet pytestCheckHook pytest-asyncio pytest-trio trustme - typing-extensions uvicorn ] ++ passthru.optional-dependencies.http2 ++ passthru.optional-dependencies.brotli @@ -88,9 +95,6 @@ buildPythonPackage rec { # httpcore.ConnectError: [Errno -2] Name or service not known "test_async_proxy_close" "test_sync_proxy_close" - # sensitive to charset_normalizer output - "iso-8859-1" - "test_response_no_charset_with_iso_8859_1_content" ]; disabledTestPaths = [ From a9221ef2bf5d2875531dfd4c03ffb1b132ce79f0 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Fri, 3 Jun 2022 01:33:14 +0200 Subject: [PATCH 116/336] python310Packages.pytest-httpx: 0.20.0 -> 0.21.0 --- pkgs/development/python-modules/pytest-httpx/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/pytest-httpx/default.nix b/pkgs/development/python-modules/pytest-httpx/default.nix index 1fb4023b2d9b..6a66727b1ebb 100644 --- a/pkgs/development/python-modules/pytest-httpx/default.nix +++ b/pkgs/development/python-modules/pytest-httpx/default.nix @@ -10,7 +10,7 @@ buildPythonPackage rec { pname = "pytest-httpx"; - version = "0.20.0"; + version = "0.21.0"; format = "setuptools"; disabled = pythonOlder "3.6"; @@ -19,7 +19,7 @@ buildPythonPackage rec { owner = "Colin-b"; repo = "pytest_httpx"; rev = "v${version}"; - sha256 = "sha256-9LDbVZgTmfyYAWylUy6Q4KH2gKpAa/o4IhqQV31BVgY="; + hash = "sha256-mUzmtZCguaab4fAE7VcUhv+NQVYiPpxxHpiVVlzwrIo="; }; buildInputs = [ From 0af0534fc4e8533e4b11e63923a87e0496cac9ba Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Fri, 3 Jun 2022 01:37:44 +0200 Subject: [PATCH 117/336] python310Packages.python-slugify: 6.1.1 -> 6.1.2 --- .../python-modules/python-slugify/default.nix | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/pkgs/development/python-modules/python-slugify/default.nix b/pkgs/development/python-modules/python-slugify/default.nix index 2f22a20afb35..5f985f0fafdd 100644 --- a/pkgs/development/python-modules/python-slugify/default.nix +++ b/pkgs/development/python-modules/python-slugify/default.nix @@ -1,6 +1,6 @@ { lib , buildPythonPackage -, fetchPypi +, fetchFromGitHub , pytestCheckHook , pythonOlder , text-unidecode @@ -9,14 +9,16 @@ buildPythonPackage rec { pname = "python-slugify"; - version = "6.1.1"; + version = "6.1.2"; format = "setuptools"; disabled = pythonOlder "3.6"; - src = fetchPypi { - inherit pname version; - hash = "sha256-AAAzl/TjFBTpIs5WezpNoozxQ2pT0zLJrutRx9jEaf0="; + src = fetchFromGitHub { + owner = "un33k"; + repo = pname; + rev = "v${version}"; + hash = "sha256-JGjUNBEMuICsaClQGDSGX4qFRjecVKzmpPNRUTvfwho="; }; propagatedBuildInputs = [ From c43e4f66293b0f8386983ea662e52c668820af23 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Fri, 3 Jun 2022 01:38:09 +0200 Subject: [PATCH 118/336] python310Packages.simple-rest-client: 1.1.2 -> 1.1.3 --- .../development/python-modules/simple-rest-client/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/simple-rest-client/default.nix b/pkgs/development/python-modules/simple-rest-client/default.nix index d4cbfdbfb94a..4b5b2ed06811 100644 --- a/pkgs/development/python-modules/simple-rest-client/default.nix +++ b/pkgs/development/python-modules/simple-rest-client/default.nix @@ -12,7 +12,7 @@ buildPythonPackage rec { pname = "simple-rest-client"; - version = "1.1.2"; + version = "1.1.3"; format = "setuptools"; disabled = pythonOlder "3.8"; @@ -21,7 +21,7 @@ buildPythonPackage rec { owner = "allisson"; repo = "python-simple-rest-client"; rev = version; - sha256 = "sha256-kyoFtPa94c5EAT7wBEXdkPEg8Bp3hJQQoFsutap1qvs="; + sha256 = "sha256-HdGYLDrqQvd7hvjwhC5dY2amdHUZHTYJvD1QP89lcXU="; }; propagatedBuildInputs = [ From d465833babb27397a1d5bbbda96bd561904fde4e Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Thu, 2 Jun 2022 21:49:40 +0200 Subject: [PATCH 119/336] unicorn: 2.0.0-rc5 -> 2.0.0-rc7 --- pkgs/development/libraries/unicorn/default.nix | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/pkgs/development/libraries/unicorn/default.nix b/pkgs/development/libraries/unicorn/default.nix index 30ceba76163e..e558bbbbb542 100644 --- a/pkgs/development/libraries/unicorn/default.nix +++ b/pkgs/development/libraries/unicorn/default.nix @@ -1,4 +1,5 @@ -{ lib, stdenv +{ lib +, stdenv , fetchFromGitHub , pkg-config , cmake @@ -7,17 +8,23 @@ stdenv.mkDerivation rec { pname = "unicorn"; - version = "2.0.0-rc5"; + version = "2.0.0-rc7"; src = fetchFromGitHub { owner = "unicorn-engine"; repo = pname; rev = version; - sha256 = "1q9k8swnq4qsi54zdfaap69z56w3yj4n4ggm9pscmmmr69nply5f"; + hash = "sha256-qlxtFCJBmouPuUEu8RduZM+rbOr52sGjdb8ZRHWmJ/w="; }; - nativeBuildInputs = [ pkg-config cmake ]; - buildInputs = lib.optionals stdenv.isDarwin [ IOKit ]; + nativeBuildInputs = [ + cmake + pkg-config + ]; + + buildInputs = lib.optionals stdenv.isDarwin [ + IOKit + ]; meta = with lib; { description = "Lightweight multi-platform CPU emulator library"; From 2370e4ec3afaeccb05ac0ede7f7affa0a293a6db Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Thu, 2 Jun 2022 21:53:09 +0200 Subject: [PATCH 120/336] python310Packages.pefile: 2021.9.3 -> 2022.5.30 --- pkgs/development/python-modules/pefile/default.nix | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/pkgs/development/python-modules/pefile/default.nix b/pkgs/development/python-modules/pefile/default.nix index 1a793644fb29..b1707670e768 100644 --- a/pkgs/development/python-modules/pefile/default.nix +++ b/pkgs/development/python-modules/pefile/default.nix @@ -8,14 +8,16 @@ buildPythonPackage rec { pname = "pefile"; - version = "2021.9.3"; + version = "2022.5.30"; + format = "setuptools"; + disabled = pythonOlder "3.6"; src = fetchFromGitHub { owner = "erocarrera"; repo = pname; rev = "v${version}"; - sha256 = "0sr17rmqpr874m8rpkp8xdz8kjshhimbfgq13qy4lscaiznmlf0d"; + hash = "sha256-Cv20hJsErHFSuS5Q1kqLNp4DAsPXv/eFhaU9oYECSeI="; }; nativeBuildInputs = [ @@ -29,12 +31,14 @@ buildPythonPackage rec { # Test data encrypted doCheck = false; - pythonImportsCheck = [ "pefile" ]; + pythonImportsCheck = [ + "pefile" + ]; meta = with lib; { description = "Multi-platform Python module to parse and work with Portable Executable (aka PE) files"; homepage = "https://github.com/erocarrera/pefile"; license = licenses.mit; - maintainers = [ maintainers.pamplemousse ]; + maintainers = with maintainers; [ pamplemousse ]; }; } From ca7834736495c8d44c9784ee42bb38c8d52d37c1 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Thu, 2 Jun 2022 22:00:12 +0200 Subject: [PATCH 121/336] python310Packages.pyelftools: 0.27 -> 0.28 --- .../python-modules/pyelftools/default.nix | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/pkgs/development/python-modules/pyelftools/default.nix b/pkgs/development/python-modules/pyelftools/default.nix index ef9a7f1368ee..cec999bf999a 100644 --- a/pkgs/development/python-modules/pyelftools/default.nix +++ b/pkgs/development/python-modules/pyelftools/default.nix @@ -1,19 +1,23 @@ { lib +, stdenv , buildPythonPackage , fetchFromGitHub , python -, stdenv +, pythonOlder }: buildPythonPackage rec { pname = "pyelftools"; - version = "0.27"; + version = "0.28"; + format = "setuptools"; + + disabled = pythonOlder "3.7"; src = fetchFromGitHub { owner = "eliben"; repo = pname; rev = "v${version}"; - sha256 = "09igdym2qj2fvfcazbz25qybmgz7ccrn25xn3havfkdkka0z0i3p"; + hash = "sha256-+T5C0ah2oj5E8fWaQbuzYRVgD5bSiUbaArrlxNLojvw="; }; doCheck = stdenv.hostPlatform.system == "x86_64-linux"; @@ -23,7 +27,9 @@ buildPythonPackage rec { ${python.interpreter} test/all_tests.py ''; - pythonImportsCheck = [ "elftools" ]; + pythonImportsCheck = [ + "elftools" + ]; meta = with lib; { description = "Python library for analyzing ELF files and DWARF debugging information"; From 7931c07d3ab893e24bdeeef8b22141c082d98e5d Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Thu, 2 Jun 2022 22:00:57 +0200 Subject: [PATCH 122/336] python310Packages.qiling: 1.4.2 -> 1.4.3 --- pkgs/development/python-modules/qiling/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/qiling/default.nix b/pkgs/development/python-modules/qiling/default.nix index 729954328140..fcceaa3d007f 100644 --- a/pkgs/development/python-modules/qiling/default.nix +++ b/pkgs/development/python-modules/qiling/default.nix @@ -16,14 +16,14 @@ buildPythonPackage rec { pname = "qiling"; - version = "1.4.2"; + version = "1.4.3"; format = "setuptools"; disabled = pythonOlder "3.7"; src = fetchPypi { inherit pname version; - hash = "sha256-myUGzNP4bf90d2gY5ZlYbVlTG640dj/Qha8/aMydvuw="; + hash = "sha256-sndRKknfY3LgqUf6FOobwczIStjzZkudVgUR1EQSyeU="; }; propagatedBuildInputs = [ From d7be0514dfae639f88faa7aa5972b4d2970e4de0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Fri, 3 Jun 2022 01:47:25 +0200 Subject: [PATCH 123/336] python310Packages.xdis: unstable-2022-04-13 -> 6.0.4 --- pkgs/development/python-modules/xdis/default.nix | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/pkgs/development/python-modules/xdis/default.nix b/pkgs/development/python-modules/xdis/default.nix index 291da467e9ed..53ff69168a59 100644 --- a/pkgs/development/python-modules/xdis/default.nix +++ b/pkgs/development/python-modules/xdis/default.nix @@ -10,7 +10,7 @@ buildPythonPackage rec { pname = "xdis"; - version = "unstable-2022-04-13"; + version = "6.0.4"; format = "setuptools"; disabled = pythonOlder "3.6"; @@ -18,9 +18,8 @@ buildPythonPackage rec { src = fetchFromGitHub { owner = "rocky"; repo = "python-xdis"; - # Support for later Python releases is missing in 6.0.3 - rev = "f888df7df5cb8839927e9187c258769cc77fb7a3"; - hash = "sha256-V1ws5GibRkutFRNcjlP7aW+AshSyWavXIxuwznVbRlU="; + rev = version; + hash = "sha256-CRZG898xCwukq+9YVkyXMP8HcuJ9GtvDhy96kxvRFks="; }; propagatedBuildInputs = [ @@ -48,7 +47,7 @@ buildPythonPackage rec { meta = with lib; { description = "Python cross-version byte-code disassembler and marshal routines"; - homepage = "https://github.com/rocky/python-xdis/"; + homepage = "https://github.com/rocky/python-xdis"; license = licenses.gpl2Plus; maintainers = with maintainers; [ ]; }; From a2004aff3706d807013b92dca84fd55d9e25a220 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Fri, 3 Jun 2022 01:28:16 +0200 Subject: [PATCH 124/336] python3Packages.numpy: 1.21.5 -> 1.21.6 https://github.com/numpy/numpy/releases/tag/v1.21.6 --- pkgs/development/python-modules/numpy/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/numpy/default.nix b/pkgs/development/python-modules/numpy/default.nix index 2fbe1a7a694c..a163ef6449a9 100644 --- a/pkgs/development/python-modules/numpy/default.nix +++ b/pkgs/development/python-modules/numpy/default.nix @@ -44,7 +44,7 @@ in buildPythonPackage rec { # Attention! v1.22.0 breaks scipy and by extension scikit-learn, so # build both to verify they don't break. # https://github.com/scipy/scipy/issues/15414 - version = "1.21.5"; + version = "1.21.6"; format = "pyproject.toml"; disabled = pythonOlder "3.7"; @@ -52,7 +52,7 @@ in buildPythonPackage rec { src = fetchPypi { inherit pname version; extension = "zip"; - sha256 = "sha256-alkovGJBJk3OXtUJ5m8zZ2/Jf0ZOepGe3GcvtVMiIe4="; + sha256 = "sha256-7LVSUROXBmaf3sL/BzyY746ahEc+UecWIRtBqg8Y5lY="; }; patches = lib.optionals python.hasDistutilsCxxPatch [ From 00908f68a09cfeac3df876fff39502ef570b5359 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Fri, 3 Jun 2022 02:03:33 +0200 Subject: [PATCH 125/336] python3Packages.sqlalchemy: 1.4.36 -> 1.4.37 https://github.com/sqlalchemy/sqlalchemy/releases/tag/rel_1_4_37 --- pkgs/development/python-modules/sqlalchemy/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/sqlalchemy/default.nix b/pkgs/development/python-modules/sqlalchemy/default.nix index 0bed203007c1..544bdccd2cbb 100644 --- a/pkgs/development/python-modules/sqlalchemy/default.nix +++ b/pkgs/development/python-modules/sqlalchemy/default.nix @@ -13,11 +13,11 @@ buildPythonPackage rec { pname = "SQLAlchemy"; - version = "1.4.36"; + version = "1.4.37"; src = fetchPypi { inherit pname version; - hash = "sha256-ZGeKwyHWSkWQHvLiRyXsXng/H0pYgwXhlkMUR+es4kM="; + hash = "sha256-Noj5LGLbbF3yaOImSJEHjxfsuR4xQbQA8uKND3V5beo="; }; propagatedBuildInputs = [ From ac1db344b61a385a224bde671f31a7ed23fde426 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Fri, 3 Jun 2022 01:58:27 +0200 Subject: [PATCH 126/336] python310Packages.m2r: fix tests under python 3.10 --- pkgs/development/python-modules/m2r/default.nix | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/pkgs/development/python-modules/m2r/default.nix b/pkgs/development/python-modules/m2r/default.nix index fd1483826177..526f2b128678 100644 --- a/pkgs/development/python-modules/m2r/default.nix +++ b/pkgs/development/python-modules/m2r/default.nix @@ -1,5 +1,6 @@ { lib , buildPythonPackage +, fetchpatch , fetchPypi , docutils , mistune @@ -15,6 +16,14 @@ buildPythonPackage rec { sha256 = "bf90bad66cda1164b17e5ba4a037806d2443f2a4d5ddc9f6a5554a0322aaed99"; }; + patches = [ + # fix tests in python 3.10 + (fetchpatch { + url = "https://github.com/miyakogi/m2r/commit/58ee9cabdadf5e3deb13037f3052238f0f2bffcd.patch"; + sha256 = "sha256-CN3PWmnk7xsn1wngRHuEWmDTP3HtVNxkFv0xzD2Zjlo="; + }) + ]; + postPatch = '' substituteInPlace tests/test_cli.py \ --replace "optional" "positional" From f3270c331160880ded29098a6088380e3fb980b4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Fri, 3 Jun 2022 02:02:13 +0200 Subject: [PATCH 127/336] python310Packages.billiard: disable flaky test --- pkgs/development/python-modules/billiard/default.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/development/python-modules/billiard/default.nix b/pkgs/development/python-modules/billiard/default.nix index f02bef97ba34..a2aaa1027c5d 100644 --- a/pkgs/development/python-modules/billiard/default.nix +++ b/pkgs/development/python-modules/billiard/default.nix @@ -25,6 +25,11 @@ buildPythonPackage rec { pytestCheckHook ]; + disabledTests = [ + # psutil.NoSuchProcess: process no longer exists (pid=168) + "test_set_pdeathsig" + ]; + pythonImportsCheck = [ "billiard" ]; From 270c6472ad26a00df238dcc73bed1b34a365dec0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Fri, 3 Jun 2022 02:04:25 +0200 Subject: [PATCH 128/336] python310Packages.pgpy: ignore broken test --- pkgs/development/python-modules/pgpy/default.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/development/python-modules/pgpy/default.nix b/pkgs/development/python-modules/pgpy/default.nix index 3c2e2c22a88b..a53711a4de62 100644 --- a/pkgs/development/python-modules/pgpy/default.nix +++ b/pkgs/development/python-modules/pgpy/default.nix @@ -25,6 +25,11 @@ buildPythonPackage rec { pytestCheckHook ]; + disabledTests = [ + # assertions contains extra: IDEA has been deprecated + "test_encrypt_bad_cipher" + ]; + meta = with lib; { homepage = "https://github.com/SecurityInnovation/PGPy"; description = "Pretty Good Privacy for Python 2 and 3"; From fd028a2a645f9b926368c0084405c1d1e8d76abd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Thu, 2 Jun 2022 23:53:58 +0000 Subject: [PATCH 129/336] python310Packages.pylink-square: 0.8.1 -> 0.13.0 https://github.com/square/pylink/blob/v0.13.0/CHANGELOG.md --- .../python-modules/pylink-square/default.nix | 33 +++++++------------ 1 file changed, 12 insertions(+), 21 deletions(-) diff --git a/pkgs/development/python-modules/pylink-square/default.nix b/pkgs/development/python-modules/pylink-square/default.nix index 287e8c338a81..7da521ef48fe 100644 --- a/pkgs/development/python-modules/pylink-square/default.nix +++ b/pkgs/development/python-modules/pylink-square/default.nix @@ -6,44 +6,35 @@ , psutil , six , future +, pytestCheckHook }: -let - mock' = mock.overridePythonAttrs (old: rec { - version = "2.0.0"; - src = fetchPypi { - inherit (old) pname; - inherit version; - sha256 = "1flbpksir5sqrvq2z0dp8sl4bzbadg21sj4d42w3klpdfvgvcn5i"; - }; - }); -in buildPythonPackage rec { +buildPythonPackage rec { pname = "pylink-square"; - version = "0.8.1"; + version = "0.13.0"; + + format = "setuptools"; src = fetchFromGitHub { owner = "square"; repo = "pylink"; rev = "v${version}"; - sha256 = "1q5sm1017pcqcgwhsliiiv1wh609lrjdlc8f5ihlschk1d0qidpd"; + hash = "sha256-SH2oxOlsX5dE8wMXpWPA/rEVrJwxJzizsOiYbwaGjLw="; }; - buildInputs = [ mock' ]; propagatedBuildInputs = [ psutil six future ]; - preCheck = '' - # For an unknown reason, `pylink --version` output is different - # inside the nix build environment across different python versions - substituteInPlace tests/unit/test_main.py --replace \ - "expected = 'pylink %s' % pylink.__version__" \ - "return" - ''; + checkInputs = [ + mock + pytestCheckHook + ]; pythonImportsCheck = [ "pylink" ]; meta = with lib; { description = "Python interface for the SEGGER J-Link"; - homepage = "https://github.com/Square/pylink"; + homepage = "https://github.com/square/pylink"; + changelog = "https://github.com/square/pylink/blob/${src.rev}/CHANGELOG.md"; maintainers = with maintainers; [ dump_stack ]; license = licenses.asl20; }; From 7a83c76d9d413966d21f93e23c1f6accf116453a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Fri, 3 Jun 2022 00:04:59 +0000 Subject: [PATCH 130/336] sftpman: 1.1.3 -> 1.2.2 --- pkgs/tools/filesystems/sftpman/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/tools/filesystems/sftpman/default.nix b/pkgs/tools/filesystems/sftpman/default.nix index e89012b76f63..267b2b649c30 100644 --- a/pkgs/tools/filesystems/sftpman/default.nix +++ b/pkgs/tools/filesystems/sftpman/default.nix @@ -2,13 +2,13 @@ python3Packages.buildPythonApplication rec { pname = "sftpman"; - version = "1.1.3"; + version = "1.2.2"; src = fetchFromGitHub { owner = "spantaleev"; repo = pname; rev = version; - sha256 = "04awwwfw51fi1q18xdysp54jyhr0rhb4kfyrgv0vhhrlpwwyhnqy"; + hash = "sha256-YxqN4+u0nYUWehbyRhjddIo2sythH3E0fiPSyrUlWhM="; }; checkPhase = '' From 0f14467d4444db0fbf0de2dc0c1fdd4ee7aa64f1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Fri, 3 Jun 2022 02:24:33 +0200 Subject: [PATCH 131/336] MACS2: mark broken --- pkgs/applications/science/biology/MACS2/default.nix | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pkgs/applications/science/biology/MACS2/default.nix b/pkgs/applications/science/biology/MACS2/default.nix index cc398608ce52..868479c48e55 100644 --- a/pkgs/applications/science/biology/MACS2/default.nix +++ b/pkgs/applications/science/biology/MACS2/default.nix @@ -9,6 +9,12 @@ python3.pkgs.buildPythonPackage rec { sha256 = "1rcxj943kgzs746f5jrb72x1cp4v50rk3qmad0m99a02vndscb5d"; }; + postPatch = '' + # remove version check which breaks on 3.10 + substituteInPlace setup.py \ + --replace 'if float(sys.version[:3])<3.6:' 'if False:' + ''; + propagatedBuildInputs = with python3.pkgs; [ numpy ]; # To prevent ERROR: diffpeak_cmd (unittest.loader._FailedTest) for obsolete @@ -21,5 +27,7 @@ python3.pkgs.buildPythonPackage rec { license = licenses.bsd3; maintainers = with maintainers; [ gschwartz ]; platforms = platforms.linux; + # error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘use_tracing’; did you mean ‘tracing’? + broken = true; }; } From e460b285e60c7884413c41ea483c5e466bf2f73a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Fri, 3 Jun 2022 02:34:57 +0200 Subject: [PATCH 132/336] python310Packages.jsonschema: 4.5.1 -> 4.6.0 --- .../python-modules/jsonschema/default.nix | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/pkgs/development/python-modules/jsonschema/default.nix b/pkgs/development/python-modules/jsonschema/default.nix index 202e047dd8ee..e90ea39132f6 100644 --- a/pkgs/development/python-modules/jsonschema/default.nix +++ b/pkgs/development/python-modules/jsonschema/default.nix @@ -2,35 +2,35 @@ , attrs , buildPythonPackage , fetchPypi +, hatch-vcs +, hatchling , importlib-metadata , importlib-resources , pyrsistent , pythonOlder -, setuptools-scm , twisted , typing-extensions }: buildPythonPackage rec { pname = "jsonschema"; - version = "4.5.1"; + version = "4.6.0"; format = "pyproject"; disabled = pythonOlder "3.7"; src = fetchPypi { inherit pname version; - sha256 = "sha256-fG2IJhk0DDNHob9zFeFH5tPa5DkDOuY4PWrLkIwQHfw="; + sha256 = "sha256-nWOXukpsC/AwBzYFf2SePhLsvAfT6BoNrLct5OmAGVc="; }; postPatch = '' patchShebangs json/bin/jsonschema_suite ''; - SETUPTOOLS_SCM_PRETEND_VERSION = version; - nativeBuildInputs = [ - setuptools-scm + hatch-vcs + hatchling ]; propagatedBuildInputs = [ From 5a8116fb973ec236328bb098624d0a638539fe00 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Fri, 3 Jun 2022 13:14:04 +0200 Subject: [PATCH 133/336] python3Packages.moto: 3.1.3 -> 3.1.11 --- pkgs/development/python-modules/moto/default.nix | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/moto/default.nix b/pkgs/development/python-modules/moto/default.nix index 7f3251a6cc22..fc0e613b2495 100644 --- a/pkgs/development/python-modules/moto/default.nix +++ b/pkgs/development/python-modules/moto/default.nix @@ -16,6 +16,7 @@ , idna , jinja2 , jsondiff +, openapi-spec-validator , python-dateutil , python-jose , pytz @@ -35,14 +36,14 @@ buildPythonPackage rec { pname = "moto"; - version = "3.1.3"; + version = "3.1.11"; format = "setuptools"; disabled = pythonOlder "3.6"; src = fetchPypi { inherit pname version; - sha256 = "sha256-+kgVlfVhHZ/r2vCg0Skwe1433mh2w30DXO7+Rs59isA="; + sha256 = "sha256-GwxHL0t0AXdakuY/vPomESoA4Ie59u3aEiAqOcYsYYE="; }; propagatedBuildInputs = [ @@ -58,6 +59,7 @@ buildPythonPackage rec { idna jinja2 jsondiff + openapi-spec-validator python-dateutil python-jose pytz @@ -95,6 +97,10 @@ buildPythonPackage rec { "--deselect=tests/test_iotdata/test_iotdata.py::test_publish" "--deselect=tests/test_s3/test_server.py::test_s3_server_bucket_versioning" + # Disalbe test that require docker daemon + "--deselect=tests/test_events/test_events_lambdatriggers_integration.py::test_creating_bucket__invokes_lambda" + "--deselect=tests/test_s3/test_s3_lambda_integration.py::test_objectcreated_put__invokes_lambda" + # json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0) "--deselect=tests/test_cloudformation/test_cloudformation_stack_integration.py::test_lambda_function" From cd49d603d997f200057942bf8dd0d3d57efdf214 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Fri, 3 Jun 2022 13:17:36 +0200 Subject: [PATCH 134/336] python3Packages.certbot: 1.24.0 -> 1.27.0 --- pkgs/development/python-modules/certbot/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/certbot/default.nix b/pkgs/development/python-modules/certbot/default.nix index 72a5d8db39d7..b32c3ecd9f8c 100644 --- a/pkgs/development/python-modules/certbot/default.nix +++ b/pkgs/development/python-modules/certbot/default.nix @@ -9,13 +9,13 @@ buildPythonPackage rec { pname = "certbot"; - version = "1.24.0"; + version = "1.27.0"; src = fetchFromGitHub { owner = pname; repo = pname; rev = "v${version}"; - sha256 = "sha256-XIKFEPQKIV5s6sZ7LRnlTvsb3cF4KIaiVZ36cAN1AwA="; + sha256 = "sha256-3IKRVR1rLpOH22Mp2m0InqcPt85+jQgBSyrRL9/nMxY="; }; sourceRoot = "source/${pname}"; From 34423b1b2675cf319cbdc9df65b1e37d9185a1ab Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Fri, 3 Jun 2022 13:21:20 +0200 Subject: [PATCH 135/336] python3Packages.hass-nabuacasa: update dependency constraints --- pkgs/development/python-modules/hass-nabucasa/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/development/python-modules/hass-nabucasa/default.nix b/pkgs/development/python-modules/hass-nabucasa/default.nix index edf19d0e190f..3b0531084244 100644 --- a/pkgs/development/python-modules/hass-nabucasa/default.nix +++ b/pkgs/development/python-modules/hass-nabucasa/default.nix @@ -25,11 +25,11 @@ buildPythonPackage rec { }; postPatch = '' - sed -i 's/"acme.*"/"acme"/' setup.py substituteInPlace setup.py \ - --replace "cryptography>=2.8,<4.0" "cryptography" \ + --replace "acme==" "acme>=" \ + --replace "cryptography>=2.8,<37.0" "cryptography" \ + --replace "pycognito==" "pycognito>=" \ --replace "snitun==" "snitun>=" \ - --replace "pycognito==2022.01.0" "pycognito" ''; propagatedBuildInputs = [ From ac2e6fbd27539cca8e569bc5b7e2d423a3106579 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Fri, 3 Jun 2022 13:47:55 +0200 Subject: [PATCH 136/336] home-assistant: update python-slugify override --- pkgs/servers/home-assistant/default.nix | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/pkgs/servers/home-assistant/default.nix b/pkgs/servers/home-assistant/default.nix index f5664a3b385e..291928ceb3f9 100644 --- a/pkgs/servers/home-assistant/default.nix +++ b/pkgs/servers/home-assistant/default.nix @@ -29,7 +29,6 @@ let defaultOverrides = [ # Override the version of some packages pinned in Home Assistant's setup.py and requirements_all.txt - (mkOverride "python-slugify" "4.0.1" "sha256-aaUXdm4AwSaOW7/A0BCgqFCN4LGNMK1aH/NX+K5yQnA=") # pytest-aiohttp>0.3.0 breaks home-assistant tests (self: super: { @@ -101,6 +100,17 @@ let }); }) + (self: super: { + python-slugify = super.python-slugify.overridePythonAttrs (oldAttrs: rec { + pname = "python-slugify"; + version = "4.0.1"; + src = super.fetchPypi { + inherit pname version; + hash = "sha256-aaUXdm4AwSaOW7/A0BCgqFCN4LGNMK1aH/NX+K5yQnA="; + }; + }); + }) + # Pinned due to API changes in 0.4.0 (self: super: { vilfo-api-client = super.vilfo-api-client.overridePythonAttrs (oldAttrs: rec { From 962a3258619f252e4f435def2c8e35111c92abc0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Fri, 3 Jun 2022 21:22:04 +0000 Subject: [PATCH 137/336] python310Packages.cssutils: 2.4.0 -> 2.4.1 https://github.com/jaraco/cssutils/blob/v2.4.1/CHANGES.rst --- pkgs/development/python-modules/cssutils/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/cssutils/default.nix b/pkgs/development/python-modules/cssutils/default.nix index 265504938df9..39cdd6fb9723 100644 --- a/pkgs/development/python-modules/cssutils/default.nix +++ b/pkgs/development/python-modules/cssutils/default.nix @@ -17,7 +17,7 @@ buildPythonPackage rec { pname = "cssutils"; - version = "2.4.0"; + version = "2.4.1"; disabled = pythonOlder "3.7"; @@ -25,7 +25,7 @@ buildPythonPackage rec { src = fetchPypi { inherit pname version; - hash = "sha256-LZchCoOwo/4eRGn1/5pkILB4VyA1GIsbq3EDw6NtyJs="; + hash = "sha256-+Gicb66TTLanB3xwZvLGAmwOkN560wqBaz9tWaE41jg="; }; nativeBuildInputs = [ From d11da8c226563d50fd2670f2bd5921705fd746b4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Fri, 3 Jun 2022 22:05:33 +0000 Subject: [PATCH 138/336] python310Packages.fonttools: specify passthru.optional-dependencies --- .../python-modules/fonttools/default.nix | 64 +++++++++++-------- 1 file changed, 37 insertions(+), 27 deletions(-) diff --git a/pkgs/development/python-modules/fonttools/default.nix b/pkgs/development/python-modules/fonttools/default.nix index a667f631eb18..ba9929caacce 100644 --- a/pkgs/development/python-modules/fonttools/default.nix +++ b/pkgs/development/python-modules/fonttools/default.nix @@ -1,19 +1,25 @@ { lib +, stdenv , buildPythonPackage -, fetchFromGitHub , pythonOlder -, brotlipy -, zopfli +, isPyPy +, fetchFromGitHub +, setuptools-scm +, fs , lxml +, brotli +, brotlicffi +, zopfli +, unicodedata2 +, lz4 , scipy , munkres -, unicodedata2 +, matplotlib , sympy -, reportlab -, sphinx +, xattr +, skia-pathops +, uharfbuzz , pytestCheckHook -, glibcLocales -, setuptools-scm }: buildPythonPackage rec { @@ -31,28 +37,32 @@ buildPythonPackage rec { nativeBuildInputs = [ setuptools-scm ]; - # all dependencies are optional, but - # we run the checks with them + passthru.optional-dependencies = let + extras = { + ufo = [ fs ]; + lxml = [ lxml ]; + woff = [ (if isPyPy then brotlicffi else brotli) zopfli ]; + unicode = lib.optional (pythonOlder "3.11") unicodedata2; + graphite = [ lz4 ]; + interpolatable = [ (if isPyPy then munkres else scipy) ]; + plot = [ matplotlib ]; + symfont = [ sympy ]; + type1 = lib.optional stdenv.isDarwin xattr; + pathops = [ skia-pathops ]; + repacker = [ uharfbuzz ]; + }; + in extras // { + all = lib.concatLists (lib.attrValues extras); + }; checkInputs = [ pytestCheckHook - # etree extra - lxml - # woff extra - brotlipy - zopfli - # interpolatable extra - scipy - munkres - # symfont - sympy - # pens - reportlab - sphinx - ] ++ lib.optionals (pythonOlder "3.9") [ - # unicode extra - unicodedata2 - ]; + ] ++ lib.concatLists (lib.attrVals [ + "woff" + "interpolatable" + "pathops" + "repacker" + ] passthru.optional-dependencies); pythonImportsCheck = [ "fontTools" ]; From 17e9bab270e8d4ec637ae6544422ac9f4f68067a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Fri, 3 Jun 2022 21:29:54 +0000 Subject: [PATCH 139/336] python310Packages.weasyprint: update dependencies --- .../python-modules/weasyprint/default.nix | 20 +++++++------------ 1 file changed, 7 insertions(+), 13 deletions(-) diff --git a/pkgs/development/python-modules/weasyprint/default.nix b/pkgs/development/python-modules/weasyprint/default.nix index ce9432ee296a..e4576a303c50 100644 --- a/pkgs/development/python-modules/weasyprint/default.nix +++ b/pkgs/development/python-modules/weasyprint/default.nix @@ -2,18 +2,15 @@ , fetchPypi , fetchpatch , pytestCheckHook -, brotli , cairosvg , flit-core , fonttools , pydyf , pyphen , cffi -, cssselect -, lxml +, cssselect2 , html5lib -, tinycss -, zopfli +, tinycss2 , glib , harfbuzz , pango @@ -23,6 +20,7 @@ , ghostscript , isPy3k , substituteAll +, pillow }: buildPythonPackage rec { @@ -61,19 +59,15 @@ buildPythonPackage rec { ]; propagatedBuildInputs = [ - brotli - cairosvg cffi - cssselect + cssselect2 fonttools html5lib - lxml - flit-core + pillow pydyf pyphen - tinycss - zopfli - ]; + tinycss2 + ] ++ fonttools.optional-dependencies.woff; checkInputs = [ pytestCheckHook From d8c380026cf41293e1bf0457c4c11dff2ba75dd9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Fri, 3 Jun 2022 22:23:16 +0000 Subject: [PATCH 140/336] python310Packages.pygal: update dependencies --- .../python-modules/pygal/default.nix | 42 +++++++------------ 1 file changed, 14 insertions(+), 28 deletions(-) diff --git a/pkgs/development/python-modules/pygal/default.nix b/pkgs/development/python-modules/pygal/default.nix index ae7277202bbc..ae5274944afc 100644 --- a/pkgs/development/python-modules/pygal/default.nix +++ b/pkgs/development/python-modules/pygal/default.nix @@ -1,59 +1,45 @@ { lib , buildPythonPackage , fetchPypi -, fetchpatch -, isPyPy -, flask -, pyquery -, pytest -, pytest-runner -, cairosvg -, tinycss -, cssselect , lxml +, cairosvg +, pyquery +, pytestCheckHook }: buildPythonPackage rec { pname = "pygal"; version = "3.0.0"; - doCheck = !isPyPy; # one check fails with pypy - src = fetchPypi { inherit pname version; sha256 = "sha256-KSP5XS5RWTCqWplyGdzO+/PZK36vX8HJ/ruVsJk1/bI="; }; - buildInputs = [ - flask - pyquery + postPatch = '' + substituteInPlace setup.py \ + --replace pytest-runner "" + ''; - # Should be a check input, but upstream lists it under "setup_requires". - # https://github.com/Kozea/pygal/issues/430 - pytest-runner - ]; + passthru.optional-dependencies = { + lxml = [ lxml ]; + png = [ cairosvg ]; + }; checkInputs = [ - pytest - ]; + pyquery + pytestCheckHook + ] ++ passthru.optional-dependencies.png; preCheck = '' # necessary on darwin to pass the testsuite export LANG=en_US.UTF-8 ''; - postPatch = '' - substituteInPlace setup.cfg --replace "[pytest]" "[tool:pytest]" - ''; - - propagatedBuildInputs = [ cairosvg tinycss cssselect ] - ++ lib.optionals (!isPyPy) [ lxml ]; - meta = with lib; { description = "Sexy and simple python charting"; homepage = "http://www.pygal.org"; license = licenses.lgpl3Plus; maintainers = with maintainers; [ sjourdois ]; }; - } From 2dce5a72042883ea153e02fdbd635904d569797c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Sat, 4 Jun 2022 02:22:55 +0200 Subject: [PATCH 141/336] python310Packages.trio-websocket: init at 0.9.2 --- .../python-modules/trio-websocket/default.nix | 42 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 44 insertions(+) create mode 100644 pkgs/development/python-modules/trio-websocket/default.nix diff --git a/pkgs/development/python-modules/trio-websocket/default.nix b/pkgs/development/python-modules/trio-websocket/default.nix new file mode 100644 index 000000000000..3b33b80e921e --- /dev/null +++ b/pkgs/development/python-modules/trio-websocket/default.nix @@ -0,0 +1,42 @@ +{ lib +, buildPythonPackage +, fetchFromGitHub +, async_generator +, pytest-trio +, pytestCheckHook +, trio +, trustme +, wsproto +}: + +buildPythonPackage rec { + pname = "trio-websocket"; + version = "0.9.2"; + + src = fetchFromGitHub { + owner = "HyperionGray"; + repo = "trio-websocket"; + rev = version; + sha256 = "sha256-8VrpI/pk5IhEvqzo036cnIbJ1Hu3UfQ6GHTNkNJUYvo="; + }; + + propagatedBuildInputs = [ + async_generator + trio + wsproto + ]; + + checkInputs = [ + pytest-trio + pytestCheckHook + trustme + ]; + + pythonImportsCheck = [ "trio_websocket" ]; + + meta = with lib; { + description = "WebSocket client and server implementation for Python Trio"; + license = licenses.mit; + maintainers = with maintainers; [ SuperSandro2000 ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index f56a06427fb7..d53dfd7a12a5 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -10599,6 +10599,8 @@ in { trio-asyncio = callPackage ../development/python-modules/trio-asyncio { }; + trio-websocket = callPackage ../development/python-modules/trio-websocket { }; + trueskill = callPackage ../development/python-modules/trueskill { }; trustme = callPackage ../development/python-modules/trustme { }; From 8466ac2820966da53ff0d8aafbb01380cab195e4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Sat, 4 Jun 2022 02:25:01 +0200 Subject: [PATCH 142/336] python310Packages.selenium: 3.141.0 -> 4.2.0 --- .../python-modules/selenium/default.nix | 63 +++++++++---------- 1 file changed, 29 insertions(+), 34 deletions(-) diff --git a/pkgs/development/python-modules/selenium/default.nix b/pkgs/development/python-modules/selenium/default.nix index e606819159c0..a1db98deeb75 100644 --- a/pkgs/development/python-modules/selenium/default.nix +++ b/pkgs/development/python-modules/selenium/default.nix @@ -1,59 +1,54 @@ { lib -, stdenv -, fetchPypi , fetchFromGitHub , buildPythonPackage , geckodriver +, pytestCheckHook +, pythonOlder +, trio +, trio-websocket , urllib3 -, xorg , nixosTests }: -let - # Recompiling x_ignore_nofocus.so as the original one dlopen's libX11.so.6 by some - # absolute paths. Replaced by relative path so it is found when used in nix. - x_ignore_nofocus = - fetchFromGitHub { - owner = "SeleniumHQ"; - repo = "selenium"; - rev = "selenium-3.6.0"; - sha256 = "13wf4hx4i7nhl4s8xkziwxl0km1j873syrj4amragj6mpip2wn8v"; - }; -in - buildPythonPackage rec { pname = "selenium"; - version = "3.141.0"; + version = "4.2.0"; + disabled = pythonOlder "3.7"; - src = fetchPypi { - inherit pname version; - sha256 = "039hf9knvl4s3hp21bzwsp1g5ri9gxsh504dp48lc6nr1av35byy"; + src = fetchFromGitHub { + owner = "SeleniumHQ"; + repo = "selenium"; + rev = "selenium-${version}"; # check if there is a newer tag with -python suffix + sha256 = "sha256-KhBCMsWGRD7hJqumA1+K8AVhJ7hq26XkEa1QbgY0Q0w="; }; - buildInputs = [ xorg.libX11 ]; + postPatch = '' + substituteInPlace py/selenium/webdriver/firefox/service.py \ + --replace 'DEFAULT_EXECUTABLE_PATH = "geckodriver"' 'DEFAULT_EXECUTABLE_PATH = "${geckodriver}/bin/geckodriver"' + ''; + + preConfigure = '' + cd py + ''; propagatedBuildInputs = [ - geckodriver urllib3 - ]; + trio + trio-websocket + urllib3 + ] ++ urllib3.optional-dependencies.secure + ++ urllib3.optional-dependencies.socks; - postPatch = lib.optionalString stdenv.isLinux '' - cp "${x_ignore_nofocus}/cpp/linux-specific/"* . - substituteInPlace x_ignore_nofocus.c --replace "/usr/lib/libX11.so.6" "${lib.getLib xorg.libX11}/lib/libX11.so.6" - cc -c -fPIC x_ignore_nofocus.c -o x_ignore_nofocus.o - cc -shared \ - -Wl,${if stdenv.isDarwin then "-install_name" else "-soname"},x_ignore_nofocus.so \ - -o x_ignore_nofocus.so \ - x_ignore_nofocus.o - cp -v x_ignore_nofocus.so selenium/webdriver/firefox/${if stdenv.is64bit then "amd64" else "x86"}/ - ''; + checkInputs = [ + pytestCheckHook + ]; passthru.tests = { testing-vaultwarden = nixosTests.vaultwarden; }; meta = with lib; { - description = "The selenium package is used to automate web browser interaction from Python"; - homepage = "http://www.seleniumhq.org"; + description = "Bindings for Selenium WebDriver"; + homepage = "https://selenium.dev/"; license = licenses.asl20; maintainers = with maintainers; [ jraygauthier ]; }; From 15f74ff79e5b099bf6d1115b9e87c863e338b792 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Sat, 4 Jun 2022 16:28:19 +0200 Subject: [PATCH 143/336] python3Packages.ansible-later: 2.0.13 -> 2.0.14 --- pkgs/development/python-modules/ansible-later/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/development/python-modules/ansible-later/default.nix b/pkgs/development/python-modules/ansible-later/default.nix index c35cfcb6e458..5e7f717634a2 100644 --- a/pkgs/development/python-modules/ansible-later/default.nix +++ b/pkgs/development/python-modules/ansible-later/default.nix @@ -21,7 +21,7 @@ buildPythonPackage rec { pname = "ansible-later"; - version = "2.0.13"; + version = "2.0.14"; format = "pyproject"; disabled = pythonOlder "3.8"; @@ -30,7 +30,7 @@ buildPythonPackage rec { owner = "thegeeklab"; repo = pname; rev = "refs/tags/v${version}"; - hash = "sha256-9xVFvXCHjgF+7asO1ialGIofJwsRRRiydo/Ui2C+Wig="; + hash = "sha256-iY+5p6LNrlCTGi61cm2DJdyt8SmAwYqKmXNXescjAVQ="; }; nativeBuildInputs = [ @@ -63,7 +63,7 @@ buildPythonPackage rec { --replace " --cov=ansiblelater --cov-report=xml:coverage.xml --cov-report=term --cov-append --no-cov-on-fail" "" \ --replace 'PyYAML = "6.0"' 'PyYAML = "*"' \ --replace 'unidiff = "0.7.3"' 'unidiff = "*"' \ - --replace 'jsonschema = "4.4.0"' 'jsonschema = "*"' + --replace 'jsonschema = "' 'jsonschema = "^' ''; postInstall = '' From 4104ea1e7a3105cd207dc950a5c5679c1b391b31 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Sat, 4 Jun 2022 17:23:19 +0200 Subject: [PATCH 144/336] python310Packages.splinter: disable by design not working test, remove six dependency --- pkgs/development/python-modules/splinter/default.nix | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/splinter/default.nix b/pkgs/development/python-modules/splinter/default.nix index 9a80bb93621a..a368d1a81131 100644 --- a/pkgs/development/python-modules/splinter/default.nix +++ b/pkgs/development/python-modules/splinter/default.nix @@ -2,7 +2,6 @@ , buildPythonPackage , fetchFromGitHub , selenium -, six , flask , pytestCheckHook }: @@ -20,7 +19,6 @@ buildPythonPackage rec { propagatedBuildInputs = [ selenium - six ]; checkInputs = [ @@ -28,8 +26,14 @@ buildPythonPackage rec { pytestCheckHook ]; + disabledTests = [ + # driver is present and fails with a different error during loading + "test_local_driver_not_present" + ]; + disabledTestPaths = [ "samples" + # TODO: requires optional dependencies which should be defined in passthru.optional-dependencies.$name "tests/test_djangoclient.py" "tests/test_flaskclient.py" "tests/test_popups.py" From a7ed20d51bc7973f6adbe43446ab473346216343 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Sat, 4 Jun 2022 23:09:24 +0200 Subject: [PATCH 145/336] python3Packages.audible: update httpx constraint, disable check phase --- pkgs/development/python-modules/audible/default.nix | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/audible/default.nix b/pkgs/development/python-modules/audible/default.nix index 987859fbcdd6..2d4f3ac4df03 100644 --- a/pkgs/development/python-modules/audible/default.nix +++ b/pkgs/development/python-modules/audible/default.nix @@ -14,10 +14,12 @@ buildPythonPackage rec { propagatedBuildInputs = [ beautifulsoup4 httpx pbkdf2 pillow pyaes rsa ]; postPatch = '' - substituteInPlace setup.py \ - --replace 'httpx>=0.20.*,<=0.22.*' 'httpx' + sed -i "s/httpx.*/httpx',/" setup.py ''; + # has no tests + doCheck = false; + pythonImportsCheck = [ "audible"]; meta = with lib; { From 17da2b4c251f23f68229bd1daae28b1dbfdd076c Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Sun, 5 Jun 2022 00:09:17 +0200 Subject: [PATCH 146/336] python3Packages.sanic-tesing: relax httpx constraint --- pkgs/development/python-modules/sanic-testing/default.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkgs/development/python-modules/sanic-testing/default.nix b/pkgs/development/python-modules/sanic-testing/default.nix index 173e2b91ff79..398f3dad6322 100644 --- a/pkgs/development/python-modules/sanic-testing/default.nix +++ b/pkgs/development/python-modules/sanic-testing/default.nix @@ -23,6 +23,10 @@ buildPythonPackage rec { "testsout" ]; + postPatch = '' + sed -i 's/httpx>=.*"/httpx"/' setup.py + ''; + propagatedBuildInputs = [ httpx sanic From 731a3c93bb507da27b586b8f4dea9725b8cd4455 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Sun, 5 Jun 2022 00:45:32 +0200 Subject: [PATCH 147/336] python3Packages.fastapi-mail: relax http constraint --- pkgs/development/python-modules/fastapi-mail/default.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/development/python-modules/fastapi-mail/default.nix b/pkgs/development/python-modules/fastapi-mail/default.nix index fabc32412669..4396ed47f35c 100644 --- a/pkgs/development/python-modules/fastapi-mail/default.nix +++ b/pkgs/development/python-modules/fastapi-mail/default.nix @@ -31,6 +31,11 @@ buildPythonPackage rec { hash = "sha256-PkA7qkdDUd7mrtvb6IbCzFRq6X0M3iKY+FKuNConJ5A="; }; + postPatch = '' + substituteInPlace pyproject.toml \ + --replace 'httpx = "^0.22.0"' 'httpx = "*"' + ''; + nativeBuildInputs = [ poetry-core ]; From ea66d0313576837b4dc99789c295ad526f965fec Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Sun, 5 Jun 2022 03:40:33 +0200 Subject: [PATCH 148/336] python3Packages.graph-tool: 2.43 -> 2.45 - Enable parallel build or else this monstrous build takes hours. - Remove the maintainer who hasn't contributed to nixpkgs since 2016. - Update dependencies --- .../python-modules/graph-tool/default.nix | 59 ++++++++++++------- 1 file changed, 38 insertions(+), 21 deletions(-) diff --git a/pkgs/development/python-modules/graph-tool/default.nix b/pkgs/development/python-modules/graph-tool/default.nix index c8725dfd1167..61545e3a2ec9 100644 --- a/pkgs/development/python-modules/graph-tool/default.nix +++ b/pkgs/development/python-modules/graph-tool/default.nix @@ -1,18 +1,34 @@ -{ fetchurl, python, cairomm, sparsehash, pycairo, autoreconfHook -, pkg-config, boost, expat, scipy, cgal, gmp, mpfr -, gobject-introspection, pygobject3, gtk3, matplotlib, ncurses -, buildPythonPackage +{ buildPythonPackage , lib +, fetchurl + +, autoreconfHook +, boost +, cairomm +, cgal +, expat +, gmp +, gobject-introspection +, gtk3 +, matplotlib +, mpfr +, numpy +, pkg-config +, pycairo +, pygobject3 +, python +, scipy +, sparsehash }: buildPythonPackage rec { pname = "graph-tool"; format = "other"; - version = "2.43"; + version = "2.45"; src = fetchurl { url = "https://downloads.skewed.de/graph-tool/graph-tool-${version}.tar.bz2"; - hash = "sha256-XxvuCUIgz7JIaNsPr0f44v/Sb3fdcJmVhC5NnomNqGw="; + hash = "sha256-+S2nrM/aArKXke/k8LPtkzKfJyMq9NOvwHySQh7Ghmg="; }; configureFlags = [ @@ -23,34 +39,35 @@ buildPythonPackage rec { "--enable-openmp" ]; - nativeBuildInputs = [ autoreconfHook pkg-config ]; - buildInputs = [ ncurses ]; + enableParallelBuilding = true; + nativeBuildInputs = [ + autoreconfHook + pkg-config + ]; + + # https://git.skewed.de/count0/graph-tool/-/wikis/installation-instructions#manual-compilation propagatedBuildInputs = [ boost + cairomm cgal expat gmp - mpfr - python - scipy - # optional - sparsehash - # drawing - cairomm gobject-introspection gtk3 - pycairo matplotlib + mpfr + numpy + pycairo pygobject3 + scipy + sparsehash ]; - enableParallelBuilding = false; - meta = with lib; { description = "Python module for manipulation and statistical analysis of graphs"; - homepage = "https://graph-tool.skewed.de/"; - license = licenses.gpl3; - maintainers = [ maintainers.joelmo ]; + homepage = "https://graph-tool.skewed.de"; + license = licenses.lgpl3Plus; + maintainers = with maintainers; [ ]; }; } From 0d1516e198bf71a4d7857585ff6dbaacb6f53330 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Sun, 5 Jun 2022 04:46:41 +0200 Subject: [PATCH 149/336] python3Packages.sleekxmpp: disable on python3.10 The project has not been updated to work with Python 3.10, is archived and recommends using slixmpp instead. --- pkgs/development/python-modules/sleekxmpp/default.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkgs/development/python-modules/sleekxmpp/default.nix b/pkgs/development/python-modules/sleekxmpp/default.nix index 187ae018fdde..41578b3dc047 100644 --- a/pkgs/development/python-modules/sleekxmpp/default.nix +++ b/pkgs/development/python-modules/sleekxmpp/default.nix @@ -1,9 +1,11 @@ -{ stdenv, lib, fetchPypi, buildPythonPackage, dnspython, pyasn1 }: +{ stdenv, lib, fetchPypi, buildPythonPackage, pythonAtLeast, dnspython, pyasn1 }: buildPythonPackage rec { pname = "sleekxmpp"; version = "1.3.3"; + disabled = pythonAtLeast "3.10"; # Deprecated in favor of Slixmpp + propagatedBuildInputs = [ dnspython pyasn1 ]; patches = [ From e5b1832b36ca470b6b0222dcfb56875c659c1406 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Sun, 5 Jun 2022 04:54:46 +0200 Subject: [PATCH 150/336] python3Packages.homeconnect: propagate six --- pkgs/development/python-modules/homeconnect/default.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkgs/development/python-modules/homeconnect/default.nix b/pkgs/development/python-modules/homeconnect/default.nix index b615274416ab..3d7c31dc8623 100644 --- a/pkgs/development/python-modules/homeconnect/default.nix +++ b/pkgs/development/python-modules/homeconnect/default.nix @@ -4,6 +4,7 @@ , requests , requests-oauthlib , pythonOlder +, six }: buildPythonPackage rec { @@ -21,6 +22,7 @@ buildPythonPackage rec { propagatedBuildInputs = [ requests requests-oauthlib + six ]; # Project has no tests From a543fd1bb15dbdce00e35d4895fee8bd968e2648 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Sun, 5 Jun 2022 04:57:06 +0200 Subject: [PATCH 151/336] python3Packages.aiosteamist: relax xmltodict constraint --- pkgs/development/python-modules/aiosteamist/default.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkgs/development/python-modules/aiosteamist/default.nix b/pkgs/development/python-modules/aiosteamist/default.nix index aa7edc001de3..785d0f610361 100644 --- a/pkgs/development/python-modules/aiosteamist/default.nix +++ b/pkgs/development/python-modules/aiosteamist/default.nix @@ -32,7 +32,8 @@ buildPythonPackage rec { postPatch = '' substituteInPlace pyproject.toml \ - --replace "--cov=aiosteamist" "" + --replace "--cov=aiosteamist" "" \ + --replace 'xmltodict = "^0.12.0"' 'xmltodict = "*"' ''; pythonImportsCheck = [ From 313d44af435714b147bbff9e23a2cc59c574d614 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Thu, 2 Jun 2022 10:26:58 +0200 Subject: [PATCH 152/336] python310Packages.cloudpickle: 2.0.0 -> 2.1.0 --- .../python-modules/cloudpickle/default.nix | 40 ++++++++++++++----- 1 file changed, 29 insertions(+), 11 deletions(-) diff --git a/pkgs/development/python-modules/cloudpickle/default.nix b/pkgs/development/python-modules/cloudpickle/default.nix index 0e0debe93291..d33f4dbee358 100644 --- a/pkgs/development/python-modules/cloudpickle/default.nix +++ b/pkgs/development/python-modules/cloudpickle/default.nix @@ -1,28 +1,46 @@ -{ lib, buildPythonPackage, fetchPypi, isPy27, pytest, mock }: +{ lib +, buildPythonPackage +, fetchPypi +, psutil +, pytestCheckHook +, pythonOlder +}: buildPythonPackage rec { pname = "cloudpickle"; - version = "2.0.0"; - disabled = isPy27; # abandoned upstream + version = "2.1.0"; + format = "setuptools"; + + disabled = pythonOlder "3.6"; src = fetchPypi { inherit pname version; - sha256 = "5cd02f3b417a783ba84a4ec3e290ff7929009fe51f6405423cfccfadd43ba4a4"; + hash = "sha256-uyM+h2pYSR2VkKZ2+Tx6VHOgj3R9Wrnff5zlZLPnk44="; }; - buildInputs = [ pytest mock ]; + checkInputs = [ + psutil + pytestCheckHook + ]; - # See README for tests invocation - checkPhase = '' - PYTHONPATH=$PYTHONPATH:'.:tests' py.test - ''; + pythonImportsCheck = [ + "cloudpickle" + ]; - # TypeError: cannot serialize '_io.FileIO' object - doCheck = false; + disabledTestPaths = [ + # ModuleNotFoundError: No module named '_cloudpickle_testpkg' + "tests/cloudpickle_test.py" + ]; + + disabledTests = [ + # TypeError: cannot pickle 'EncodedFile' object + "test_pickling_special_file_handles" + ]; meta = with lib; { description = "Extended pickling support for Python objects"; homepage = "https://github.com/cloudpipe/cloudpickle"; license = with licenses; [ bsd3 ]; + maintainers = with maintainers; [ ]; }; } From 5d96f579a5005f7dba08948ae0a7e99da1bdcd7a Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sun, 5 Jun 2022 00:19:38 +0200 Subject: [PATCH 153/336] python310Packages.msgpack: 1.0.3 -> 1.0.4 --- .../python-modules/msgpack/default.nix | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/pkgs/development/python-modules/msgpack/default.nix b/pkgs/development/python-modules/msgpack/default.nix index 805d347389c0..aa413190d4da 100644 --- a/pkgs/development/python-modules/msgpack/default.nix +++ b/pkgs/development/python-modules/msgpack/default.nix @@ -2,27 +2,37 @@ , buildPythonPackage , fetchPypi , pytestCheckHook +, pythonOlder , setuptools }: buildPythonPackage rec { pname = "msgpack"; - version = "1.0.3"; + version = "1.0.4"; + format = "setuptools"; + + disabled = pythonOlder "3.6"; src = fetchPypi { inherit pname version; - sha256 = "51fdc7fb93615286428ee7758cecc2f374d5ff363bdd884c7ea622a7a327a81e"; + hash = "sha256-9dhpwY8DAgLrQS8Iso0q/upVPWYTruieIA16yn7wH18="; }; nativeBuildInputs = [ setuptools ]; - checkInputs = [ pytestCheckHook ]; + checkInputs = [ + pytestCheckHook + ]; + + pythonImportsCheck = [ + "msgpack" + ]; meta = with lib; { + description = "MessagePack serializer implementation"; homepage = "https://github.com/msgpack/msgpack-python"; - description = "MessagePack serializer implementation for Python"; changelog = "https://github.com/msgpack/msgpack-python/blob/master/ChangeLog.rst"; license = licenses.asl20; maintainers = with maintainers; [ SuperSandro2000 ]; From c5b343cfd87403458ffcdcdfb199e3dbd39ff423 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Sun, 5 Jun 2022 14:26:25 +0200 Subject: [PATCH 154/336] home-assistant: relax cryptography constraint --- pkgs/servers/home-assistant/default.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/pkgs/servers/home-assistant/default.nix b/pkgs/servers/home-assistant/default.nix index 291928ceb3f9..324c53d5197f 100644 --- a/pkgs/servers/home-assistant/default.nix +++ b/pkgs/servers/home-assistant/default.nix @@ -210,6 +210,7 @@ in python.pkgs.buildPythonApplication rec { "attrs" "awesomeversion" "bcrypt" + "cryptography" "httpx" "PyJWT" ]; From 80577b644cfee47ad180cdc98e92163f6e980f44 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Sun, 5 Jun 2022 14:59:57 +0200 Subject: [PATCH 155/336] python3Packages.cfn-flip: fix hash --- pkgs/development/python-modules/cfn-flip/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/development/python-modules/cfn-flip/default.nix b/pkgs/development/python-modules/cfn-flip/default.nix index 105775a4547e..f19a6aba260f 100644 --- a/pkgs/development/python-modules/cfn-flip/default.nix +++ b/pkgs/development/python-modules/cfn-flip/default.nix @@ -19,7 +19,7 @@ buildPythonPackage rec { owner = "awslabs"; repo = "aws-cfn-template-flip"; rev = version; - hash = "sha256-1cV0mHc6+P0CbnLIMSSwNEzDB+1QzNjioH/EoIo40xU="; + hash = "sha256-lfhTR3+D1FvblhQGF83AB8+I8WDPBTmo+q22ksgDgt4="; }; propagatedBuildInputs = [ From 3a5f90269a98ba782b0133314b434f4df8c1d017 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Sun, 5 Jun 2022 15:08:35 +0200 Subject: [PATCH 156/336] python3Packages.node_progressive: mark unconditionally as broken --- pkgs/development/python-modules/nose_progressive/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/development/python-modules/nose_progressive/default.nix b/pkgs/development/python-modules/nose_progressive/default.nix index a483b2b7af89..fb9a8e61bdae 100644 --- a/pkgs/development/python-modules/nose_progressive/default.nix +++ b/pkgs/development/python-modules/nose_progressive/default.nix @@ -24,11 +24,11 @@ buildPythonPackage rec { doCheck = !isPy3k; meta = with lib; { - broken = (stdenv.isLinux && stdenv.isAarch64) || stdenv.isDarwin; homepage = "https://github.com/erikrose/nose-progressive"; description = "A testrunner with a progress bar and smarter tracebacks"; license = licenses.mit; maintainers = with maintainers; [ domenkozar ]; + broken = true; # relies on 2to3 conversion, which was removed from setuptools>=58.0 }; } From c9d25b2a2fddec4721f91c1deb5c86fdf45e4b38 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Sun, 5 Jun 2022 15:17:11 +0200 Subject: [PATCH 157/336] python3Packages.sphinxcontrib_bayesnet: mark unconditionally broken --- .../python-modules/sphinxcontrib-bayesnet/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/development/python-modules/sphinxcontrib-bayesnet/default.nix b/pkgs/development/python-modules/sphinxcontrib-bayesnet/default.nix index 4b44619b4c3b..6f53dd79d364 100644 --- a/pkgs/development/python-modules/sphinxcontrib-bayesnet/default.nix +++ b/pkgs/development/python-modules/sphinxcontrib-bayesnet/default.nix @@ -16,10 +16,10 @@ buildPythonPackage rec { pythonImportsCheck = [ "sphinxcontrib.bayesnet" ]; meta = with lib; { - broken = (stdenv.isLinux && stdenv.isAarch64) || stdenv.isDarwin; homepage = "https://github.com/jluttine/sphinx-bayesnet"; description = "Bayesian networks and factor graphs in Sphinx using TikZ syntax"; license = licenses.gpl3Only; maintainers = with maintainers; [ jluttine ]; + broken = true; # relies on 2to3 conversion, which was removed from setuptools>=58.0 }; } From 1c701dd3689de71189e3afddefaa849081d289ed Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Sun, 5 Jun 2022 15:28:45 +0200 Subject: [PATCH 158/336] python3Packages.selectors2: fix mapping import The library is otherwise unmaintained and should be removed once something larger comes up. --- .../python-modules/selectors2/default.nix | 4 ++++ .../python-modules/selectors2/mapping-import.patch | 14 ++++++++++++++ 2 files changed, 18 insertions(+) create mode 100644 pkgs/development/python-modules/selectors2/mapping-import.patch diff --git a/pkgs/development/python-modules/selectors2/default.nix b/pkgs/development/python-modules/selectors2/default.nix index 3f594c5a59fb..dc108502ce9c 100644 --- a/pkgs/development/python-modules/selectors2/default.nix +++ b/pkgs/development/python-modules/selectors2/default.nix @@ -10,6 +10,10 @@ buildPythonPackage rec { sha256 = "1f1bbaac203a23fbc851dc1b5a6e92c50698cc8cefa5873eb5b89eef53d1d82b"; }; + patches = [ + ./mapping-import.patch + ]; + checkInputs = [ nose psutil mock ]; checkPhase = '' diff --git a/pkgs/development/python-modules/selectors2/mapping-import.patch b/pkgs/development/python-modules/selectors2/mapping-import.patch new file mode 100644 index 000000000000..64f74a5ce29b --- /dev/null +++ b/pkgs/development/python-modules/selectors2/mapping-import.patch @@ -0,0 +1,14 @@ +diff --git a/selectors2.py b/selectors2.py +index 1625a30..c4a1231 100644 +--- a/selectors2.py ++++ b/selectors2.py +@@ -22,7 +22,8 @@ + # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + # SOFTWARE. + +-from collections import namedtuple, Mapping ++from collections import namedtuple ++from collections.abc import Mapping + import errno + import math + import platform From 323bc125fe3d07b4aa6e816f5426a7d0427dc40d Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Sun, 5 Jun 2022 15:31:57 +0200 Subject: [PATCH 159/336] python3Packages.snowflake-connector-python: relax cryptography constraint --- .../python-modules/snowflake-connector-python/default.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkgs/development/python-modules/snowflake-connector-python/default.nix b/pkgs/development/python-modules/snowflake-connector-python/default.nix index 5077bbd2d175..06474e645e47 100644 --- a/pkgs/development/python-modules/snowflake-connector-python/default.nix +++ b/pkgs/development/python-modules/snowflake-connector-python/default.nix @@ -45,7 +45,8 @@ buildPythonPackage rec { postPatch = '' substituteInPlace setup.cfg \ - --replace "pyOpenSSL>=16.2.0,<23.0.0" "pyOpenSSL" + --replace "pyOpenSSL>=16.2.0,<23.0.0" "pyOpenSSL" \ + --replace "cryptography>=3.1.0,<37.0.0" "cryptography" ''; # Tests require encrypted secrets, see From 1d1120aab019d96c52ed67cf42572a2e8d38be4e Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Sun, 5 Jun 2022 15:55:16 +0200 Subject: [PATCH 160/336] quodlibet: 4.4.0 -> 4.5.0 https://quodlibet.readthedocs.io/en/latest/changelog.html#release-4-5-0 --- pkgs/applications/audio/quodlibet/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/applications/audio/quodlibet/default.nix b/pkgs/applications/audio/quodlibet/default.nix index 6c8ad8225f0b..49b320703d13 100644 --- a/pkgs/applications/audio/quodlibet/default.nix +++ b/pkgs/applications/audio/quodlibet/default.nix @@ -9,11 +9,11 @@ let optionals = lib.optionals; in python3.pkgs.buildPythonApplication rec { pname = "quodlibet${tag}"; - version = "4.4.0"; + version = "4.5.0"; src = fetchurl { url = "https://github.com/quodlibet/quodlibet/releases/download/release-${version}/quodlibet-${version}.tar.gz"; - sha256 = "sha256-oDMY0nZ+SVlVF2PQqH+tl3OHr3EmCP5XJxQXaiS782c="; + sha256 = "sha256-MBYVgp9lLLr+2zVTkjcWKli8HucaVn0kn3eJ2SaCRbw="; }; nativeBuildInputs = [ wrapGAppsHook gettext ]; From ae784e7d3ed26a4649723aa431317bd3923a8f40 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Sun, 5 Jun 2022 16:04:57 +0200 Subject: [PATCH 161/336] diffoscope: 214 -> 215 Disable failing test on python3.10 --- pkgs/tools/misc/diffoscope/default.nix | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/pkgs/tools/misc/diffoscope/default.nix b/pkgs/tools/misc/diffoscope/default.nix index add11f233880..cc227fb75bf2 100644 --- a/pkgs/tools/misc/diffoscope/default.nix +++ b/pkgs/tools/misc/diffoscope/default.nix @@ -11,11 +11,11 @@ # Note: when upgrading this package, please run the list-missing-tools.sh script as described below! python3Packages.buildPythonApplication rec { pname = "diffoscope"; - version = "214"; + version = "215"; src = fetchurl { url = "https://diffoscope.org/archive/diffoscope-${version}.tar.bz2"; - sha256 = "sha256-ap+U9b+pCfQ2UwqQDTx0mQ0nvXJsl4D89Q/Ecl7w+8c="; + sha256 = "sha256-OiAuR4uY9m6322d93JMFFQrXMLv6XD3D24j7K7BRl10="; }; outputs = [ "out" "man" ]; @@ -77,6 +77,9 @@ python3Packages.buildPythonApplication rec { # fails because it fails to determine llvm version "test_item3_deflate_llvm_bitcode" + # OSError: [Errno 84] Invalid or incomplete multibyte or wide character: b'/build/pytest-of-nixbld/pytest-0/\xf0(\x8c(' + "test_non_unicode_filename" + # disable formatting tests because they can break on black updates "test_code_is_black_clean" ] ++ lib.optionals stdenv.isDarwin [ From 61d056d212b22b985e06b4212a45fb8f40afa302 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Sun, 5 Jun 2022 21:45:58 +0200 Subject: [PATCH 162/336] python3Packages.hyperion-py: fix python3.10 support --- .../python-modules/hyperion-py/default.nix | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/pkgs/development/python-modules/hyperion-py/default.nix b/pkgs/development/python-modules/hyperion-py/default.nix index 7837deea6dba..ed57ad767b07 100644 --- a/pkgs/development/python-modules/hyperion-py/default.nix +++ b/pkgs/development/python-modules/hyperion-py/default.nix @@ -2,6 +2,7 @@ , aiohttp , buildPythonPackage , fetchFromGitHub +, fetchpatch , pytestCheckHook , pythonOlder , pythonAtLeast @@ -13,7 +14,7 @@ buildPythonPackage rec { pname = "hyperion-py"; version = "0.7.5"; - disabled = pythonOlder "3.8" || pythonAtLeast "3.10"; + disabled = pythonOlder "3.8"; format = "pyproject"; src = fetchFromGitHub { @@ -23,6 +24,14 @@ buildPythonPackage rec { sha256 = "sha256-arcnpCQsRuiWCrAz/t4TCjTe8DRDtRuzYp8k7nnjGDk="; }; + patches = [ + (fetchpatch { + # python3.10 compat: Drop loop kwarg in asyncio.sleep call + url = "https://github.com/dermotduffy/hyperion-py/commit/f02af52fcce17888984c99bfc03935e372011394.patch"; + hash = "sha256-4nfsQVxd77VV9INwNxTyFRDlAjwdTYqfSGuF487hFCs="; + }) + ]; + nativeBuildInputs = [ poetry-core ]; From 77cf0414e46a86bb5805f9fb9d921e0252d618f8 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Sun, 5 Jun 2022 21:46:59 +0200 Subject: [PATCH 163/336] python3Packages.requests: expose optional-dependencies --- .../python-modules/requests/default.nix | 25 +++++++++++++------ 1 file changed, 17 insertions(+), 8 deletions(-) diff --git a/pkgs/development/python-modules/requests/default.nix b/pkgs/development/python-modules/requests/default.nix index 559ce70533ce..be996151f984 100644 --- a/pkgs/development/python-modules/requests/default.nix +++ b/pkgs/development/python-modules/requests/default.nix @@ -1,5 +1,6 @@ { lib , stdenv +, pythonOlder , brotli , brotlicffi , buildPythonPackage @@ -21,6 +22,8 @@ buildPythonPackage rec { pname = "requests"; version = "2.27.1"; + disabled = pythonOlder "3.7"; + src = fetchPypi { inherit pname version; hash = "sha256-aNfFb9WomZiHco7zBKbRLtx7508c+kdxT8i0FFJcmmE="; @@ -32,23 +35,29 @@ buildPythonPackage rec { ]; propagatedBuildInputs = [ + brotlicffi certifi + charset-normalizer idna urllib3 - chardet - ] ++ lib.optionals isPy3k [ - brotlicffi - charset-normalizer - ] ++ lib.optionals isPy27 [ - brotli ]; + passthru.optional-dependencies = { + security = []; + socks = [ + pysocks + ]; + use_chardet_on_py3 = [ + chardet + ]; + }; + checkInputs = [ - pysocks pytest-mock pytest-xdist pytestCheckHook - ]; + ] + ++ passthru.optional-dependencies.socks; # AttributeError: 'KeywordMapping' object has no attribute 'get' doCheck = !isPy27; From 665aec3e7f7bff9d3c6768051d7271eb76985daf Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Sun, 5 Jun 2022 22:07:38 +0200 Subject: [PATCH 164/336] python3Packages.beautifulsoup4: propagate chardet Fixes the tests by making the package use chardet. --- pkgs/development/python-modules/beautifulsoup4/default.nix | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/pkgs/development/python-modules/beautifulsoup4/default.nix b/pkgs/development/python-modules/beautifulsoup4/default.nix index 2a59ac00f7aa..ee11ead039e7 100644 --- a/pkgs/development/python-modules/beautifulsoup4/default.nix +++ b/pkgs/development/python-modules/beautifulsoup4/default.nix @@ -1,6 +1,7 @@ { lib , buildPythonPackage , fetchPypi +, chardet , html5lib , lxml , pytestCheckHook @@ -22,7 +23,12 @@ buildPythonPackage rec { hash = "sha256-rZqlW2XvKAjrQF9Gz3Tff8twRNXLwmSH+W6y7y5DZpM="; }; + nativeBuildInputs = [ + sphinxHook + ]; + propagatedBuildInputs = [ + chardet html5lib lxml soupsieve @@ -31,7 +37,6 @@ buildPythonPackage rec { checkInputs = [ pytestCheckHook ]; - nativeBuildInputs = [ sphinxHook ]; pythonImportsCheck = [ "bs4" From 397cf8e50381702df50e3ae34451511f2c1cc432 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Sun, 5 Jun 2022 22:09:03 +0200 Subject: [PATCH 165/336] gdown: propagate requests[socks] --- pkgs/development/python-modules/gdown/default.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkgs/development/python-modules/gdown/default.nix b/pkgs/development/python-modules/gdown/default.nix index 305fd93c9635..7399d141a564 100644 --- a/pkgs/development/python-modules/gdown/default.nix +++ b/pkgs/development/python-modules/gdown/default.nix @@ -26,7 +26,8 @@ buildPythonApplication rec { tqdm setuptools six - ]; + ] + ++ requests.optional-dependencies.socks; checkPhase = '' $out/bin/gdown --help > /dev/null From 2600e7d5deeeb1c528a99db8254857762cbe78e9 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Sun, 5 Jun 2022 22:18:07 +0200 Subject: [PATCH 166/336] python3Packages.starlette: 0.19.0 -> 0.20.1 https://github.com/encode/starlette/releases/tag/0.20.1 https://github.com/encode/starlette/releases/tag/0.20.0 https://github.com/encode/starlette/releases/tag/0.19.1 --- pkgs/development/python-modules/starlette/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/starlette/default.nix b/pkgs/development/python-modules/starlette/default.nix index caa841339e16..05c3cd829f9b 100644 --- a/pkgs/development/python-modules/starlette/default.nix +++ b/pkgs/development/python-modules/starlette/default.nix @@ -21,7 +21,7 @@ buildPythonPackage rec { pname = "starlette"; - version = "0.19.0"; + version = "0.20.1"; format = "setuptools"; disabled = pythonOlder "3.6"; @@ -30,7 +30,7 @@ buildPythonPackage rec { owner = "encode"; repo = pname; rev = version; - sha256 = "sha256-gjRTMzoQ8pqxjIusRwRXGs72VYo6xsp2DSUxmEr9KxU="; + hash = "sha256-PUZ9joOhXkL1K2yi0baiuY74PIi71V/epX8zdcUv1DA="; }; postPatch = '' From 39e1366decb154d1eb8ce0c7e8f6634090da334d Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Sun, 5 Jun 2022 22:23:08 +0200 Subject: [PATCH 167/336] python3Packages.fastapi: 0.75.2 -> 0.78.0 https://github.com/tiangolo/fastapi/releases/tag/0.78.0 https://github.com/tiangolo/fastapi/releases/tag/0.77.1 https://github.com/tiangolo/fastapi/releases/tag/0.77.0 https://github.com/tiangolo/fastapi/releases/tag/0.76.0 --- .../python-modules/fastapi/default.nix | 25 ++++++------------- 1 file changed, 7 insertions(+), 18 deletions(-) diff --git a/pkgs/development/python-modules/fastapi/default.nix b/pkgs/development/python-modules/fastapi/default.nix index 3d418d75333f..5366745a6f0a 100644 --- a/pkgs/development/python-modules/fastapi/default.nix +++ b/pkgs/development/python-modules/fastapi/default.nix @@ -7,7 +7,6 @@ , pytest-asyncio , aiosqlite , databases -, fetchpatch , flask , httpx , passlib @@ -20,7 +19,7 @@ buildPythonPackage rec { pname = "fastapi"; - version = "0.75.2"; + version = "0.78.0"; format = "flit"; disabled = pythonOlder "3.6"; @@ -29,9 +28,14 @@ buildPythonPackage rec { owner = "tiangolo"; repo = pname; rev = version; - hash = "sha256-B4q3Q256Sj4jTQt1TDm3fiEaQKdVxddCF9+KsxkkTWo="; + hash = "sha256-4JS0VLVg67O7VdcDw2k2u+98kiCdCHvCAEGHYGWEIOA="; }; + postPatch = '' + substituteInPlace pyproject.toml \ + --replace "starlette==" "starlette>=" + ''; + propagatedBuildInputs = [ starlette pydantic @@ -51,21 +55,6 @@ buildPythonPackage rec { trio ] ++ passlib.optional-dependencies.bcrypt; - patches = [ - # Bump starlette, https://github.com/tiangolo/fastapi/pull/4483 - (fetchpatch { - name = "support-later-starlette.patch"; - # PR contains multiple commits - url = "https://patch-diff.githubusercontent.com/raw/tiangolo/fastapi/pull/4483.patch"; - sha256 = "sha256-ZWaqAd/QYEYRL1hSQdXdFPgWgdmOill2GtmEn33vz2U="; - }) - ]; - - postPatch = '' - substituteInPlace pyproject.toml \ - --replace "starlette ==" "starlette >=" - ''; - pytestFlagsArray = [ # ignoring deprecation warnings to avoid test failure from # tests/test_tutorial/test_testing/test_tutorial001.py From ce67d25d41c0a05fa4c34b73126f367e682b2db3 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Sun, 5 Jun 2022 22:25:44 +0200 Subject: [PATCH 168/336] python3Packages.fastapi-mail: relax fastapi constraint --- pkgs/development/python-modules/fastapi-mail/default.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/pkgs/development/python-modules/fastapi-mail/default.nix b/pkgs/development/python-modules/fastapi-mail/default.nix index 4396ed47f35c..44fe4a508748 100644 --- a/pkgs/development/python-modules/fastapi-mail/default.nix +++ b/pkgs/development/python-modules/fastapi-mail/default.nix @@ -33,6 +33,7 @@ buildPythonPackage rec { postPatch = '' substituteInPlace pyproject.toml \ + --replace 'fastapi = "^0.75.0"' 'fastapi = "*"' \ --replace 'httpx = "^0.22.0"' 'httpx = "*"' ''; From a45f138a414e63445747870f54a3be77e9b25c6c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Sun, 5 Jun 2022 21:58:36 +0000 Subject: [PATCH 169/336] mapnik: unvendor scons --- pkgs/development/libraries/mapnik/default.nix | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/pkgs/development/libraries/mapnik/default.nix b/pkgs/development/libraries/mapnik/default.nix index 14eb3c047e2a..13e34bebee63 100644 --- a/pkgs/development/libraries/mapnik/default.nix +++ b/pkgs/development/libraries/mapnik/default.nix @@ -1,12 +1,15 @@ { lib, stdenv, fetchzip , boost, cairo, freetype, gdal, harfbuzz, icu, libjpeg, libpng, libtiff , libwebp, libxml2, proj, python3, python ? python3, sqlite, zlib +, sconsPackages # supply a postgresql package to enable the PostGIS input plugin , postgresql ? null }: -stdenv.mkDerivation rec { +let + scons = sconsPackages.scons_3_0_1; +in stdenv.mkDerivation rec { pname = "mapnik"; version = "3.1.0"; @@ -16,10 +19,16 @@ stdenv.mkDerivation rec { sha256 = "sha256-qqPqN4vs3ZsqKgnx21yQhX8OzHca/0O+3mvQ/vnC5EY="; }; + postPatch = '' + substituteInPlace configure \ + --replace '$PYTHON scons/scons.py' ${scons}/bin/scons + rm -r scons + ''; + # a distinct dev output makes python-mapnik fail outputs = [ "out" ]; - nativeBuildInputs = [ python3 ]; + nativeBuildInputs = [ scons ]; buildInputs = [ boost cairo freetype gdal harfbuzz icu libjpeg libpng libtiff From c146fde7a03d6adb8ce456e9dc5bbb117c6886b1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Mon, 6 Jun 2022 01:20:24 +0200 Subject: [PATCH 170/336] python310Packages.limits: 2.6.2 -> 2.6.3 --- pkgs/development/python-modules/limits/default.nix | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/pkgs/development/python-modules/limits/default.nix b/pkgs/development/python-modules/limits/default.nix index 56816c74d50c..c28986085830 100644 --- a/pkgs/development/python-modules/limits/default.nix +++ b/pkgs/development/python-modules/limits/default.nix @@ -17,7 +17,7 @@ buildPythonPackage rec { pname = "limits"; - version = "2.6.2"; + version = "2.6.3"; format = "setuptools"; disabled = pythonOlder "3.7"; @@ -32,7 +32,7 @@ buildPythonPackage rec { postFetch = '' rm "$out/limits/_version.py" ''; - hash = "sha256-1TfwGxEgf6LFYSaNLyVRtJVOnTVNxvswoKMFNWrNOv0="; + hash = "sha256-YAuq8QycQ55emU2S0rQHxdHCD+jSRmzUKeYFdrV9NzM="; }; propagatedBuildInputs = [ @@ -56,9 +56,6 @@ buildPythonPackage rec { substituteInPlace pytest.ini \ --replace "--cov=limits" "" \ --replace "-K" "" - # redis-py-cluster doesn't support redis > 4 - substituteInPlace tests/conftest.py \ - --replace "import rediscluster" "" # Recreate _version.py, deleted at fetch time due to non-reproducibility. echo 'def get_versions(): return {"version": "${version}"}' > limits/_version.py From 852ef21b34da1c745aa78a18b36eba2c7547963a Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Mon, 6 Jun 2022 01:40:45 +0200 Subject: [PATCH 171/336] cantoolz: fix python3.10 support --- pkgs/tools/networking/cantoolz/default.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/tools/networking/cantoolz/default.nix b/pkgs/tools/networking/cantoolz/default.nix index b31dc21b7a32..ca0d05131ca7 100644 --- a/pkgs/tools/networking/cantoolz/default.nix +++ b/pkgs/tools/networking/cantoolz/default.nix @@ -16,6 +16,11 @@ python3.pkgs.buildPythonApplication rec { }; patches = [ + (fetchpatch { + # Import Iterable from collections.abc + url = "https://github.com/CANToolz/CANToolz/commit/9e818946716a744b3c7356f248e24ea650791d1f.patch"; + hash = "sha256-BTQ0Io2RF8WpWlLoYfBj8IhL92FRR8ustGClt28/R8c="; + }) (fetchpatch { # Replace time.clock() which was removed, https://github.com/CANToolz/CANToolz/pull/30 url = "https://github.com/CANToolz/CANToolz/pull/30/commits/d75574523d3b273c40fb714532c4de27f9e6dd3e.patch"; From 9641ef024d6ff2cf4af13bff9884b6e7026ac53d Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Mon, 6 Jun 2022 01:48:50 +0200 Subject: [PATCH 172/336] i3a: relax python version constraint --- pkgs/misc/i3a/default.nix | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pkgs/misc/i3a/default.nix b/pkgs/misc/i3a/default.nix index 36f58c16cc2d..3171289bcac7 100644 --- a/pkgs/misc/i3a/default.nix +++ b/pkgs/misc/i3a/default.nix @@ -9,9 +9,17 @@ python3Packages.buildPythonApplication rec { hash = "sha256-2k1HYtgJ76qXLvX6RmOSKtMMg+K722n8U9YmBANvQvE="; }; + postPatch = '' + substituteInPlace setup.py \ + --replace "python_requires='>=3.7,<3.10'," "python_requires='>=3.7'," + ''; + nativeBuildInputs = [ python3Packages.setuptools-scm ]; + propagatedBuildInputs = [ python3Packages.i3ipc ]; + doCheck = false; + meta = with lib; { homepage = "https://git.goral.net.pl/mgoral/i3a"; description = "A set of scripts used for automation of i3 and sway window manager layouts"; From b6f6f1f7d540491b34125f1672456e32abe32a29 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Mon, 6 Jun 2022 01:59:59 +0200 Subject: [PATCH 173/336] python3Packages.flickrapi: propagate six --- pkgs/development/python-modules/flickrapi/default.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkgs/development/python-modules/flickrapi/default.nix b/pkgs/development/python-modules/flickrapi/default.nix index 8ad1071cd241..c13541acd833 100644 --- a/pkgs/development/python-modules/flickrapi/default.nix +++ b/pkgs/development/python-modules/flickrapi/default.nix @@ -4,6 +4,7 @@ , requests , requests-toolbelt , requests-oauthlib +, six , pytestCheckHook , responses , pythonOlder @@ -27,6 +28,7 @@ buildPythonPackage rec { requests requests-toolbelt requests-oauthlib + six ]; checkInputs = [ From a4b86d4e75768dce6c6198f3de06ae07976af823 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Mon, 6 Jun 2022 02:02:56 +0200 Subject: [PATCH 174/336] python3Packages.globus-sdk: fix tests --- pkgs/development/python-modules/globus-sdk/default.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkgs/development/python-modules/globus-sdk/default.nix b/pkgs/development/python-modules/globus-sdk/default.nix index 1d2ee112a439..af46b9c675ff 100644 --- a/pkgs/development/python-modules/globus-sdk/default.nix +++ b/pkgs/development/python-modules/globus-sdk/default.nix @@ -8,6 +8,7 @@ , pythonOlder , requests , responses +, six , typing-extensions }: @@ -37,6 +38,7 @@ buildPythonPackage rec { mypy pytestCheckHook responses + six ]; postPatch = '' From b670cf8df67de266d8c5f029f5442ab57392e424 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Mon, 6 Jun 2022 02:05:22 +0200 Subject: [PATCH 175/336] python3Packages.snscrape: propagate requests[socks] --- pkgs/development/python-modules/snscrape/default.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkgs/development/python-modules/snscrape/default.nix b/pkgs/development/python-modules/snscrape/default.nix index 98933759f0bb..e9a9384fd028 100644 --- a/pkgs/development/python-modules/snscrape/default.nix +++ b/pkgs/development/python-modules/snscrape/default.nix @@ -32,7 +32,9 @@ buildPythonPackage rec { beautifulsoup4 lxml requests - ] ++ lib.optionals (pythonOlder "3.9") [ + ] + ++ requests.optional-dependencies.socks + ++ lib.optionals (pythonOlder "3.9") [ pytz ]; From 51fd3fec9e5df5dc528aaf89765d50428695ecdf Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Mon, 6 Jun 2022 02:45:36 +0200 Subject: [PATCH 176/336] turses: update tweepy override --- .../networking/instant-messengers/turses/default.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkgs/applications/networking/instant-messengers/turses/default.nix b/pkgs/applications/networking/instant-messengers/turses/default.nix index 42dd9f835c9a..c368c049daf0 100644 --- a/pkgs/applications/networking/instant-messengers/turses/default.nix +++ b/pkgs/applications/networking/instant-messengers/turses/default.nix @@ -19,6 +19,10 @@ let rev = "v${version}"; sha256 = "0k4bdlwjna6f1k19jki4xqgckrinkkw8b9wihzymr1l04rwd05nw"; }; + propagatedBuildInputs = oldAttrs.propagatedBuildInputs ++ [ + super.six + super.requests.optional-dependencies.socks + ]; doCheck = false; }); }; From b10d49ee09e486adfd264ba7dfc106fab4f0a53e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Sun, 5 Jun 2022 22:09:07 +0000 Subject: [PATCH 177/336] errbot: use python39 --- .../networking/errbot/default.nix | 32 ++++--------------- pkgs/top-level/all-packages.nix | 2 +- 2 files changed, 7 insertions(+), 27 deletions(-) diff --git a/pkgs/applications/networking/errbot/default.nix b/pkgs/applications/networking/errbot/default.nix index f4a44275b693..d9f02941b43c 100644 --- a/pkgs/applications/networking/errbot/default.nix +++ b/pkgs/applications/networking/errbot/default.nix @@ -1,32 +1,12 @@ { lib -, ansi -, buildPythonApplication -, colorlog -, daemonize -, deepmerge -, dulwich , fetchFromGitHub -, flask , glibcLocales -, hypchat -, irc -, jinja2 -, markdown -, mock -, pyasn1 -, pyasn1-modules -, pygments -, pygments-markdown-lexer -, pyopenssl -, pytestCheckHook -, requests -, slackclient -, sleekxmpp -, telegram -, webtest +, python39 }: -buildPythonApplication rec { +let + python3 = python39; +in python3.pkgs.buildPythonApplication rec { pname = "errbot"; version = "6.1.7"; @@ -41,7 +21,7 @@ buildPythonApplication rec { buildInputs = [ glibcLocales ]; - propagatedBuildInputs = [ + propagatedBuildInputs = with python3.pkgs; [ ansi colorlog daemonize @@ -64,7 +44,7 @@ buildPythonApplication rec { webtest ]; - checkInputs = [ + checkInputs = with python3.pkgs; [ mock pytestCheckHook ]; diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 6f3eadb8701b..722903738220 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -26079,7 +26079,7 @@ with pkgs; eq10q = callPackage ../applications/audio/eq10q { }; - errbot = python3Packages.callPackage ../applications/networking/errbot { }; + errbot = callPackage ../applications/networking/errbot { }; espeak-classic = callPackage ../applications/audio/espeak { }; From 418a929ded10f1c2509336eef24d665f0abbe3df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Sun, 5 Jun 2022 22:14:22 +0000 Subject: [PATCH 178/336] ntfy: use python39 and remove ntfy-webpush from python3Packages --- pkgs/tools/misc/ntfy/default.nix | 22 ++++++++++++++----- .../default.nix => ntfy/webpush.nix} | 11 +++++++--- pkgs/top-level/python-packages.nix | 2 -- 3 files changed, 25 insertions(+), 10 deletions(-) rename pkgs/tools/misc/{ntfy-webpush/default.nix => ntfy/webpush.nix} (83%) diff --git a/pkgs/tools/misc/ntfy/default.nix b/pkgs/tools/misc/ntfy/default.nix index e976ca5fd691..d905c92438da 100644 --- a/pkgs/tools/misc/ntfy/default.nix +++ b/pkgs/tools/misc/ntfy/default.nix @@ -1,9 +1,21 @@ -{ lib, python3Packages, fetchFromGitHub, fetchpatch }: +{ lib +, python39 +, fetchFromGitHub +, fetchpatch +}: -python3Packages.buildPythonApplication rec { +let + python = python39.override { + packageOverrides = self: super: { + ntfy-webpush = self.callPackage ./webpush.nix { }; + }; + }; +in python.pkgs.buildPythonApplication rec { pname = "ntfy"; version = "2.7.0"; + format = "setuptools"; + src = fetchFromGitHub { owner = "dschep"; repo = "ntfy"; @@ -11,11 +23,11 @@ python3Packages.buildPythonApplication rec { sha256 = "09f02cn4i1l2aksb3azwfb70axqhn7d0d0vl2r6640hqr74nc1cv"; }; - checkInputs = with python3Packages; [ + checkInputs = with python.pkgs; [ mock ]; - propagatedBuildInputs = with python3Packages; [ + propagatedBuildInputs = with python.pkgs; [ requests ruamel-yaml appdirs sleekxmpp dnspython emoji @@ -37,7 +49,7 @@ python3Packages.buildPythonApplication rec { ]; checkPhase = '' - HOME=$(mktemp -d) ${python3Packages.python.interpreter} setup.py test + HOME=$(mktemp -d) ${python.interpreter} setup.py test ''; meta = with lib; { diff --git a/pkgs/tools/misc/ntfy-webpush/default.nix b/pkgs/tools/misc/ntfy/webpush.nix similarity index 83% rename from pkgs/tools/misc/ntfy-webpush/default.nix rename to pkgs/tools/misc/ntfy/webpush.nix index 27559dabbddf..aad5bf48a403 100644 --- a/pkgs/tools/misc/ntfy-webpush/default.nix +++ b/pkgs/tools/misc/ntfy/webpush.nix @@ -1,6 +1,11 @@ -{ lib, python3Packages, fetchFromGitHub }: +{ lib +, buildPythonPackage +, fetchFromGitHub +, pywebpush +, py-vapid +}: -python3Packages.buildPythonPackage rec { +buildPythonPackage rec { pname = "ntfy-webpush"; version = "0.1.3"; @@ -17,7 +22,7 @@ python3Packages.buildPythonPackage rec { --replace "'ntfy', " "" ''; - propagatedBuildInputs = with python3Packages; [ + propagatedBuildInputs = [ pywebpush py-vapid ]; diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index d53dfd7a12a5..da762288ff2e 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -5912,8 +5912,6 @@ in { nsapi = callPackage ../development/python-modules/nsapi { }; - ntfy-webpush = callPackage ../tools/misc/ntfy-webpush { }; - ntc-templates = callPackage ../development/python-modules/ntc-templates { }; ntlm-auth = callPackage ../development/python-modules/ntlm-auth { }; From d588e9acfe5cba35aadea6bc8ea3195e44b108d5 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Mon, 6 Jun 2022 15:13:27 +0200 Subject: [PATCH 179/336] python3Packages.snowflake-sqlalchemy: propgate six --- .../python-modules/snowflake-sqlalchemy/default.nix | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/snowflake-sqlalchemy/default.nix b/pkgs/development/python-modules/snowflake-sqlalchemy/default.nix index e40a3f8b5888..b2b6f92a01ad 100644 --- a/pkgs/development/python-modules/snowflake-sqlalchemy/default.nix +++ b/pkgs/development/python-modules/snowflake-sqlalchemy/default.nix @@ -1,8 +1,9 @@ { buildPythonPackage , lib , fetchPypi -, sqlalchemy +, six , snowflake-connector-python +, sqlalchemy }: buildPythonPackage rec { @@ -15,8 +16,9 @@ buildPythonPackage rec { }; propagatedBuildInputs = [ - sqlalchemy + six snowflake-connector-python + sqlalchemy ]; # Pypi does not include tests From cbda7b33aa22957ebed2bd01ff372cdb2704717c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Mon, 6 Jun 2022 18:11:34 +0200 Subject: [PATCH 180/336] python310Packages.twine: 4.0.0 -> 4.0.1 --- pkgs/development/python-modules/twine/default.nix | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/twine/default.nix b/pkgs/development/python-modules/twine/default.nix index 6cfb7f360476..c3e4682d5a7e 100644 --- a/pkgs/development/python-modules/twine/default.nix +++ b/pkgs/development/python-modules/twine/default.nix @@ -16,13 +16,13 @@ buildPythonPackage rec { pname = "twine"; - version = "4.0.0"; + version = "4.0.1"; format = "pyproject"; disabled = pythonOlder "3.7"; src = fetchPypi { inherit pname version; - sha256 = "sha256-gXqgwL3AKl6+MgUeFo4jxxoGCDNOYkx5MBHxINu8Bbc="; + sha256 = "sha256-lrHPEveuYRpKQLaujpVwIV2v8GEYKPX+HzehYlWrJKA="; }; nativeBuildInputs = [ setuptools-scm ]; @@ -42,6 +42,8 @@ buildPythonPackage rec { # Requires network doCheck = false; + pythonImportsCheck = [ "twine" ]; + meta = { description = "Collection of utilities for interacting with PyPI"; homepage = "https://github.com/pypa/twine"; From 0eb07062a2ad0343ea08f62f52626e405627e75d Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Mon, 6 Jun 2022 14:18:08 +0200 Subject: [PATCH 181/336] python310Packages.snscrape: unstable-2021-08-30 -> 0.4.3.20220106 --- .../python-modules/snscrape/default.nix | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/pkgs/development/python-modules/snscrape/default.nix b/pkgs/development/python-modules/snscrape/default.nix index e9a9384fd028..379159180a06 100644 --- a/pkgs/development/python-modules/snscrape/default.nix +++ b/pkgs/development/python-modules/snscrape/default.nix @@ -2,6 +2,7 @@ , beautifulsoup4 , buildPythonPackage , fetchFromGitHub +, filelock , lxml , pythonOlder , pytz @@ -11,15 +12,16 @@ buildPythonPackage rec { pname = "snscrape"; - version = "unstable-2021-08-30"; + version = "0.4.3.20220106"; + format = "setuptools"; disabled = pythonOlder "3.8"; src = fetchFromGitHub { owner = "JustAnotherArchivist"; repo = pname; - rev = "c76f1637ce1d7a154af83495b67ead2559cd5715"; - sha256 = "01x4961fxj1p98y6fcyxw5sv8fa87x41fdx9p31is12bdkmqxi6v"; + rev = "v${version}"; + hash = "sha256-gphNT1IYSiAw22sqHlV8Rm4WRP4EWUvP0UkITuepmMc="; }; SETUPTOOLS_SCM_PRETEND_VERSION = version; @@ -30,6 +32,7 @@ buildPythonPackage rec { propagatedBuildInputs = [ beautifulsoup4 + filelock lxml requests ] @@ -44,11 +47,13 @@ buildPythonPackage rec { snscrape --help ''; - pythonImportsCheck = [ "snscrape" ]; + pythonImportsCheck = [ + "snscrape" + ]; meta = with lib; { + description = "A social networking service scraper"; homepage = "https://github.com/JustAnotherArchivist/snscrape"; - description = "A social networking service scraper in Python"; license = licenses.gpl3Plus; maintainers = with maintainers; [ ivan ]; }; From fe428eb0b7240552fe871d95535ad8367c38e1a4 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Mon, 6 Jun 2022 14:42:14 +0200 Subject: [PATCH 182/336] python310Packages.websockets: 10.1 -> 10.3 --- pkgs/development/python-modules/websockets/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/websockets/default.nix b/pkgs/development/python-modules/websockets/default.nix index 7d6f78902d0a..538055b98909 100644 --- a/pkgs/development/python-modules/websockets/default.nix +++ b/pkgs/development/python-modules/websockets/default.nix @@ -8,7 +8,7 @@ buildPythonPackage rec { pname = "websockets"; - version = "10.1"; + version = "10.3"; format = "setuptools"; disabled = pythonOlder "3.7"; @@ -17,7 +17,7 @@ buildPythonPackage rec { owner = "aaugustin"; repo = pname; rev = version; - sha256 = "sha256-FFaoqxa+TmKJ+P6T7HrwodjbVCir+2qJSfZsoj6deJU="; + hash = "sha256-ZUn/DvO1Kx7Uxne4DF/am69YL1c48qpgQrGek355Z+4="; }; # Tests fail on Darwin with `OSError: AF_UNIX path too long` From d07a5a33496d00d3e432c0b05c74d0dc781b9110 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Mon, 6 Jun 2022 14:47:12 +0200 Subject: [PATCH 183/336] python310Packages.unidecode: 1.3.2 -> 1.3.4 --- pkgs/development/python-modules/unidecode/default.nix | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/pkgs/development/python-modules/unidecode/default.nix b/pkgs/development/python-modules/unidecode/default.nix index f16fec644db0..96e487871aa3 100644 --- a/pkgs/development/python-modules/unidecode/default.nix +++ b/pkgs/development/python-modules/unidecode/default.nix @@ -7,7 +7,8 @@ buildPythonPackage rec { pname = "unidecode"; - version = "1.3.2"; + version = "1.3.4"; + format = "setuptools"; disabled = pythonOlder "3.5"; @@ -15,7 +16,7 @@ buildPythonPackage rec { owner = "avian2"; repo = pname; rev = "${pname}-${version}"; - sha256 = "07789mrq0gjxrg1b9a3ypzzfww224sbj25wl0h9nik22sjwi8qhh"; + hash = "sha256-2LRV6Egst2bdxefEzfuA9Ef8zMSWvmlCEV/sIzezyPw="; }; checkInputs = [ @@ -27,8 +28,8 @@ buildPythonPackage rec { ]; meta = with lib; { - homepage = "https://pypi.python.org/pypi/Unidecode/"; description = "ASCII transliterations of Unicode text"; + homepage = "https://pypi.python.org/pypi/Unidecode/"; license = licenses.gpl2Plus; maintainers = with maintainers; [ domenkozar ]; }; From 87592180599135587298be397afca7758bb80ba9 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Mon, 6 Jun 2022 15:20:02 +0200 Subject: [PATCH 184/336] python310Packages.databases: 0.5.5 -> 0.6.0 --- pkgs/development/python-modules/databases/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/databases/default.nix b/pkgs/development/python-modules/databases/default.nix index 518d2066853a..05431026ec88 100644 --- a/pkgs/development/python-modules/databases/default.nix +++ b/pkgs/development/python-modules/databases/default.nix @@ -14,7 +14,7 @@ buildPythonPackage rec { pname = "databases"; - version = "0.5.5"; + version = "0.6.0"; format = "setuptools"; disabled = pythonOlder "3.6"; @@ -23,7 +23,7 @@ buildPythonPackage rec { owner = "encode"; repo = pname; rev = version; - hash = "sha256-NOXK1UCQzqvJRfzsgIfpihuD9oF52sMD+BxqUHWF8Rk="; + hash = "sha256-5+x735EFX9B25HgXiqzUJm0nbF7tDF5FOQVnbYQyomE="; }; propagatedBuildInputs = [ From b5751da441446657da7b4724490fb6d4a2b1075d Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Mon, 6 Jun 2022 15:49:25 +0200 Subject: [PATCH 185/336] python310Packages.filelock: 3.6.0 -> 3.7.1 --- .../development/python-modules/filelock/default.nix | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/pkgs/development/python-modules/filelock/default.nix b/pkgs/development/python-modules/filelock/default.nix index 16379ef85e1e..5fdbd8c441fe 100644 --- a/pkgs/development/python-modules/filelock/default.nix +++ b/pkgs/development/python-modules/filelock/default.nix @@ -1,20 +1,21 @@ { lib , buildPythonPackage -, pythonOlder , fetchPypi -, setuptools-scm , pytestCheckHook +, pythonOlder +, setuptools-scm }: buildPythonPackage rec { pname = "filelock"; - version = "3.6.0"; + version = "3.7.1"; format = "pyproject"; - disabled = pythonOlder "3.6"; + + disabled = pythonOlder "3.7"; src = fetchPypi { inherit pname version; - sha256 = "sha256-nNVAqTUuQyxyRqSP5OhxKxCssd8q0fMOjAcLgq4f7YU="; + hash = "sha256-Og/YUWatnbq1TJrslnN7dEEG3F8VwLCaZ0SkRSmfzwQ="; }; nativeBuildInputs = [ @@ -26,8 +27,8 @@ buildPythonPackage rec { ]; meta = with lib; { - homepage = "https://github.com/benediktschmitt/py-filelock"; description = "A platform independent file lock for Python"; + homepage = "https://github.com/benediktschmitt/py-filelock"; license = licenses.unlicense; maintainers = with maintainers; [ hyphon81 ]; }; From a91744fb8b4501b568c003dc4d4d625e97fd7396 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Mon, 6 Jun 2022 16:58:22 +0200 Subject: [PATCH 186/336] python310Packages.pybase64: 1.2.1 -> 1.2.2 --- pkgs/development/python-modules/pybase64/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/pybase64/default.nix b/pkgs/development/python-modules/pybase64/default.nix index ea7458f13b66..d4b67f2bb21e 100644 --- a/pkgs/development/python-modules/pybase64/default.nix +++ b/pkgs/development/python-modules/pybase64/default.nix @@ -7,13 +7,13 @@ buildPythonPackage rec { pname = "pybase64"; - version = "1.2.1"; + version = "1.2.2"; disabled = pythonOlder "3.6"; src = fetchPypi { inherit pname version; - sha256 = "d2016a3a487d3d4501d8281f61ee54c25efd65e37a4c7dce8011e0de7183c956"; + sha256 = "sha256-vv2YOlp7ZVE1W2q+VnI/f58SxYDgLxJreIOwdb6/8lw="; }; checkInputs = [ pytestCheckHook ]; From 269e8cfefb64119fe17c0c8fc14463a3449d6792 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Mon, 6 Jun 2022 17:04:34 +0200 Subject: [PATCH 187/336] python310Packages.immutables: 0.17 -> 0.18 --- .../python-modules/immutables/default.nix | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/pkgs/development/python-modules/immutables/default.nix b/pkgs/development/python-modules/immutables/default.nix index 83d6336fe597..34a48ed2a1f6 100644 --- a/pkgs/development/python-modules/immutables/default.nix +++ b/pkgs/development/python-modules/immutables/default.nix @@ -9,17 +9,19 @@ buildPythonPackage rec { pname = "immutables"; - version = "0.17"; + version = "0.18"; + format = "setuptools"; + disabled = pythonOlder "3.6"; src = fetchFromGitHub { owner = "MagicStack"; repo = pname; rev = "v${version}"; - sha256 = "sha256-4VuB8eTWHD4hEDj11u/talfv38h2BhogSZmEVyUtnko="; + hash = "sha256-lXCoPTcpTOv9K0xCVjbrP3qlzP9tfk/e3Rk3oOmbS/Y="; }; - propagatedBuildInputs = [ + propagatedBuildInputs = lib.optionals (pythonOlder "3.8") [ typing-extensions ]; @@ -33,10 +35,12 @@ buildPythonPackage rec { "testMypyImmu" ]; - pythonImportsCheck = [ "immutables" ]; + pythonImportsCheck = [ + "immutables" + ]; meta = with lib; { - description = "An immutable mapping type for Python"; + description = "An immutable mapping type"; homepage = "https://github.com/MagicStack/immutables"; license = with licenses; [ asl20 ]; maintainers = with maintainers; [ catern ]; From 141824ed0dc2aad39fc95c02177ab3fdaab8cc7f Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Mon, 6 Jun 2022 19:27:24 +0200 Subject: [PATCH 188/336] python310Packages.pyathena: 2.5.2 -> 2.9.1 --- pkgs/development/python-modules/pyathena/default.nix | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/pkgs/development/python-modules/pyathena/default.nix b/pkgs/development/python-modules/pyathena/default.nix index 7a44cf995e3f..78a75817bee0 100644 --- a/pkgs/development/python-modules/pyathena/default.nix +++ b/pkgs/development/python-modules/pyathena/default.nix @@ -1,16 +1,16 @@ { lib -, buildPythonPackage -, fetchPypi , boto3 , botocore +, buildPythonPackage +, fetchPypi , pandas -, tenacity , pythonOlder +, tenacity }: buildPythonPackage rec { pname = "pyathena"; - version = "2.5.2"; + version = "2.9.1"; format = "setuptools"; disabled = pythonOlder "3.7"; @@ -18,7 +18,7 @@ buildPythonPackage rec { src = fetchPypi { pname = "PyAthena"; inherit version; - sha256 = "sha256-vjoK6lEitvd5vqSEE/ael8q00O05lquKIviFK/bPlVQ="; + hash = "sha256-b1JdJhSe4ezKN4afZexwc/YT7OM9nIXHK7ca6nYRGnY="; }; propagatedBuildInputs = [ @@ -38,9 +38,9 @@ buildPythonPackage rec { ]; meta = with lib; { + description = "Python DB API 2.0 (PEP 249) client for Amazon Athena"; homepage = "https://github.com/laughingman7743/PyAthena/"; license = licenses.mit; - description = "Python DB API 2.0 (PEP 249) client for Amazon Athena"; maintainers = with maintainers; [ turion ]; }; } From 3e1a60f561d71e0fc4d0aaba8dd336004bf3e43e Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sun, 22 May 2022 18:55:20 +0200 Subject: [PATCH 189/336] python310Packages.gcsfs: 2022.3.0 -> 2022.5.0 --- pkgs/development/python-modules/gcsfs/default.nix | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/pkgs/development/python-modules/gcsfs/default.nix b/pkgs/development/python-modules/gcsfs/default.nix index 82791db5bcc4..85a88dc3d5b5 100644 --- a/pkgs/development/python-modules/gcsfs/default.nix +++ b/pkgs/development/python-modules/gcsfs/default.nix @@ -18,7 +18,7 @@ buildPythonPackage rec { pname = "gcsfs"; - version = "2022.3.0"; + version = "2022.5.0"; format = "setuptools"; disabled = pythonOlder "3.7"; @@ -27,7 +27,7 @@ buildPythonPackage rec { owner = "fsspec"; repo = pname; rev = version; - hash = "sha256-+Bchwsa8Jj7WBWbzyH+GQuqZki4EltMryumKt4Pm1es="; + hash = "sha256-gIkK1VSg1h04+MQBoxFtXIdn80faJlgQ9ayqV5p0RMU="; }; propagatedBuildInputs = [ @@ -55,7 +55,9 @@ buildPythonPackage rec { "gcsfs/tests/test_retry.py" ]; - pytestFlagsArray = [ "-x" ]; + pytestFlagsArray = [ + "-x" + ]; pythonImportsCheck = [ "gcsfs" From 3bd9157c129eda55dd15727f1fd5005cf3da725c Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sun, 22 May 2022 19:28:36 +0200 Subject: [PATCH 190/336] python310Packages.dask-gateway-server: 0.9.0 -> 2022.4.0 --- .../dask-gateway-server/default.nix | 32 ++++++++++++------- 1 file changed, 20 insertions(+), 12 deletions(-) diff --git a/pkgs/development/python-modules/dask-gateway-server/default.nix b/pkgs/development/python-modules/dask-gateway-server/default.nix index f55a2fe75094..5ef21c545fa2 100644 --- a/pkgs/development/python-modules/dask-gateway-server/default.nix +++ b/pkgs/development/python-modules/dask-gateway-server/default.nix @@ -1,25 +1,31 @@ { lib -, buildPythonPackage -, fetchPypi , aiohttp +, buildPythonPackage , colorlog , cryptography -, traitlets +, fetchFromGitHub , go -, isPy27 +, pythonOlder +, traitlets }: buildPythonPackage rec { pname = "dask-gateway-server"; # update dask-gateway-server lock step with dask-gateway - version = "0.9.0"; - disabled = isPy27; + version = "2022.4.0"; + format = "setuptools"; - src = fetchPypi { - inherit pname version; - sha256 = "82bca8a98fc1dbda9f67c8eceac59cb92abe07db6227c120a1eb1d040ea40fda"; + disabled = pythonOlder "3.7"; + + src = fetchFromGitHub { + owner = "dask"; + repo = "dask-gateway"; + rev = version; + hash = "sha256-Grjp7gt3Pos4cQSGV/Rynz6W/zebRI0OqDiWT4cTh8I="; }; + sourceRoot = "${src.name}/${pname}"; + nativeBuildInputs = [ go ]; @@ -36,15 +42,17 @@ buildPythonPackage rec { export GO111MODULE=off ''; - # tests requires cluster for testing + # Tests requires cluster for testing doCheck = false; - pythonImportsCheck = [ "dask_gateway_server" ]; + pythonImportsCheck = [ + "dask_gateway_server" + ]; meta = with lib; { description = "A multi-tenant server for securely deploying and managing multiple Dask clusters"; homepage = "https://gateway.dask.org/"; license = licenses.bsd3; - maintainers = [ maintainers.costrouc ]; + maintainers = with maintainers; [ costrouc ]; }; } From 6d106f05825b8ba42103436289e608c35c6e5c9b Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sun, 22 May 2022 20:43:47 +0200 Subject: [PATCH 191/336] python310Packages.distributed: 2022.2.1 -> 2022.5.0 --- pkgs/development/python-modules/distributed/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/distributed/default.nix b/pkgs/development/python-modules/distributed/default.nix index 2055c9de13e3..5a0cfcab967f 100644 --- a/pkgs/development/python-modules/distributed/default.nix +++ b/pkgs/development/python-modules/distributed/default.nix @@ -19,7 +19,7 @@ buildPythonPackage rec { pname = "distributed"; - version = "2022.2.1"; + version = "2022.5.0"; format = "setuptools"; disabled = pythonOlder "3.7"; @@ -27,7 +27,7 @@ buildPythonPackage rec { # get full repository need conftest.py to run tests src = fetchPypi { inherit pname version; - hash = "sha256-+2KnWvjvM7vhqoCmjAGjOpPBzVozLdAXq0SVW/fs9ls="; + hash = "sha256-vI32FPtRwEaHVHjmR8AVOfX0GgCr89h+8savAJMtxQk="; }; propagatedBuildInputs = [ From 348353cf3616d9b597d1a4ef7bf0b565eac44dbb Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sun, 22 May 2022 22:59:37 +0200 Subject: [PATCH 192/336] python310Packages.locket: 0.2.1 -> 1.0.0 --- .../python-modules/locket/default.nix | 21 +++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) diff --git a/pkgs/development/python-modules/locket/default.nix b/pkgs/development/python-modules/locket/default.nix index fd75a965c52f..e416d8dd8288 100644 --- a/pkgs/development/python-modules/locket/default.nix +++ b/pkgs/development/python-modules/locket/default.nix @@ -1,21 +1,30 @@ -{ lib, buildPythonPackage, fetchPypi, pytest }: +{ lib +, buildPythonPackage +, fetchPypi +, pythonOlder +}: buildPythonPackage rec { pname = "locket"; - version = "0.2.1"; + version = "1.0.0"; + format = "setuptools"; + + disabled = pythonOlder "3.7"; src = fetchPypi { inherit pname version; - sha256 = "3e1faba403619fe201552f083f1ecbf23f550941bc51985ac6ed4d02d25056dd"; + hash = "sha256-XA1MBSqLu/dQ4Fao5lzNMJCG9PDxii6sMGqN+kESpjI="; }; - buildInputs = [ pytest ]; - # weird test requirements (spur.local>=0.3.7,<0.4) doCheck = false; + pythonImportsCheck = [ + "locket" + ]; + meta = with lib; { - description = "Locket implements a lock that can be used by multiple processes provided they use the same path."; + description = "Library which provides a lock that can be used by multiple processes"; homepage = "https://github.com/mwilliamson/locket.py"; license = licenses.bsd2; maintainers = with maintainers; [ teh ]; From 9cf7ead180687b2211c34035551008a2f14db42d Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sun, 22 May 2022 23:11:35 +0200 Subject: [PATCH 193/336] python310Packages.s3fs: 2022.2.0 -> 2022.5.0 --- pkgs/development/python-modules/s3fs/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/s3fs/default.nix b/pkgs/development/python-modules/s3fs/default.nix index 4bfe4be5e8cd..10e2c3b51608 100644 --- a/pkgs/development/python-modules/s3fs/default.nix +++ b/pkgs/development/python-modules/s3fs/default.nix @@ -9,11 +9,11 @@ buildPythonPackage rec { pname = "s3fs"; - version = "2022.2.0"; + version = "2022.5.0"; src = fetchPypi { inherit pname version; - sha256 = "sha256-RhHQ9+QeW8nawwCQcOCtN9qHpC9t73W0gTwG9+QEpzg="; + sha256 = "sha256-tAo8v6+Ay6uvDjMjMRF8ysaSkO/aw0cYT7OrYAP3BGU="; }; buildInputs = [ From 55c67f40aa85d4a9c53bd25fc41e2f53bf94037f Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Mon, 23 May 2022 09:31:51 +0200 Subject: [PATCH 194/336] python310Packages.tifffile: 2022.3.25 -> 2022.5.4 --- pkgs/development/python-modules/tifffile/default.nix | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/tifffile/default.nix b/pkgs/development/python-modules/tifffile/default.nix index 0faea93ebdeb..f3fe08821f5b 100644 --- a/pkgs/development/python-modules/tifffile/default.nix +++ b/pkgs/development/python-modules/tifffile/default.nix @@ -12,14 +12,14 @@ buildPythonPackage rec { pname = "tifffile"; - version = "2022.3.25"; + version = "2022.5.4"; format = "setuptools"; disabled = pythonOlder "3.7"; src = fetchPypi { inherit pname version; - hash = "sha256-bZQ/LAGxo0pHbJY9EZVl+6EI9VngYUJsY6UVeEaVntk="; + hash = "sha256-sDFHoVhit8HZDUdDUZfxSb73pSwlrWfPH5tGX6pxuNI="; }; propagatedBuildInputs = [ @@ -40,6 +40,9 @@ buildPythonPackage rec { "test_write_ome" # Test file is missing "test_write_predictor" + # AssertionError + "test_write_bigtiff" + "test_write_imagej_raw" ]; pythonImportsCheck = [ From 630241e628ed174ec7b5c4fd69fdf91fa07ebad6 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Mon, 23 May 2022 09:53:54 +0200 Subject: [PATCH 195/336] python310Packages.imageio: 2.16.1 -> 2.19.2 --- pkgs/development/python-modules/imageio/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/imageio/default.nix b/pkgs/development/python-modules/imageio/default.nix index 9c449c69b770..7c3fd87b4afd 100644 --- a/pkgs/development/python-modules/imageio/default.nix +++ b/pkgs/development/python-modules/imageio/default.nix @@ -16,11 +16,11 @@ buildPythonPackage rec { pname = "imageio"; - version = "2.16.1"; + version = "2.19.2"; disabled = isPy27; src = fetchPypi { - sha256 = "sha256-fxI8sjp3rFq+jtTnrWpggxqC3ixdEjRj3PHUJ4xHedI="; + sha256 = "sha256-RuHnQSiDfSoevIdHa39zl4tpoSj6I4vJibYlqYGb2bM="; inherit pname version; }; From f76d963ffa2a9357e980a4ebbe3a3e0e85f57801 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Fri, 27 May 2022 22:00:31 +0200 Subject: [PATCH 196/336] python310Packages.pyarrow: disable flaky test --- .../python-modules/pyarrow/default.nix | 36 +++++++++++++++---- 1 file changed, 29 insertions(+), 7 deletions(-) diff --git a/pkgs/development/python-modules/pyarrow/default.nix b/pkgs/development/python-modules/pyarrow/default.nix index 85d89424c839..e967b92174cf 100644 --- a/pkgs/development/python-modules/pyarrow/default.nix +++ b/pkgs/development/python-modules/pyarrow/default.nix @@ -2,7 +2,7 @@ , stdenv , buildPythonPackage , python -, isPy3k +, pythonOlder , arrow-cpp , cffi , cloudpickle @@ -28,14 +28,28 @@ in buildPythonPackage rec { pname = "pyarrow"; - disabled = !isPy3k; - inherit (_arrow-cpp) version src; + disabled = pythonOlder "3.7"; + sourceRoot = "apache-arrow-${version}/python"; - nativeBuildInputs = [ cmake cython pkg-config setuptools-scm ]; - propagatedBuildInputs = [ numpy six cloudpickle scipy fsspec cffi ]; + nativeBuildInputs = [ + cmake + cython + pkg-config + setuptools-scm + ]; + + propagatedBuildInputs = [ + cffi + cloudpickle + fsspec + numpy + scipy + six + ]; + checkInputs = [ hypothesis pandas @@ -62,6 +76,7 @@ buildPythonPackage rec { ARROW_TEST_DATA = lib.optionalString doCheck _arrow-cpp.ARROW_TEST_DATA; doCheck = true; + dontUseCmakeConfigure = true; preBuild = '' @@ -80,6 +95,8 @@ buildPythonPackage rec { "--deselect=pyarrow/tests/test_fs.py::test_s3_real_aws" "--deselect=pyarrow/tests/test_fs.py::test_s3_real_aws_region_selection" "--deselect=pyarrow/tests/test_fs.py::test_s3_options" + # Flaky test + "--deselect=pyarrow/tests/test_flight.py::test_roundtrip_errors" ] ++ lib.optionals stdenv.isDarwin [ # Requires loopback networking "--deselect=pyarrow/tests/test_ipc.py::test_socket_" @@ -90,6 +107,7 @@ buildPythonPackage rec { ]; dontUseSetuptoolsCheck = true; + preCheck = '' shopt -s extglob rm -r pyarrow/!(tests) @@ -98,7 +116,9 @@ buildPythonPackage rec { ulimit -n 1024 ''; - pythonImportsCheck = [ "pyarrow" ] ++ map (module: "pyarrow.${module}") ([ + pythonImportsCheck = [ + "pyarrow" + ] ++ map (module: "pyarrow.${module}") ([ "compute" "csv" "dataset" @@ -108,7 +128,9 @@ buildPythonPackage rec { "hdfs" "json" "parquet" - ] ++ lib.optionals (!stdenv.isDarwin) [ "plasma" ]); + ] ++ lib.optionals (!stdenv.isDarwin) [ + "plasma" + ]); meta = with lib; { description = "A cross-language development platform for in-memory data"; From 15b67040bb14c12b3e4d47efac7a2ad2885cd2c2 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sat, 28 May 2022 01:09:14 +0200 Subject: [PATCH 197/336] python310Packages.dask: 2022.05.0 -> 2022.05.2 --- .../python-modules/dask/default.nix | 49 ++++++++++++------- 1 file changed, 32 insertions(+), 17 deletions(-) diff --git a/pkgs/development/python-modules/dask/default.nix b/pkgs/development/python-modules/dask/default.nix index 59869efbffd8..d0662536538f 100644 --- a/pkgs/development/python-modules/dask/default.nix +++ b/pkgs/development/python-modules/dask/default.nix @@ -4,6 +4,7 @@ , buildPythonPackage , cloudpickle , distributed +, fastparquet , fetchFromGitHub , fetchpatch , fsspec @@ -12,17 +13,19 @@ , packaging , pandas , partd +, pyarrow , pytest-rerunfailures , pytest-xdist , pytestCheckHook , pythonOlder , pyyaml +, scipy , toolz }: buildPythonPackage rec { pname = "dask"; - version = "2022.02.1"; + version = "2022.05.2"; format = "setuptools"; disabled = pythonOlder "3.7"; @@ -31,7 +34,7 @@ buildPythonPackage rec { owner = "dask"; repo = pname; rev = version; - hash = "sha256-A8ktvfpow/QKAEEt9SUnkTqYFJCrV1mgnuDIP3gdyrE="; + hash = "sha256-8M70Pf61PhYnBPRhSG55eWg6gK0lxsIFKF+cRCsf0/U="; }; propagatedBuildInputs = [ @@ -41,48 +44,60 @@ buildPythonPackage rec { partd pyyaml toolz - pandas - jinja2 - bokeh - numpy ]; - doCheck = true; + passthru.optional-dependencies = { + array = [ + numpy + ]; + dataframe = [ + numpy + pandas + ]; + distributed = [ + distributed + ]; + diagnostics = [ + bokeh + jinja2 + ]; + }; checkInputs = [ + fastparquet + pyarrow pytestCheckHook pytest-rerunfailures pytest-xdist + scipy ]; dontUseSetuptoolsCheck = true; postPatch = '' - # versioneer hack to set version of github package + # versioneer hack to set version of GitHub package echo "def get_versions(): return {'dirty': False, 'error': None, 'full-revisionid': None, 'version': '${version}'}" > dask/_version.py substituteInPlace setup.py \ --replace "version=versioneer.get_version()," "version='${version}'," \ --replace "cmdclass=versioneer.get_cmdclass()," "" + + substituteInPlace setup.cfg \ + --replace " --durations=10" "" \ + --replace " -v" "" ''; pytestFlagsArray = [ - # rerun failed tests up to three times + # Rerun failed tests up to three times "--reruns 3" - # don't run tests that require network access + # Don't run tests that require network access "-m 'not network'" ]; disabledTests = lib.optionals stdenv.isDarwin [ - # this test requires features of python3Packages.psutil that are + # Test requires features of python3Packages.psutil that are # blocked in sandboxed-builds "test_auto_blocksize_csv" - ] ++ [ - # A deprecation warning from newer sqlalchemy versions makes these tests - # to fail https://github.com/dask/dask/issues/7406 - "test_sql" - # Test interrupt fails intermittently https://github.com/dask/dask/issues/2192 - "test_interrupt" ]; __darwinAllowLocalNetworking = true; From 71d5ec64ffc00157c29ddc3deb21ecf7afc95e53 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sat, 28 May 2022 15:36:38 +0200 Subject: [PATCH 198/336] python310Packages.distributed: 2022.5.0 -> 2022.5.2 --- .../python-modules/distributed/default.nix | 30 +++++++++---------- 1 file changed, 14 insertions(+), 16 deletions(-) diff --git a/pkgs/development/python-modules/distributed/default.nix b/pkgs/development/python-modules/distributed/default.nix index 5a0cfcab967f..426ee1107909 100644 --- a/pkgs/development/python-modules/distributed/default.nix +++ b/pkgs/development/python-modules/distributed/default.nix @@ -1,57 +1,55 @@ { lib , buildPythonPackage -, fetchPypi , click , cloudpickle , dask +, fetchPypi +, jinja2 +, locket , msgpack +, packaging , psutil +, pythonOlder +, pyyaml , sortedcontainers , tblib , toolz , tornado +, urllib3 , zict -, pyyaml -, mpi4py -, bokeh -, pythonOlder }: buildPythonPackage rec { pname = "distributed"; - version = "2022.5.0"; + version = "2022.5.2"; format = "setuptools"; disabled = pythonOlder "3.7"; - # get full repository need conftest.py to run tests src = fetchPypi { inherit pname version; - hash = "sha256-vI32FPtRwEaHVHjmR8AVOfX0GgCr89h+8savAJMtxQk="; + hash = "sha256-BEqsUfpk/Z4WsaLEMVIg0oHw5cwbBfTT03hSQm8efLY="; }; propagatedBuildInputs = [ - bokeh click cloudpickle dask - mpi4py + jinja2 + locket msgpack + packaging psutil pyyaml sortedcontainers tblib toolz tornado + urllib3 zict ]; - postPatch = '' - substituteInPlace requirements.txt \ - --replace "dask == 2022.02.0" "dask" - ''; - - # when tested random tests would fail and not repeatably + # When tested random tests would fail and not repeatably doCheck = false; pythonImportsCheck = [ From ddb88d2ea46c01ac08ba98aee9b2e93d39ae43d0 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Mon, 30 May 2022 10:20:58 +0200 Subject: [PATCH 199/336] python310Packages.streamz: disable flaky tests --- .../python-modules/streamz/default.nix | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/pkgs/development/python-modules/streamz/default.nix b/pkgs/development/python-modules/streamz/default.nix index ae2cd9504359..0b2fb134a921 100644 --- a/pkgs/development/python-modules/streamz/default.nix +++ b/pkgs/development/python-modules/streamz/default.nix @@ -3,6 +3,7 @@ , buildPythonPackage , confluent-kafka , distributed +, fetchpatch , fetchPypi , flaky , graphviz @@ -15,7 +16,6 @@ , toolz , tornado , zict -, fetchpatch }: buildPythonPackage rec { @@ -27,7 +27,7 @@ buildPythonPackage rec { src = fetchPypi { inherit pname version; - sha256 = "sha256-0wZ1ldLFRAIL9R+gLfwsFbL+gvdORAkYWNjnDmeafm8="; + hash = "sha256-0wZ1ldLFRAIL9R+gLfwsFbL+gvdORAkYWNjnDmeafm8="; }; patches = [ @@ -36,7 +36,9 @@ buildPythonPackage rec { name = "fix-tests-against-distributed-2021.10.0.patch"; url = "https://github.com/python-streamz/streamz/commit/5bd3bc4d305ff40c740bc2550c8491be9162778a.patch"; sha256 = "1xzxcbf7yninkyizrwm3ahqk6ij2fmh0454iqjx2n7mmzx3sazx7"; - includes = ["streamz/tests/test_dask.py"]; + includes = [ + "streamz/tests/test_dask.py" + ]; }) ]; @@ -63,15 +65,17 @@ buildPythonPackage rec { ]; disabledTests = [ - # test_tcp_async fails on sandbox build + # Test fail in the sandbox "test_tcp_async" "test_tcp" "test_partition_timeout" - # flaky - "test_from_iterable_backpressure" + # Tests are flaky + "test_from_iterable" + "test_buffer" ]; + disabledTestPaths = [ - # disable kafka tests + # Disable kafka tests "streamz/tests/test_kafka.py" ]; From 0220a623b414975e624dde56bfa30fe951d3dbd3 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Mon, 30 May 2022 13:18:24 +0200 Subject: [PATCH 200/336] python310Packages.pyarrow: disable flaky test --- pkgs/development/python-modules/pyarrow/default.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/pkgs/development/python-modules/pyarrow/default.nix b/pkgs/development/python-modules/pyarrow/default.nix index e967b92174cf..53dde0cd0f61 100644 --- a/pkgs/development/python-modules/pyarrow/default.nix +++ b/pkgs/development/python-modules/pyarrow/default.nix @@ -97,6 +97,7 @@ buildPythonPackage rec { "--deselect=pyarrow/tests/test_fs.py::test_s3_options" # Flaky test "--deselect=pyarrow/tests/test_flight.py::test_roundtrip_errors" + "--deselect=pyarrow/tests/test_pandas.py::test_threaded_pandas_import" ] ++ lib.optionals stdenv.isDarwin [ # Requires loopback networking "--deselect=pyarrow/tests/test_ipc.py::test_socket_" From 792e5af45bb43455d5096f88ba7ba9a9767b3272 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Tue, 31 May 2022 10:49:31 +0200 Subject: [PATCH 201/336] python310Packages.intake: 0.6.4 -> 0.6.5 --- .../python-modules/intake/default.nix | 64 ++++++++++++------- 1 file changed, 41 insertions(+), 23 deletions(-) diff --git a/pkgs/development/python-modules/intake/default.nix b/pkgs/development/python-modules/intake/default.nix index 0228ae6bcf23..6f895b45ed03 100644 --- a/pkgs/development/python-modules/intake/default.nix +++ b/pkgs/development/python-modules/intake/default.nix @@ -6,7 +6,6 @@ , entrypoints , fetchFromGitHub , fsspec -, holoviews , hvplot , intake-parquet , jinja2 @@ -27,7 +26,8 @@ buildPythonPackage rec { pname = "intake"; - version = "0.6.4"; + version = "0.6.5"; + format = "setuptools"; disabled = pythonOlder "3.7"; @@ -35,57 +35,75 @@ buildPythonPackage rec { owner = pname; repo = pname; rev = version; - sha256 = "194cdd6lx92zcpkn3wgm490kxvw0c58ziix8hcihsr5ayfr1wdsl"; + hash = "sha256-ABMXWUVptpOSPB1jQ57iXk/UG92puNCICzXo3ZMG2Pk="; }; propagatedBuildInputs = [ appdirs - bokeh dask entrypoints fsspec - holoviews - hvplot - jinja2 msgpack - msgpack-numpy - numpy + jinja2 pandas - panel - pyarrow - python-snappy pyyaml - requests - tornado ]; checkInputs = [ intake-parquet pytestCheckHook - ]; + ] ++ passthru.optional-dependencies.server; + + passthru.optional-dependencies = { + server = [ + msgpack + python-snappy + tornado + ]; + dataframe = [ + msgpack-numpy + pyarrow + ]; + plot = [ + hvplot + bokeh + panel + ]; + remote = [ + requests + ]; + }; postPatch = '' substituteInPlace setup.py \ --replace "'pytest-runner'" "" ''; - # test_discover requires driver_with_entrypoints-0.1.dist-info, which is not included in tarball - # test_filtered_compressed_cache requires calvert_uk_filter.tar.gz, which is not included in tarball preCheck = '' - HOME=$TMPDIR - PATH=$out/bin:$PATH + export HOME=$(mktemp -d); + export PATH="$PATH:$out/bin"; ''; disabledTests = [ - # Disable tests which touch network and are broken + # Disable tests which touch network + "http" + "test_dir" "test_discover" "test_filtered_compressed_cache" + "test_flatten_flag" "test_get_dir" - "test_remote_cat" - "http" + "test_pagination" + "test_read_part_compressed" + "test_read_partition" "test_read_pattern" "test_remote_arr" - "test_flatten_flag" + "test_remote_cat" + # ValueError + "test_mlist_parameter" + # ImportError + "test_dataframe" + "test_ndarray" + "test_python" # Timing-based, flaky on darwin and possibly others "TestServerV1Source.test_idle_timer" ] ++ lib.optionals (stdenv.isDarwin && lib.versionOlder stdenv.hostPlatform.darwinMinVersion "10.13") [ From e35789db92dcfa13456cde8d179184fb7f72d693 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Wed, 1 Jun 2022 18:58:11 +0200 Subject: [PATCH 202/336] python310Packages.fsspec: 2022.3.0 -> 2022.5.0 --- .../python-modules/fsspec/default.nix | 36 +++++++++++-------- 1 file changed, 21 insertions(+), 15 deletions(-) diff --git a/pkgs/development/python-modules/fsspec/default.nix b/pkgs/development/python-modules/fsspec/default.nix index 7ff157748891..844f39681648 100644 --- a/pkgs/development/python-modules/fsspec/default.nix +++ b/pkgs/development/python-modules/fsspec/default.nix @@ -1,29 +1,32 @@ { lib , stdenv +, aiohttp , buildPythonPackage , fetchFromGitHub -, pythonOlder -, pytestCheckHook , numpy -, aiohttp -, pytest-vcr -, pytest-mock -, pytest-asyncio -, requests , paramiko +, pytest-asyncio +, pytest-mock +, pytest-vcr +, pytestCheckHook +, pythonOlder +, requests , smbprotocol +, tqdm }: buildPythonPackage rec { pname = "fsspec"; - version = "2022.3.0"; - disabled = pythonOlder "3.6"; + version = "2022.5.0"; + format = "setuptools"; + + disabled = pythonOlder "3.7"; src = fetchFromGitHub { owner = "intake"; repo = "filesystem_spec"; rev = version; - sha256 = "sha256-jTF8R0kaHMsCYg+7YFi21Homn63K+ulp9NDZC/jkIXM="; + hash = "sha256-WOzw9UPF8LZuOhp5p/CJUUJcYpAfixV6GiI8tfnoklc="; }; propagatedBuildInputs = [ @@ -31,13 +34,14 @@ buildPythonPackage rec { paramiko requests smbprotocol + tqdm ]; checkInputs = [ numpy - pytest-vcr - pytest-mock pytest-asyncio + pytest-mock + pytest-vcr pytestCheckHook ]; @@ -58,13 +62,15 @@ buildPythonPackage rec { "test_touch" ]; - pythonImportsCheck = [ "fsspec" ]; + pythonImportsCheck = [ + "fsspec" + ]; meta = with lib; { - homepage = "https://github.com/intake/filesystem_spec"; description = "A specification that Python filesystems should adhere to"; + homepage = "https://github.com/intake/filesystem_spec"; changelog = "https://github.com/fsspec/filesystem_spec/raw/${version}/docs/source/changelog.rst"; license = licenses.bsd3; - maintainers = [ maintainers.costrouc ]; + maintainers = with maintainers; [ costrouc ]; }; } From b352fc55435afa66ca338c6a0a9da1f8cc2a9232 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sun, 22 May 2022 22:30:30 +0200 Subject: [PATCH 203/336] python310Packages.dask: 2022.02.1 -> 2022.05.0 --- pkgs/development/python-modules/dask/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/dask/default.nix b/pkgs/development/python-modules/dask/default.nix index d0662536538f..0eba754f1d3b 100644 --- a/pkgs/development/python-modules/dask/default.nix +++ b/pkgs/development/python-modules/dask/default.nix @@ -25,7 +25,7 @@ buildPythonPackage rec { pname = "dask"; - version = "2022.05.2"; + version = "2022.05.0"; format = "setuptools"; disabled = pythonOlder "3.7"; @@ -34,7 +34,7 @@ buildPythonPackage rec { owner = "dask"; repo = pname; rev = version; - hash = "sha256-8M70Pf61PhYnBPRhSG55eWg6gK0lxsIFKF+cRCsf0/U="; + hash = "sha256-HFRi08RujlwatCPIRaVr9aBZRq9wBx5JRZrELB3hZks="; }; propagatedBuildInputs = [ From 32a2f6fe6f9bfe0be84e126e712b56633eb21330 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Thu, 2 Jun 2022 08:39:14 +0200 Subject: [PATCH 204/336] python310Packages.fastparquet: add optional dependency --- .../python-modules/fastparquet/default.nix | 32 ++++++++++++++++--- 1 file changed, 28 insertions(+), 4 deletions(-) diff --git a/pkgs/development/python-modules/fastparquet/default.nix b/pkgs/development/python-modules/fastparquet/default.nix index 30aa6a2ab764..e11aac39f7e6 100644 --- a/pkgs/development/python-modules/fastparquet/default.nix +++ b/pkgs/development/python-modules/fastparquet/default.nix @@ -8,28 +8,50 @@ , cramjam , fsspec , thrift +, python-lzo , pytestCheckHook +, pythonOlder }: buildPythonPackage rec { pname = "fastparquet"; version = "0.8.1"; + format = "setuptools"; + + disabled = pythonOlder "3.7"; src = fetchFromGitHub { owner = "dask"; repo = pname; rev = version; - sha256 = "05qb4nz87p9vnrdsyl25hdp5sj35lki64gjza5dahc89fwfdnsmd"; + hash = "sha256-rWrbHHcJMahaUV8+YuKkZUhdboNFUK9btjvdg74lCxc="; }; + propagatedBuildInputs = [ + cramjam + fsspec + numba + numpy + pandas + thrift + ]; + + passthru.optional-dependencies = { + lzo = [ + python-lzo + ]; + }; + + checkInputs = [ + pytestCheckHook + ]; + postPatch = '' substituteInPlace setup.py \ --replace "'pytest-runner'," "" \ --replace "oldest-supported-numpy" "numpy" ''; - propagatedBuildInputs = [ cramjam fsspec numba numpy pandas thrift ]; - checkInputs = [ pytestCheckHook ]; # Workaround https://github.com/NixOS/nixpkgs/issues/123561 preCheck = '' @@ -43,7 +65,9 @@ buildPythonPackage rec { rm "$fastparquet_test" ''; - pythonImportsCheck = [ "fastparquet" ]; + pythonImportsCheck = [ + "fastparquet" + ]; meta = with lib; { description = "A python implementation of the parquet format"; From ea658301e1c0fe55f82489d05ecc84b887b7d762 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Thu, 2 Jun 2022 08:45:19 +0200 Subject: [PATCH 205/336] python310Packages.s3fs: disable on older Python releases --- .../python-modules/s3fs/default.nix | 22 +++++++++++++------ 1 file changed, 15 insertions(+), 7 deletions(-) diff --git a/pkgs/development/python-modules/s3fs/default.nix b/pkgs/development/python-modules/s3fs/default.nix index 10e2c3b51608..18332b234154 100644 --- a/pkgs/development/python-modules/s3fs/default.nix +++ b/pkgs/development/python-modules/s3fs/default.nix @@ -1,19 +1,24 @@ -{ stdenv -, lib -, buildPythonPackage -, fetchPypi -, docutils +{ lib +, stdenv , aiobotocore +, aiohttp +, buildPythonPackage +, docutils +, fetchPypi , fsspec +, pythonOlder }: buildPythonPackage rec { pname = "s3fs"; version = "2022.5.0"; + format = "setuptools"; + + disabled = pythonOlder "3.7"; src = fetchPypi { inherit pname version; - sha256 = "sha256-tAo8v6+Ay6uvDjMjMRF8ysaSkO/aw0cYT7OrYAP3BGU="; + hash = "sha256-tAo8v6+Ay6uvDjMjMRF8ysaSkO/aw0cYT7OrYAP3BGU="; }; buildInputs = [ @@ -22,6 +27,7 @@ buildPythonPackage rec { propagatedBuildInputs = [ aiobotocore + aiohttp fsspec ]; @@ -30,7 +36,9 @@ buildPythonPackage rec { # pythonPackages. doCheck = false; - pythonImportsCheck = [ "s3fs" ]; + pythonImportsCheck = [ + "s3fs" + ]; meta = with lib; { broken = (stdenv.isLinux && stdenv.isAarch64) || stdenv.isDarwin; From 077cf7c76be38b0ae63c932e2bc2d70143bdcbd8 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Fri, 3 Jun 2022 12:08:34 +0200 Subject: [PATCH 206/336] Python310Packages.sparse: disable on older Python releases --- .../python-modules/sparse/default.nix | 26 ++++++++++++------- 1 file changed, 16 insertions(+), 10 deletions(-) diff --git a/pkgs/development/python-modules/sparse/default.nix b/pkgs/development/python-modules/sparse/default.nix index c081ab5e3a1e..2a11e1f14587 100644 --- a/pkgs/development/python-modules/sparse/default.nix +++ b/pkgs/development/python-modules/sparse/default.nix @@ -1,24 +1,24 @@ { lib , buildPythonPackage +, dask , fetchPypi -, isPy3k , numba , numpy -, scipy - # Test Inputs , pytestCheckHook -, dask +, pythonOlder +, scipy }: buildPythonPackage rec { pname = "sparse"; version = "0.13.0"; + format = "setuptools"; - disabled = !isPy3k; + disabled = pythonOlder "3.6"; src = fetchPypi { inherit pname version; - sha256 = "685dc994aa770ee1b23f2d5392819c8429f27958771f8dceb2c4fb80210d5915"; + hash = "sha256-aF3JlKp3DuGyPy1TkoGchCnyeVh3H43OssT7gCENWRU="; }; propagatedBuildInputs = [ @@ -26,16 +26,22 @@ buildPythonPackage rec { numpy scipy ]; - checkInputs = [ pytestCheckHook dask ]; - pythonImportsCheck = [ "sparse" ]; + checkInputs = [ + dask + pytestCheckHook + ]; + + pythonImportsCheck = [ + "sparse" + ]; meta = with lib; { description = "Sparse n-dimensional arrays computations"; - homepage = "https://sparse.pydata.org/en/stable/"; + homepage = "https://sparse.pydata.org/"; changelog = "https://sparse.pydata.org/en/stable/changelog.html"; downloadPage = "https://github.com/pydata/sparse/releases/tag/${version}"; license = licenses.bsd3; - maintainers = [ maintainers.costrouc ]; + maintainers = with maintainers; [ costrouc ]; }; } From fc78ec96796fc371f5851d792e9f8ca1fc5a232c Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Fri, 3 Jun 2022 14:06:53 +0200 Subject: [PATCH 207/336] python310Packages.dask-glm: handle optional dependencies --- .../python-modules/dask-glm/default.nix | 54 ++++++++++++++----- 1 file changed, 42 insertions(+), 12 deletions(-) diff --git a/pkgs/development/python-modules/dask-glm/default.nix b/pkgs/development/python-modules/dask-glm/default.nix index 9072a691c20a..bd9b468064dd 100644 --- a/pkgs/development/python-modules/dask-glm/default.nix +++ b/pkgs/development/python-modules/dask-glm/default.nix @@ -1,33 +1,63 @@ { lib , buildPythonPackage -, fetchPypi , cloudpickle , dask -, numpy, toolz # dask[array] +, distributed +, fetchPypi , multipledispatch -, setuptools-scm -, scipy -, scikit-learn , pytestCheckHook +, pythonOlder +, scikit-learn +, scipy +, setuptools-scm +, sparse }: buildPythonPackage rec { - version = "0.2.0"; pname = "dask-glm"; + version = "0.2.0"; + format = "setuptools"; + + disabled = pythonOlder "3.7"; src = fetchPypi { inherit pname version; - sha256 = "58b86cebf04fe5b9e58092e1c467e32e60d01e11b71fdc628baaa9fc6d1adee5"; + hash = "sha256-WLhs6/BP5bnlgJLhxGfjLmDQHhG3H9xii6qp/G0a3uU="; }; - nativeBuildInputs = [ setuptools-scm ]; - checkInputs = [ pytestCheckHook ]; - propagatedBuildInputs = [ cloudpickle dask numpy toolz multipledispatch scipy scikit-learn ]; + nativeBuildInputs = [ + setuptools-scm + ]; + + propagatedBuildInputs = [ + cloudpickle + distributed + multipledispatch + scikit-learn + scipy + sparse + ] ++ dask.optional-dependencies.array; + + checkInputs = [ + sparse + pytestCheckHook + ]; + + pythonImportsCheck = [ + "dask_glm" + ]; + + disabledTestPaths = [ + # Circular dependency with dask-ml + "dask_glm/tests/test_estimators.py" + # Test tries to imort an obsolete method + "dask_glm/tests/test_utils.py" + ]; meta = with lib; { - homepage = "https://github.com/dask/dask-glm/"; description = "Generalized Linear Models with Dask"; + homepage = "https://github.com/dask/dask-glm/"; license = licenses.bsd3; - maintainers = [ maintainers.costrouc ]; + maintainers = with maintainers; [ costrouc ]; }; } From e3873e7f7e182fd71564f522721b6234ba71befa Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Fri, 3 Jun 2022 14:26:38 +0200 Subject: [PATCH 208/336] python310Packages.dask-ml: handle optional dependencies --- pkgs/development/python-modules/dask-ml/default.nix | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/pkgs/development/python-modules/dask-ml/default.nix b/pkgs/development/python-modules/dask-ml/default.nix index d069532cffad..ee3365955db5 100644 --- a/pkgs/development/python-modules/dask-ml/default.nix +++ b/pkgs/development/python-modules/dask-ml/default.nix @@ -13,7 +13,6 @@ , scikit-learn , scipy , setuptools-scm -, toolz }: buildPythonPackage rec { @@ -33,7 +32,6 @@ buildPythonPackage rec { ]; propagatedBuildInputs = [ - dask dask-glm distributed multipledispatch @@ -43,8 +41,8 @@ buildPythonPackage rec { pandas scikit-learn scipy - toolz - ]; + ] ++ dask.optional-dependencies.array + ++ dask.optional-dependencies.dataframe; # has non-standard build from source, and pypi doesn't include tests doCheck = false; From e18f93caedc2946ea3d5b4973a5d7574a8617290 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Fri, 3 Jun 2022 20:25:55 +0200 Subject: [PATCH 209/336] python310Packages.dask: 2022.05.0 -> 2022.05.2 --- .../python-modules/dask/default.nix | 20 +++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/pkgs/development/python-modules/dask/default.nix b/pkgs/development/python-modules/dask/default.nix index 0eba754f1d3b..3aec3e25228c 100644 --- a/pkgs/development/python-modules/dask/default.nix +++ b/pkgs/development/python-modules/dask/default.nix @@ -21,11 +21,12 @@ , pyyaml , scipy , toolz +, zarr }: buildPythonPackage rec { pname = "dask"; - version = "2022.05.0"; + version = "2022.05.2"; format = "setuptools"; disabled = pythonOlder "3.7"; @@ -34,7 +35,7 @@ buildPythonPackage rec { owner = "dask"; repo = pname; rev = version; - hash = "sha256-HFRi08RujlwatCPIRaVr9aBZRq9wBx5JRZrELB3hZks="; + hash = "sha256-8M70Pf31PhYnBPRhSG55eWg6gK0lxsIFKF+cRCsf0/U="; }; propagatedBuildInputs = [ @@ -50,6 +51,9 @@ buildPythonPackage rec { array = [ numpy ]; + complete = [ + distributed + ]; dataframe = [ numpy pandas @@ -70,6 +74,7 @@ buildPythonPackage rec { pytest-rerunfailures pytest-xdist scipy + zarr ]; dontUseSetuptoolsCheck = true; @@ -92,12 +97,19 @@ buildPythonPackage rec { "--reruns 3" # Don't run tests that require network access "-m 'not network'" + # Ignore warning about pyarrow 5.0.0 feautres + "-W" + "ignore::FutureWarning" ]; disabledTests = lib.optionals stdenv.isDarwin [ # Test requires features of python3Packages.psutil that are # blocked in sandboxed-builds "test_auto_blocksize_csv" + # AttributeError: 'str' object has no attribute 'decode' + "test_read_dir_nometa" + ] ++ [ + "test_chunksize_files" ]; __darwinAllowLocalNetworking = true; @@ -113,10 +125,6 @@ buildPythonPackage rec { "dask.diagnostics" ]; - passthru.optional-dependencies = { - complete = [ distributed ]; - }; - meta = with lib; { description = "Minimal task scheduling abstraction"; homepage = "https://dask.org/"; From b045199796dea02c2aa206506f930e0a058efa5e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Mon, 6 Jun 2022 17:30:09 +0000 Subject: [PATCH 210/336] privacyidea: use python39 --- pkgs/applications/misc/privacyidea/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/applications/misc/privacyidea/default.nix b/pkgs/applications/misc/privacyidea/default.nix index d89364280795..9bb63dbb2726 100644 --- a/pkgs/applications/misc/privacyidea/default.nix +++ b/pkgs/applications/misc/privacyidea/default.nix @@ -1,9 +1,9 @@ { lib, fetchFromGitHub, cacert, openssl, nixosTests -, python3 +, python39 }: let - python3' = python3.override { + python3' = python39.override { packageOverrides = self: super: { sqlalchemy = super.sqlalchemy.overridePythonAttrs (oldAttrs: rec { version = "1.3.24"; @@ -19,7 +19,7 @@ let }); flask_migrate = super.flask_migrate.overridePythonAttrs (oldAttrs: rec { version = "2.7.0"; - src = python3.pkgs.fetchPypi { + src = self.fetchPypi { pname = "Flask-Migrate"; inherit version; sha256 = "ae2f05671588762dd83a21d8b18c51fe355e86783e24594995ff8d7380dffe38"; From 37cc04e721e677e556e0fb6c4aa6287f2b003dfd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Mon, 6 Jun 2022 17:51:56 +0000 Subject: [PATCH 211/336] odoo: use python39 --- pkgs/applications/finance/odoo/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/applications/finance/odoo/default.nix b/pkgs/applications/finance/odoo/default.nix index bd8b21aa5aa0..c755b0fb6678 100644 --- a/pkgs/applications/finance/odoo/default.nix +++ b/pkgs/applications/finance/odoo/default.nix @@ -1,14 +1,14 @@ { stdenv , lib , fetchurl -, python3 +, python39 , nodePackages , wkhtmltopdf , nixosTests }: let - python = python3.override { + python = python39.override { packageOverrides = self: super: { click = super.click.overridePythonAttrs (old: rec { version = "7.1.2"; From c2aa1074c140b82f8ff9327d14260faed98792cc Mon Sep 17 00:00:00 2001 From: Jonathan Ringer Date: Mon, 6 Jun 2022 11:22:01 -0700 Subject: [PATCH 212/336] python3Packages.azure-mgmt-containerinstance: 9.1.0 -> 9.2.0 --- .../python-modules/azure-mgmt-containerinstance/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/azure-mgmt-containerinstance/default.nix b/pkgs/development/python-modules/azure-mgmt-containerinstance/default.nix index ae6d9755171e..83e1163df467 100644 --- a/pkgs/development/python-modules/azure-mgmt-containerinstance/default.nix +++ b/pkgs/development/python-modules/azure-mgmt-containerinstance/default.nix @@ -11,12 +11,12 @@ buildPythonPackage rec { pname = "azure-mgmt-containerinstance"; - version = "9.1.0"; + version = "9.2.0"; src = fetchPypi { inherit pname version; extension = "zip"; - sha256 = "22164b0c59138b37bc48ba6d476bf635152bc428dcb420b521a14b8c25c797ad"; + sha256 = "sha256-3rElVUvbGqF99ppZanUUrwFGtCAXak2zhMVOd6n9bkY="; }; propagatedBuildInputs = [ From 42caf48cd0800838b18e3585384194ccc2d4f99b Mon Sep 17 00:00:00 2001 From: Jonathan Ringer Date: Mon, 6 Jun 2022 11:22:01 -0700 Subject: [PATCH 213/336] python3Packages.azure-mgmt-containerregistry: 9.1.0 -> 10.0.0 --- .../python-modules/azure-mgmt-containerregistry/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/azure-mgmt-containerregistry/default.nix b/pkgs/development/python-modules/azure-mgmt-containerregistry/default.nix index fae7318cd486..dc86f5acd738 100644 --- a/pkgs/development/python-modules/azure-mgmt-containerregistry/default.nix +++ b/pkgs/development/python-modules/azure-mgmt-containerregistry/default.nix @@ -6,13 +6,13 @@ }: buildPythonPackage rec { - version = "9.1.0"; + version = "10.0.0"; pname = "azure-mgmt-containerregistry"; disabled = isPy27; src = fetchPypi { inherit pname version; - sha256 = "sha256-jkzGLDqrJgwCnz27lGzFk4d2q+j0P+PU8uUVGQg7MkA="; + sha256 = "sha256-HjejK28Em5AeoQ20o4fucnXTlAwADF/SEpVfHn9anZk="; extension = "zip"; }; From 7c16cc8c54913f0d8ad5950ebd377c17662ab8c9 Mon Sep 17 00:00:00 2001 From: Jonathan Ringer Date: Mon, 6 Jun 2022 11:22:01 -0700 Subject: [PATCH 214/336] python3Packages.azure-storage-blob: 12.11.0 -> 12.12.0 --- .../development/python-modules/azure-storage-blob/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/azure-storage-blob/default.nix b/pkgs/development/python-modules/azure-storage-blob/default.nix index a64ba934887c..80ce4a495385 100644 --- a/pkgs/development/python-modules/azure-storage-blob/default.nix +++ b/pkgs/development/python-modules/azure-storage-blob/default.nix @@ -11,12 +11,12 @@ buildPythonPackage rec { pname = "azure-storage-blob"; - version = "12.11.0"; + version = "12.12.0"; src = fetchPypi { inherit pname version; extension = "zip"; - sha256 = "sha256-SVNbMZC7adDZ/3o4MkaxTaTSsb3/YMrl+Rc5IMZ8p+4="; + sha256 = "sha256-9trwfRyobRia4VybGFnf9bcSe/JKB6S75B4LgeAdYvc="; }; propagatedBuildInputs = [ From cb93a026a55dd996b918861155d21ef68808c630 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Mon, 6 Jun 2022 22:29:55 +0200 Subject: [PATCH 215/336] python310Packages.glances-api: 0.3.5 -> 0.3.6 --- pkgs/development/python-modules/glances-api/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/glances-api/default.nix b/pkgs/development/python-modules/glances-api/default.nix index 8394f7918324..79f30b89d31d 100644 --- a/pkgs/development/python-modules/glances-api/default.nix +++ b/pkgs/development/python-modules/glances-api/default.nix @@ -11,7 +11,7 @@ buildPythonPackage rec { pname = "glances-api"; - version = "0.3.5"; + version = "0.3.6"; format = "pyproject"; disabled = pythonOlder "3.8"; @@ -20,7 +20,7 @@ buildPythonPackage rec { owner = "home-assistant-ecosystem"; repo = "python-glances-api"; rev = version; - sha256 = "sha256-8NWrsiiKevIMeD++C2weRdG0FPm5T4fHMUSJM4J+AOo="; + sha256 = "sha256-2H8S08tntCNKwMw553/wuWLXmri7b2tLxFlgCDJWQNQ="; }; nativeBuildInputs = [ From 8b04068283db099cecf44427d0c6aff460e6eced Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Mon, 6 Jun 2022 22:41:42 +0200 Subject: [PATCH 216/336] python310Packages.pymemcache: 3.5.1 -> 3.5.2 --- .../python-modules/pymemcache/default.nix | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/pkgs/development/python-modules/pymemcache/default.nix b/pkgs/development/python-modules/pymemcache/default.nix index 81c05f4e97c2..c9d3ef94d778 100644 --- a/pkgs/development/python-modules/pymemcache/default.nix +++ b/pkgs/development/python-modules/pymemcache/default.nix @@ -1,22 +1,24 @@ { lib , buildPythonPackage , fetchFromGitHub -, six -, future , mock +, six , pytestCheckHook +, pythonOlder }: buildPythonPackage rec { pname = "pymemcache"; - version = "3.5.1"; + version = "3.5.2"; format = "setuptools"; + disabled = pythonOlder "3.7"; + src = fetchFromGitHub { owner = "pinterest"; repo = pname; rev = "v${version}"; - sha256 = "sha256-DKqfv5gf9gzbnEPQSzy2mAaVYJZL9jmTKyGWVzj40T4="; + hash = "sha256-bsiFWZHGJO/07w6mFXzf0JwftJWClE2mTv86h8zT1K0="; }; propagatedBuildInputs = [ @@ -24,7 +26,6 @@ buildPythonPackage rec { ]; checkInputs = [ - future mock pytestCheckHook ]; @@ -38,7 +39,9 @@ buildPythonPackage rec { "TestClientSocketConnect" ]; - pythonImportsCheck = [ "pymemcache" ]; + pythonImportsCheck = [ + "pymemcache" + ]; meta = with lib; { description = "Python memcached client"; From c9b86a269bc453f2326ebd7509f4249821ea25c6 Mon Sep 17 00:00:00 2001 From: Jonathan Ringer Date: Mon, 6 Jun 2022 16:07:08 -0700 Subject: [PATCH 217/336] python3Packages.azure-data-tables: init at 12.4.0 --- .../azure-data-tables/default.nix | 32 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 ++ 2 files changed, 34 insertions(+) create mode 100644 pkgs/development/python-modules/azure-data-tables/default.nix diff --git a/pkgs/development/python-modules/azure-data-tables/default.nix b/pkgs/development/python-modules/azure-data-tables/default.nix new file mode 100644 index 000000000000..e71a44896e91 --- /dev/null +++ b/pkgs/development/python-modules/azure-data-tables/default.nix @@ -0,0 +1,32 @@ +{ lib +, buildPythonPackage +, fetchPypi +, azure-core +, msrest +}: + +buildPythonPackage rec { + pname = "azure-data-tables"; + version = "12.4.0"; + + src = fetchPypi { + inherit pname version; + extension = "zip"; + sha256 = "sha256-3V/I3pHi+JCO+kxkyn9jz4OzBoqbpCYpjeO1QTnpZlw="; + }; + + propagatedBuildInputs = [ + azure-core + msrest + ]; + + # has no tests + doCheck = false; + + meta = with lib; { + description = "NoSQL data storage service that can be accessed from anywhere"; + homepage = "https://github.com/Azure/azure-sdk-for-python"; + license = licenses.mit; + maintainers = with maintainers; [ jonringer ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index da762288ff2e..7101bbeb01c7 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -883,6 +883,8 @@ in { azure-cosmosdb-table = callPackage ../development/python-modules/azure-cosmosdb-table { }; + azure-data-tables = callPackage ../development/python-modules/azure-data-tables { }; + azure-datalake-store = callPackage ../development/python-modules/azure-datalake-store { }; azure-eventgrid = callPackage ../development/python-modules/azure-eventgrid { }; From c055b9b796d532b2ccfa22190551d6c03a728b59 Mon Sep 17 00:00:00 2001 From: Jonathan Ringer Date: Mon, 6 Jun 2022 16:07:40 -0700 Subject: [PATCH 218/336] python3Packages.antlr4-python3-runtime: fix tests for 4.9+ --- .../python-modules/antlr4-python3-runtime/default.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkgs/development/python-modules/antlr4-python3-runtime/default.nix b/pkgs/development/python-modules/antlr4-python3-runtime/default.nix index 0fade1362c9c..d0e8d4fab439 100644 --- a/pkgs/development/python-modules/antlr4-python3-runtime/default.nix +++ b/pkgs/development/python-modules/antlr4-python3-runtime/default.nix @@ -9,8 +9,9 @@ buildPythonPackage rec { sourceRoot = "source/runtime/Python3"; + # in 4.9, test was renamed to tests checkPhase = '' - cd test + cd test* ${python.interpreter} ctest.py ''; From 40e0a8d9d5e499a9fbe4cd9ffd366c1e85c56ff6 Mon Sep 17 00:00:00 2001 From: Jonathan Ringer Date: Mon, 6 Jun 2022 16:12:32 -0700 Subject: [PATCH 219/336] azure-cli: remove blanket python2 compat logic --- .../azure-mgmt-consumption/default.nix | 6 ++++++ .../azure-mgmt-relay/default.nix | 6 ++++++ pkgs/tools/admin/azure-cli/python-packages.nix | 18 ++++++++---------- 3 files changed, 20 insertions(+), 10 deletions(-) diff --git a/pkgs/development/python-modules/azure-mgmt-consumption/default.nix b/pkgs/development/python-modules/azure-mgmt-consumption/default.nix index ce17bc60de50..aa9d27e680ef 100644 --- a/pkgs/development/python-modules/azure-mgmt-consumption/default.nix +++ b/pkgs/development/python-modules/azure-mgmt-consumption/default.nix @@ -24,6 +24,12 @@ buildPythonPackage rec { azure-mgmt-nspkg ]; + preBuild = '' + rm -f azure_bdist_wheel.py + substituteInPlace setup.cfg \ + --replace "azure-namespace-package = azure-mgmt-nspkg" "" + ''; + pythonNamespaces = [ "azure.mgmt" ]; # has no tests diff --git a/pkgs/development/python-modules/azure-mgmt-relay/default.nix b/pkgs/development/python-modules/azure-mgmt-relay/default.nix index a44825b55bd6..a49080152ed4 100644 --- a/pkgs/development/python-modules/azure-mgmt-relay/default.nix +++ b/pkgs/development/python-modules/azure-mgmt-relay/default.nix @@ -24,6 +24,12 @@ buildPythonPackage rec { azure-mgmt-nspkg ]; + preBuild = '' + rm -f azure_bdist_wheel.py + substituteInPlace setup.cfg \ + --replace "azure-namespace-package = azure-mgmt-nspkg" "" + ''; + pythonNamespaces = [ "azure.mgmt" ]; # has no tests diff --git a/pkgs/tools/admin/azure-cli/python-packages.nix b/pkgs/tools/admin/azure-cli/python-packages.nix index b65b4a8fbbbb..ef3c937c0dda 100644 --- a/pkgs/tools/admin/azure-cli/python-packages.nix +++ b/pkgs/tools/admin/azure-cli/python-packages.nix @@ -5,9 +5,7 @@ let overrideAzureMgmtPackage = package: version: extension: sha256: # check to make sure overriding is even necessary - if version == package.version then - package - else package.overrideAttrs(oldAttrs: rec { + package.overrideAttrs(oldAttrs: rec { inherit version; src = py.pkgs.fetchPypi { @@ -15,14 +13,14 @@ let inherit version sha256 extension; }; - preBuild = '' - rm -f azure_bdist_wheel.py - substituteInPlace setup.cfg \ - --replace "azure-namespace-package = azure-mgmt-nspkg" "" - ''; + #preBuild = '' + # rm -f azure_bdist_wheel.py + # substituteInPlace setup.cfg \ + # --replace "azure-namespace-package = azure-mgmt-nspkg" "" + #''; - # force PEP420 - pythonNamespaces = [ "azure.mgmt" ]; + ## force PEP420 + #pythonNamespaces = [ "azure.mgmt" ]; }); py = python3.override { From ce0ebc2e1599b20b46baacc3094d2e9cda317d66 Mon Sep 17 00:00:00 2001 From: Jonathan Ringer Date: Mon, 6 Jun 2022 16:13:10 -0700 Subject: [PATCH 220/336] azure-cli: 2.34.1 -> 2.37.0 --- pkgs/tools/admin/azure-cli/default.nix | 13 +- .../tools/admin/azure-cli/python-packages.nix | 140 ++++++++++-------- 2 files changed, 85 insertions(+), 68 deletions(-) diff --git a/pkgs/tools/admin/azure-cli/default.nix b/pkgs/tools/admin/azure-cli/default.nix index b4d1d6dd7b76..4237a5a412a2 100644 --- a/pkgs/tools/admin/azure-cli/default.nix +++ b/pkgs/tools/admin/azure-cli/default.nix @@ -1,7 +1,7 @@ { stdenv, lib, python3, fetchFromGitHub, installShellFiles }: let - version = "2.34.1"; + version = "2.37.0"; srcName = "azure-cli-${version}-src"; src = fetchFromGitHub { @@ -9,7 +9,7 @@ let owner = "Azure"; repo = "azure-cli"; rev = "azure-cli-${version}"; - sha256 = "sha256-BEEwxf3UTShKi3K/uBK1yMxyPCvybL/BbKsu8XAwu0M="; + sha256 = "sha256-Y1P+cTOK7NbV7k9rg38vE7EPuZQo88IQW3IYYou8ZOI="; }; # put packages that needs to be overriden in the py package scope @@ -27,12 +27,7 @@ py.pkgs.toPythonApplication (py.pkgs.buildAzureCliPackage { substituteInPlace setup.py \ --replace "chardet~=3.0.4" "chardet" \ --replace "javaproperties~=0.5.1" "javaproperties" \ - --replace "pytz==2019.1" "pytz" \ - --replace "scp~=0.13.2" "scp" \ - --replace "PyNaCl~=1.4.0" "PyNaCl" \ - --replace "jsondiff~=1.2.0" "jsondiff~=1.2" \ - --replace "antlr4-python3-runtime~=4.7.2" "antlr4-python3-runtime~=4.7" \ - --replace "mock~=4.0" "mock" + --replace "scp~=0.13.2" "scp" # remove namespace hacks # remove urllib3 because it was added as 'urllib3[secure]', which doesn't get handled well @@ -50,6 +45,7 @@ py.pkgs.toPythonApplication (py.pkgs.buildAzureCliPackage { azure-cli-core azure-cli-telemetry azure-cosmos + azure-data-tables azure-datalake-store azure-functions-devops-build azure-graphrbac @@ -131,6 +127,7 @@ py.pkgs.toPythonApplication (py.pkgs.buildAzureCliPackage { azure-synapse-artifacts azure-synapse-managedprivateendpoints azure-synapse-spark + chardet colorama cryptography distro diff --git a/pkgs/tools/admin/azure-cli/python-packages.nix b/pkgs/tools/admin/azure-cli/python-packages.nix index ef3c937c0dda..a891795f4244 100644 --- a/pkgs/tools/admin/azure-cli/python-packages.nix +++ b/pkgs/tools/admin/azure-cli/python-packages.nix @@ -58,6 +58,7 @@ let pyjwt pyopenssl pyperclip + pysocks pyyaml requests six @@ -70,7 +71,6 @@ let --replace "cryptography>=3.2,<3.4" "cryptography" \ --replace "msal-extensions>=0.3.1,<0.4" "msal-extensions" ''; - checkInputs = with self; [ pytest ]; doCheck = stdenv.isLinux; # ignore tests that does network call, or assume powershell @@ -116,14 +116,18 @@ let ''; }; + antlr4-python3-runtime = super.antlr4-python3-runtime.override(_: { + antlr4 = super.pkgs.antlr4_9; + }); + azure-batch = overrideAzureMgmtPackage super.azure-batch "12.0.0" "zip" "sha256-GpseF4mEp79JWvZ7zOUfDbHkqKlXr7KeM1VKFKlnTes="; azure-mgmt-apimanagement = overrideAzureMgmtPackage super.azure-mgmt-apimanagement "3.0.0" "zip" "9262f54ed387eb083d8dae66d32a8df35647319b902bd498cdc376f50a12d154"; - azure-mgmt-batch = overrideAzureMgmtPackage super.azure-mgmt-batch "16.0.0" "zip" - "1b3cecd6f16813879c6ac1a1bb01f9a6f2752cd1f9157eb04d5e41e4a89f3c34"; + azure-mgmt-batch = overrideAzureMgmtPackage super.azure-mgmt-batch "16.1.0" "zip" + "sha256-9J0VQ3uAsi4kuEe9UG4xpcEV1Sc+nkjECgVfzG7j5jk="; azure-mgmt-batchai = overrideAzureMgmtPackage super.azure-mgmt-batchai "7.0.0b1" "zip" "sha256-mT6vvjWbq0RWQidugR229E8JeVEiobPD3XA/nDM3I6Y="; @@ -134,8 +138,11 @@ let azure-mgmt-botservice = overrideAzureMgmtPackage super.azure-mgmt-botservice "0.3.0" "zip" "f8318878a66a0685a01bf27b7d1409c44eb90eb72b0a616c1a2455c72330f2f1"; - azure-mgmt-policyinsights = overrideAzureMgmtPackage super.azure-mgmt-policyinsights "1.0.0" "zip" - "75103fb4541aeae30bb687dee1fedd9ca65530e6b97b2d9ea87f74816905202a"; + azure-mgmt-extendedlocation = overrideAzureMgmtPackage super.azure-mgmt-extendedlocation "1.0.0b2" "zip" + "sha256-mjfH35T81JQ97jVgElWmZ8P5MwXVxZQv/QJKNLS3T8A="; + + azure-mgmt-policyinsights = overrideAzureMgmtPackage super.azure-mgmt-policyinsights "1.1.0b2" "zip" + "sha256-e+I5MdbbX7WhxHCj1Ery3z2WUrJtpWGD1bhLbqReb58="; azure-mgmt-rdbms = overrideAzureMgmtPackage super.azure-mgmt-rdbms "10.0.0" "zip" "bdc479b3bbcac423943d63e746a81dd5fc80b46a4dbb4393e760016e3fa4f74a"; @@ -143,29 +150,29 @@ let azure-mgmt-recoveryservices = overrideAzureMgmtPackage super.azure-mgmt-recoveryservices "2.0.0" "zip" "sha256-p9MTfVxGD1CsLUQGHWCnC08nedTKhEt3QZtXJeZeCb4="; - azure-mgmt-recoveryservicesbackup = overrideAzureMgmtPackage super.azure-mgmt-recoveryservicesbackup "4.0.0" "zip" - "a848ac1d99c935e61dfb91ca3e1577904a3eff5820fce179eb6937df8e1019ec"; + azure-mgmt-recoveryservicesbackup = overrideAzureMgmtPackage super.azure-mgmt-recoveryservicesbackup "5.0.0" "zip" + "sha256-BciA3sFyja5xo9yS3WVglC73y8gTfw8UejdEzbD4HYE="; - azure-mgmt-resource = overrideAzureMgmtPackage super.azure-mgmt-resource "20.0.0" "zip" - "622dca4484be64f9f5ce335d327dffabf3e71e14e8a3f4a1051dc85a5c3ebbca"; + azure-mgmt-resource = overrideAzureMgmtPackage super.azure-mgmt-resource "21.1.0b1" "zip" + "sha256-oiC5k+Mg9KJn940jMxG4AB9Pom+t/DWRA5KRv8HO0HI="; - azure-mgmt-appconfiguration = overrideAzureMgmtPackage super.azure-mgmt-appconfiguration "2.0.0" "zip" - "b58bbe82a7429ba589292024896b58d96fe9fa732c578569cac349928dc2ca5f"; + azure-mgmt-appconfiguration = overrideAzureMgmtPackage super.azure-mgmt-appconfiguration "2.1.0b2" "zip" + "sha256-/w+kI/tSNo0vW5ZFcMjRGPPrmNwZbFLKbKVkblZQ6FY="; - azure-mgmt-cognitiveservices = overrideAzureMgmtPackage super.azure-mgmt-cognitiveservices "13.0.0" "zip" - "dc6116e8394d45312c7ad5a9098ce0dd2370bd92d43afd33d8b3bfab724fa498"; + azure-mgmt-cognitiveservices = overrideAzureMgmtPackage super.azure-mgmt-cognitiveservices "13.1.0" "zip" + "sha256-FXS834v5uDGiEGcQMIv9iaHxhfcW9uY3VmX7l91Tfj4="; - azure-mgmt-compute = overrideAzureMgmtPackage super.azure-mgmt-compute "25.0.0" "zip" - "sha256-Y0WNBtQ9v0yhTVFfTvfcudWHOjzGagGB+/b++3Ie5Kk="; + azure-mgmt-compute = overrideAzureMgmtPackage super.azure-mgmt-compute "27.0.0" "zip" + "sha256-n+MQJ0ZeQ/hyS2G8CrNCtoxbvcfrIXmn4LXB/V6JXT0="; azure-mgmt-consumption = overrideAzureMgmtPackage super.azure-mgmt-consumption "2.0.0" "zip" "12ai4qps73ivawh0yzvgb148ksx02r30pqlvfihx497j62gsi1cs"; azure-mgmt-containerinstance = overrideAzureMgmtPackage super.azure-mgmt-containerinstance "9.1.0" "zip" - "sha256-N+zUTEnOyn18lDHlkUj+vRXX/sJhZR7XLd1YdV50ULA="; + "sha256-IhZLDFkTize8SLptR2v2NRUrxCjctCC1IaFLjCXHl60="; - azure-mgmt-containerservice = overrideAzureMgmtPackage super.azure-mgmt-containerservice "17.0.0" "zip" - "sha256-oUbWdZryabCCg/gTujchT7p1nS7IDoU5W9MQ4ekJYH8="; + azure-mgmt-containerservice = overrideAzureMgmtPackage super.azure-mgmt-containerservice "19.1.0" "zip" + "sha256-t06Cesxvjk31aDxkX2Yj0VzFubWbiAc26LzNTIgVEqs="; azure-mgmt-cosmosdb = overrideAzureMgmtPackage super.azure-mgmt-cosmosdb "7.0.0b2" "zip" "sha256-hVvYW9gkfTVMwis3IdD0JXYDxdKcyyzIFx3hNk7VMLI="; @@ -188,8 +195,8 @@ let azure-mgmt-iothubprovisioningservices = overrideAzureMgmtPackage super.azure-mgmt-iothubprovisioningservices "1.1.0" "zip" "sha256-04OoJuff93L62G6IozpmHpEaUbHHHD6nKlkMHVoJvJ4="; - azure-mgmt-iotcentral = overrideAzureMgmtPackage super.azure-mgmt-iotcentral "9.0.0" "zip" - "64df73df449a6f3717f3d0963e5869224ed3e6216c79de571493bea7c1b52cb6"; + azure-mgmt-iotcentral = overrideAzureMgmtPackage super.azure-mgmt-iotcentral "10.0.0b1" "zip" + "sha256-1CiZuTXYhIb74eGQZUJHHzovYNnnVd3Ydu1UCy2Bu00="; azure-mgmt-kusto = overrideAzureMgmtPackage super.azure-mgmt-kusto "0.3.0" "zip" "1pmcdgimd66h964a3d5m2j2fbydshcwhrk87wblhwhfl3xwbgf4y"; @@ -197,17 +204,17 @@ let azure-mgmt-devtestlabs = overrideAzureMgmtPackage super.azure-mgmt-devtestlabs "4.0.0" "zip" "1397ksrd61jv7400mgn8sqngp6ahir55fyq9n5k69wk88169qm2r"; - azure-mgmt-netapp = overrideAzureMgmtPackage super.azure-mgmt-netapp "6.0.1" "zip" - "6ce683587be1638d8d77620b7af118060b8b7dfc4fd23d46a623a66edcb388e1"; + azure-mgmt-netapp = overrideAzureMgmtPackage super.azure-mgmt-netapp "7.0.0" "zip" + "sha256-ziaddG+6MoPG18OYZyQ9HRx8nfGsz2UbWPC1pWacKto="; azure-mgmt-dns = overrideAzureMgmtPackage super.azure-mgmt-dns "8.0.0" "zip" "407c2dacb33513ffbe9ca4be5addb5e9d4bae0cb7efa613c3f7d531ef7bf8de8"; - azure-mgmt-loganalytics = overrideAzureMgmtPackage super.azure-mgmt-loganalytics "13.0.0b2" "zip" - "sha256-j8CyWZGF7Z/5szJ+CD96E0EbNsceJ1SScrlPqWVLjnk="; + azure-mgmt-loganalytics = overrideAzureMgmtPackage super.azure-mgmt-loganalytics "13.0.0b4" "zip" + "sha256-Jm1t7v5vyFjNNM/evVaEI9sXJKNwJk6XAXuJSRSnKHk="; - azure-mgmt-network = overrideAzureMgmtPackage super.azure-mgmt-network "19.3.0" "zip" - "0b6a1ccdffd76e057ab16a6c319740a0ca68d59fedf7e9c02f2437396e72aa11"; + azure-mgmt-network = overrideAzureMgmtPackage super.azure-mgmt-network "20.0.0" "zip" + "sha256-mnjPyCAJ+rlNgZ4umSYjfVVVg83EobZYY/zupyDjdoY="; azure-mgmt-maps = overrideAzureMgmtPackage super.azure-mgmt-maps "2.0.0" "zip" "384e17f76a68b700a4f988478945c3a9721711c0400725afdfcb63cf84e85f0e"; @@ -221,21 +228,15 @@ let azure-mgmt-marketplaceordering = overrideAzureMgmtPackage super.azure-mgmt-marketplaceordering "1.1.0" "zip" "68b381f52a4df4435dacad5a97e1c59ac4c981f667dcca8f9d04453417d60ad8"; - azure-mgmt-media = overrideAzureMgmtPackage super.azure-mgmt-media "7.0.0" "zip" - "sha256-tF6CpZTtkc1ap6XNXQHwOLesPPEiM+e6K+qqNHeQDo4="; + azure-mgmt-media = overrideAzureMgmtPackage super.azure-mgmt-media "9.0.0" "zip" + "sha256-TI7l8sSQ2QUgPqiE3Cu/F67Wna+KHbQS3fuIjOb95ZM="; azure-mgmt-msi = super.azure-mgmt-msi.overridePythonAttrs (old: rec { - version = "0.2.0"; + version = "6.0.1"; src = old.src.override { inherit version; - sha256 = "0rvik03njz940x2hvqg6iiq8k0d88gyygsr86w8s0sa12sdbq8l6"; + sha256 = "sha256-PPkQmUoBkJ8Su7h9G2/t8dVy/PT3uCYZjlf70fnY2vU="; }; - propagatedBuildInputs = with self; [ - msrest - msrestazure - azure-common - azure-mgmt-nspkg - ]; }); azure-mgmt-privatedns = overrideAzureMgmtPackage super.azure-mgmt-privatedns "1.0.0" "zip" @@ -244,14 +245,14 @@ let azure-mgmt-web = overrideAzureMgmtPackage super.azure-mgmt-web "6.1.0" "zip" "c26635089276515b0488fcf014aab50a0446f54800c6e0e5583cc493ac8d738f"; - azure-mgmt-redhatopenshift = overrideAzureMgmtPackage super.azure-mgmt-redhatopenshift "1.0.0" "zip" - "94cd41f1ebd82e40620fd3e6d88f666b5c19ac7cf8b4e8edadb9721bd7c80980"; + azure-mgmt-redhatopenshift = overrideAzureMgmtPackage super.azure-mgmt-redhatopenshift "1.1.0" "zip" + "sha256-Tq8h3fvajxIG2QjtCyHCQDE2deBDioxLLaQQek/O24U="; azure-mgmt-redis = overrideAzureMgmtPackage super.azure-mgmt-redis "13.1.0" "zip" "ece913e5fc7f157e945809e557443f79ff7691cabca4bbc5ecb266352f843179"; - azure-mgmt-reservations = overrideAzureMgmtPackage super.azure-mgmt-reservations "0.6.0" "zip" - "16ycni3cjl9c0mv419gy5rgbrlg8zp0vnr6aj8z8p2ypdw6sgac3"; + azure-mgmt-reservations = overrideAzureMgmtPackage super.azure-mgmt-reservations "2.0.0" "zip" + "sha256-5vXdXiRubnzPk4uTFeNHR6rwiHSGbeUREX9eW1pqC3E="; azure-mgmt-search = overrideAzureMgmtPackage super.azure-mgmt-search "8.0.0" "zip" "a96d50c88507233a293e757202deead980c67808f432b8e897c4df1ca088da7e"; @@ -262,11 +263,11 @@ let azure-mgmt-signalr = overrideAzureMgmtPackage super.azure-mgmt-signalr "1.0.0b2" "zip" "sha256-FTxY8qoihHG4OZuKT3sRRlKfORbIoqDqug9Ko+6S9dw="; - azure-mgmt-sql = overrideAzureMgmtPackage super.azure-mgmt-sql "3.0.1" "zip" - "129042cc011225e27aee6ef2697d585fa5722e5d1aeb0038af6ad2451a285457"; + azure-mgmt-sql = overrideAzureMgmtPackage super.azure-mgmt-sql "4.0.0b1" "zip" + "sha256-dYk3stvQHN/VEZS8OBCp0IbG8g6iIHpMrLxCWWg7Id8="; - azure-mgmt-sqlvirtualmachine = overrideAzureMgmtPackage super.azure-mgmt-sqlvirtualmachine "1.0.0b1" "zip" - "sha256-SrFTvU+67U3CpMLPZMawXuRdSIbTsfav2jFZIsZWPmw="; + azure-mgmt-sqlvirtualmachine = overrideAzureMgmtPackage super.azure-mgmt-sqlvirtualmachine "1.0.0b2" "zip" + "sha256-zqsLufjUmOl1Zxu8QhYzsEKYgoS+m8GTpRydl7jvXMk="; azure-mgmt-synapse = overrideAzureMgmtPackage super.azure-mgmt-synapse "2.1.0b2" "zip" "sha256-/BAxKDttp/tS/X45y8X4KBm5qxtNuVXhrc5qB3A+wRE="; @@ -277,14 +278,14 @@ let azure-mgmt-relay = overrideAzureMgmtPackage super.azure-mgmt-relay "0.1.0" "zip" "1jss6qhvif8l5s0lblqw3qzijjf0h88agciiydaa7f4q577qgyfr"; - azure-mgmt-eventhub = overrideAzureMgmtPackage super.azure-mgmt-eventhub "9.1.0" "zip" - "0ba9f10e1e8d03247a316e777d6f27fabf268d596dda2af56ac079fcdf5e7afe"; + azure-mgmt-eventhub = overrideAzureMgmtPackage super.azure-mgmt-eventhub "10.0.0" "zip" + "0856574ef4b73bbbc62834051061e2081400aba7e3715e10ef5181d639e86a0b"; azure-mgmt-keyvault = overrideAzureMgmtPackage super.azure-mgmt-keyvault "9.3.0" "zip" "54156422e618b686d52232a7989594b240bd18afd0fa381e12e4772ed4ab5ea8"; - azure-mgmt-cdn = overrideAzureMgmtPackage super.azure-mgmt-cdn "11.0.0" "zip" - "28e7070001e7208cdb6c2ad253ec78851abdd73be482230d2c0874eed5bc0907"; + azure-mgmt-cdn = overrideAzureMgmtPackage super.azure-mgmt-cdn "12.0.0" "zip" + "sha256-t8PuIYkjS0r1Gs4pJJJ8X9cz8950imQtbVBABnyMnd0="; azure-mgmt-containerregistry = overrideAzureMgmtPackage super.azure-mgmt-containerregistry "8.2.0" "zip" "f2bcdbcf0b9fdc2df0df9eccb77cb489091d3c670ed53cba77e5ffd734e9539b"; @@ -301,8 +302,8 @@ let azure-mgmt-authorization = overrideAzureMgmtPackage super.azure-mgmt-authorization "0.61.0" "zip" "0xfvx2dvfj3fbz4ngn860ipi4v6gxqajyjc8x92r8knhmniyxk7m"; - azure-mgmt-storage = overrideAzureMgmtPackage super.azure-mgmt-storage "19.1.0" "zip" - "sha256-Seoi8A4JZaNVCvNKQcGh06SBaQ9lAMeOhUCIAvVtdBY="; + azure-mgmt-storage = overrideAzureMgmtPackage super.azure-mgmt-storage "20.0.0" "zip" + "sha256-buR2tWIv9vWVTt7m6w2N1CezIXAihVrfHshjPKBM3uI="; azure-mgmt-servicebus = overrideAzureMgmtPackage super.azure-mgmt-servicebus "7.1.0" "zip" "d8ae7905fb7d3e24822daa20aa7bc5014f41aa18b48ea2d0161e997fc11a3d36"; @@ -310,14 +311,14 @@ let azure-mgmt-servicefabric = overrideAzureMgmtPackage super.azure-mgmt-servicefabric "1.0.0" "zip" "de35e117912832c1a9e93109a8d24cab94f55703a9087b2eb1c5b0655b3b1913"; - azure-mgmt-servicelinker = overrideAzureMgmtPackage super.azure-mgmt-servicelinker "1.0.0b1" "zip" - "sha256-T3DTvNmLpTm/74cOPEl+vcXv7TIAwmJ6YXGLqpqyGmE="; + azure-mgmt-servicelinker = overrideAzureMgmtPackage super.azure-mgmt-servicelinker "1.0.0" "zip" + "sha256-lAjgwEa2TJDEUU8pwfwkU8EyA1bhLkcAv++I6WHb7Xs="; azure-mgmt-hdinsight = overrideAzureMgmtPackage super.azure-mgmt-hdinsight "9.0.0" "zip" "41ebdc69c0d1f81d25dd30438c14fff4331f66639f55805b918b9649eaffe78a"; - azure-multiapi-storage = overrideAzureMgmtPackage super.azure-multiapi-storage "0.7.0" "tar.gz" - "cd4f184be8c9ca8aca969f93ed50dc7fe556d28ca11520440fc182cf876abdf9"; + azure-multiapi-storage = overrideAzureMgmtPackage super.azure-multiapi-storage "0.9.0" "tar.gz" + "sha256-7uq8uRZ3MXI1Gy+DmMkRVNV7uZPw6j8r9KfhS8d+tCY="; azure-appconfiguration = super.azure-appconfiguration.overrideAttrs(oldAttrs: rec { version = "1.1.1"; @@ -360,11 +361,11 @@ let }); azure-synapse-artifacts = super.azure-synapse-artifacts.overrideAttrs(oldAttrs: rec { - version = "0.10.0"; + version = "0.12.0"; src = super.fetchPypi { inherit (oldAttrs) pname; inherit version; - sha256 = "sha256-P3gsm1kLiuQ2eMbgA9+MqMymdYMgOdJwsLdDf/AVV/0="; + sha256 = "sha256-IfQWsITuThzh+TRgv99JTtcDFY3gMq5PjALkN4mJEZo="; extension = "zip"; }; }); @@ -426,12 +427,12 @@ let }); azure-keyvault-keys = super.azure-keyvault-keys.overridePythonAttrs(oldAttrs: rec { - version = "4.5.0b6"; + version = "4.5.1"; src = super.fetchPypi { inherit (oldAttrs) pname; inherit version; extension = "zip"; - sha256 = "sha256-WFSRJaia0+WnvGxoMYZIvf81ue51VPYXzTp8huUh1fc="; + sha256 = "sha256-2ojnH+ySoU+1jOyIaKv366BAGI3Nzjac4QUK3RllhvY="; }; }); @@ -484,6 +485,16 @@ let doCheck = false; }); + msal = super.msal.overridePythonAttrs(oldAttrs: rec { + version = "1.18.0b1"; + + src = super.fetchPypi { + inherit (oldAttrs) pname; + inherit version; + sha256 = "sha256-kiYDjzX756uulLFr4gCuLnXgmAi+s2WDCGmvkQFC8Ow="; + }; + }); + semver = super.semver.overridePythonAttrs(oldAttrs: rec { version = "2.13.0"; @@ -494,6 +505,15 @@ let }; }); + jsondiff = super.jsondiff.overridePythonAttrs(oldAttrs: rec { + version = "2.0.0"; + + src = oldAttrs.src.override { + inherit version; + sha256 = "sha256-J5WETvB17IorjThcTVn16kiwjnGA/OPLJ4e+DbALH7Q="; + }; + }); + knack = super.knack.overridePythonAttrs(oldAttrs: rec { version = "0.9.0"; @@ -526,11 +546,11 @@ let }); websocket-client = super.websocket-client.overridePythonAttrs(oldAttrs: rec { - version = "0.56.0"; + version = "1.3.1"; src = oldAttrs.src.override { inherit version; - sha256 = "0fpxjyr74klnyis3yf6m54askl0h5dchxcwbfjsq92xng0455m8z"; + sha256 = "sha256-YninUGU5VBgoP4h958O+r7OqaNraXKy+SyFOjSbaSZs="; }; }); From 77cdee19460acb111ed280ffd4b966b2cbaff2b9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Tue, 7 Jun 2022 02:07:34 +0200 Subject: [PATCH 221/336] fixup! python3Packages.azure-data-tables: init at 12.4.0 --- pkgs/development/python-modules/azure-data-tables/default.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkgs/development/python-modules/azure-data-tables/default.nix b/pkgs/development/python-modules/azure-data-tables/default.nix index e71a44896e91..7f2933e01a56 100644 --- a/pkgs/development/python-modules/azure-data-tables/default.nix +++ b/pkgs/development/python-modules/azure-data-tables/default.nix @@ -23,6 +23,8 @@ buildPythonPackage rec { # has no tests doCheck = false; + pythonImportsCheck = [ "azure.data.tables" ]; + meta = with lib; { description = "NoSQL data storage service that can be accessed from anywhere"; homepage = "https://github.com/Azure/azure-sdk-for-python"; From daad0beb4207882d485b23560b1c20acdb449ad8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Tue, 7 Jun 2022 02:08:01 +0200 Subject: [PATCH 222/336] fixup! azure-cli: 2.34.1 -> 2.37.0 --- pkgs/tools/admin/azure-cli/python-packages.nix | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/pkgs/tools/admin/azure-cli/python-packages.nix b/pkgs/tools/admin/azure-cli/python-packages.nix index a891795f4244..bc0328cef1ff 100644 --- a/pkgs/tools/admin/azure-cli/python-packages.nix +++ b/pkgs/tools/admin/azure-cli/python-packages.nix @@ -1,7 +1,7 @@ { stdenv, python3, lib, src, version }: let - buildAzureCliPackage = with py.pkgs; attrs: buildPythonPackage attrs; + buildAzureCliPackage = with py.pkgs; buildPythonPackage; overrideAzureMgmtPackage = package: version: extension: sha256: # check to make sure overriding is even necessary @@ -12,15 +12,6 @@ let inherit (oldAttrs) pname; inherit version sha256 extension; }; - - #preBuild = '' - # rm -f azure_bdist_wheel.py - # substituteInPlace setup.cfg \ - # --replace "azure-namespace-package = azure-mgmt-nspkg" "" - #''; - - ## force PEP420 - #pythonNamespaces = [ "azure.mgmt" ]; }); py = python3.override { From 499c5044ffc457687d1edc2b50eb45bd26d0215d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Tue, 7 Jun 2022 02:11:24 +0200 Subject: [PATCH 223/336] python310Packages.pylint: 2.14.0 -> 2.14.1 --- pkgs/development/python-modules/pylint/default.nix | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/pkgs/development/python-modules/pylint/default.nix b/pkgs/development/python-modules/pylint/default.nix index 54906b8c7f40..5fa39298cb5f 100644 --- a/pkgs/development/python-modules/pylint/default.nix +++ b/pkgs/development/python-modules/pylint/default.nix @@ -2,7 +2,6 @@ , lib , buildPythonPackage , fetchFromGitHub -, pythonAtLeast , pythonOlder , installShellFiles , astroid @@ -21,7 +20,7 @@ buildPythonPackage rec { pname = "pylint"; - version = "2.14.0"; + version = "2.14.1"; format = "setuptools"; disabled = pythonOlder "3.7.2"; @@ -30,7 +29,7 @@ buildPythonPackage rec { owner = "PyCQA"; repo = pname; rev = "v${version}"; - sha256 = "sha256-nFgSI7Dk+/DEoeSkd3Pv+a/MtZPja89O3BrxrbqcgTo="; + sha256 = "sha256-rtyqHRDywv3l8bDgEjQlsh8lvwWbLswOPujFakaLWOw="; }; nativeBuildInputs = [ From a0aeec7e43d0e162070340e5986f6e8caa22f4a6 Mon Sep 17 00:00:00 2001 From: Nick Cao Date: Tue, 7 Jun 2022 10:52:11 +0800 Subject: [PATCH 224/336] portaudio: set strictDeps --- pkgs/development/libraries/portaudio/default.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/pkgs/development/libraries/portaudio/default.nix b/pkgs/development/libraries/portaudio/default.nix index d96a85fb8336..22ff1e450c19 100644 --- a/pkgs/development/libraries/portaudio/default.nix +++ b/pkgs/development/libraries/portaudio/default.nix @@ -19,6 +19,7 @@ stdenv.mkDerivation rec { sha256 = "1vrdrd42jsnffh6rq8ap2c6fr4g9fcld89z649fs06bwqx1bzvs7"; }; + strictDeps = true; nativeBuildInputs = [ pkg-config which ]; buildInputs = lib.optional (!stdenv.isDarwin) alsa-lib; From 7f8d28e99bb43316e8b8d57edb02bd84ac3e2376 Mon Sep 17 00:00:00 2001 From: Henri Menke Date: Tue, 7 Jun 2022 08:58:18 +0200 Subject: [PATCH 225/336] libusb1: 1.0.25 -> 1.0.26 --- pkgs/development/libraries/libusb1/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/libraries/libusb1/default.nix b/pkgs/development/libraries/libusb1/default.nix index 24b147d142d7..3b23402fe33c 100644 --- a/pkgs/development/libraries/libusb1/default.nix +++ b/pkgs/development/libraries/libusb1/default.nix @@ -13,13 +13,13 @@ stdenv.mkDerivation rec { pname = "libusb"; - version = "1.0.25"; + version = "1.0.26"; src = fetchFromGitHub { owner = "libusb"; repo = "libusb"; rev = "v${version}"; - sha256 = "141wygijjcgka0h31504cdlvih4l2j02j67pcbb2l527p7dbc5pn"; + sha256 = "sha256-LEy45YiFbueCCi8d2hguujMsxBezaTUERHUpFsTKGZQ="; }; outputs = [ "out" "dev" ]; From 0031ccab55e72a1ca59128882f9f98de2a049226 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Tue, 7 Jun 2022 10:10:58 +0200 Subject: [PATCH 226/336] python310Packages.pyserial: add pythonImportsCheck - disable on obsolete Python releases - add format --- .../python-modules/pyserial/default.nix | 30 +++++++++++++++---- 1 file changed, 24 insertions(+), 6 deletions(-) diff --git a/pkgs/development/python-modules/pyserial/default.nix b/pkgs/development/python-modules/pyserial/default.nix index b45b031fb84a..92ef636932fd 100644 --- a/pkgs/development/python-modules/pyserial/default.nix +++ b/pkgs/development/python-modules/pyserial/default.nix @@ -1,12 +1,21 @@ -{ stdenv, lib, fetchPypi, buildPythonPackage }: +{ lib +, stdenv +, buildPythonPackage +, fetchPypi +, python +, pythonOlder +}: buildPythonPackage rec { pname = "pyserial"; - version="3.5"; + version = "3.5"; + format = "setuptools"; + + disabled = pythonOlder "3.7"; src = fetchPypi { inherit pname version; - sha256 = "1nyd4m4mnrz8scbfqn4zpq8gnbl4x42w5zz62vcgpzqd2waf0xrw"; + hash = "sha256-PHfgFBcN//vYFub/wgXphC77EL6fWOwW0+hnW0klzds="; }; patches = [ @@ -14,13 +23,22 @@ buildPythonPackage rec { ./002-rfc2217-timeout-setter-for-rfc2217.patch ]; - checkPhase = "python -m unittest discover -s test"; doCheck = !stdenv.hostPlatform.isDarwin; # broken on darwin + checkPhase = '' + runHook preCheck + ${python.interpreter} -m unittest discover -s test + runHook postCheck + ''; + + pythonImportsCheck = [ + "serial" + ]; + meta = with lib; { - homepage = "https://github.com/pyserial/pyserial"; - license = licenses.psfl; description = "Python serial port extension"; + homepage = "https://github.com/pyserial/pyserial"; + license = licenses.bsd3; maintainers = with maintainers; [ makefu ]; }; } From 0dbb26a3914d086b06ade061f920239a562de645 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Tue, 7 Jun 2022 10:24:21 +0200 Subject: [PATCH 227/336] python310Packages.configobj: switch to pytestCheckHook - add pythonImportsCheck - disable on obsolete Python releases --- .../python-modules/configobj/default.nix | 29 ++++++++++++------- 1 file changed, 19 insertions(+), 10 deletions(-) diff --git a/pkgs/development/python-modules/configobj/default.nix b/pkgs/development/python-modules/configobj/default.nix index 746c5f35f256..3ea89db527e9 100644 --- a/pkgs/development/python-modules/configobj/default.nix +++ b/pkgs/development/python-modules/configobj/default.nix @@ -1,29 +1,38 @@ -{ lib, buildPythonPackage +{ lib +, buildPythonPackage , fetchFromGitHub +, mock +, pytestCheckHook +, pythonOlder , six -, mock, pytest }: buildPythonPackage rec { pname = "configobj"; version = "5.0.6"; + format = "setuptools"; + + disabled = pythonOlder "3.7"; - # Pypi archives don't contain the tests src = fetchFromGitHub { owner = "DiffSK"; repo = pname; rev = "v${version}"; - sha256 = "0x97794nk3dfn0i3si9fv7y19jnpnarb34bkdwlz7ii7ag6xihhw"; + hash = "sha256-HMLYzVMnxvMpb3ORsbKy18oU/NkuRT0isK6NaUk6J3U="; }; + propagatedBuildInputs = [ + six + ]; - propagatedBuildInputs = [ six ]; + checkInputs = [ + mock + pytestCheckHook + ]; - checkPhase = '' - pytest --deselect=tests/test_configobj.py::test_options_deprecation - ''; - - checkInputs = [ mock pytest ]; + pythonImportsCheck = [ + "configobj" + ]; meta = with lib; { description = "Config file reading, writing and validation"; From 13a4a8702cf72010efedd4e7cb52cd9c5b76f88b Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Tue, 7 Jun 2022 10:43:00 +0200 Subject: [PATCH 228/336] python310Packages.jsonpatch: enable tests - add pythonImportsCheck - disable on obsolete Python releases --- .../python-modules/jsonpatch/default.nix | 38 ++++++++++++++----- 1 file changed, 29 insertions(+), 9 deletions(-) diff --git a/pkgs/development/python-modules/jsonpatch/default.nix b/pkgs/development/python-modules/jsonpatch/default.nix index f77412e4cc14..03060f4e866f 100644 --- a/pkgs/development/python-modules/jsonpatch/default.nix +++ b/pkgs/development/python-modules/jsonpatch/default.nix @@ -1,25 +1,45 @@ { lib , buildPythonPackage -, fetchPypi +, fetchFromGitHub , jsonpointer +, pytestCheckHook +, pythonOlder }: buildPythonPackage rec { pname = "jsonpatch"; version = "1.32"; + format = "setuptools"; - src = fetchPypi { - inherit pname version; - sha256 = "b6ddfe6c3db30d81a96aaeceb6baf916094ffa23d7dd5fa2c13e13f8b6e600c2"; + disabled = pythonOlder "3.7"; + + src = fetchFromGitHub { + owner = "stefankoegl"; + repo = "python-json-patch"; + rev = "v${version}"; + hash = "sha256-JMGBgYjnjHQ5JpzDwJcR2nVZfzmQ8ZZtcB0GsJ9Q4Jc="; }; - # test files are missing - doCheck = false; - propagatedBuildInputs = [ jsonpointer ]; + propagatedBuildInputs = [ + jsonpointer + ]; - meta = { + checkInputs = [ + pytestCheckHook + ]; + + pythonImportsCheck = [ + "jsonpatch" + ]; + + pytestFlagsArray = [ + "tests.py" + ]; + + meta = with lib; { description = "Library to apply JSON Patches according to RFC 6902"; homepage = "https://github.com/stefankoegl/python-json-patch"; - license = lib.licenses.bsd2; # "Modified BSD license, says pypi" + license = licenses.bsd2; # "Modified BSD license, says pypi" + maintainers = with maintainers; [ ]; }; } From 069f9a077ed3cc885ee781dd92cc32a7a1e0f37f Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Tue, 7 Jun 2022 11:14:50 +0200 Subject: [PATCH 229/336] python310Packages.netifaces: add format - disable on obsolete Python releases --- .../python-modules/netifaces/default.nix | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/pkgs/development/python-modules/netifaces/default.nix b/pkgs/development/python-modules/netifaces/default.nix index 66feb7be0263..6d34bc3df4a5 100644 --- a/pkgs/development/python-modules/netifaces/default.nix +++ b/pkgs/development/python-modules/netifaces/default.nix @@ -1,25 +1,32 @@ { lib , buildPythonPackage , fetchPypi +, pythonOlder }: buildPythonPackage rec { version = "0.11.0"; pname = "netifaces"; + format = "setuptools"; + + disabled = pythonOlder "3.7"; src = fetchPypi { inherit pname version; - sha256 = "043a79146eb2907edf439899f262b3dfe41717d34124298ed281139a8b93ca32"; + hash = "sha256-BDp5FG6ykH7fQ5iZ8mKz3+QXF9NBJCmO0oETmouTyjI="; }; - doCheck = false; # no tests implemented + # No tests implemented + doCheck = false; - pythonImportsCheck = [ "netifaces" ]; + pythonImportsCheck = [ + "netifaces" + ]; meta = with lib; { - homepage = "https://alastairs-place.net/projects/netifaces/"; description = "Portable access to network interfaces from Python"; + homepage = "https://github.com/al45tair/netifaces"; license = licenses.mit; + maintainers = with maintainers; [ ]; }; - } From 9af97d300480c9d4b448d9f1850bca62496706eb Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Tue, 7 Jun 2022 12:11:19 +0200 Subject: [PATCH 230/336] python310Packages.pyannotate: switch to pytestCheckHook - disable on obsolete Python releases - add pythonImportsCheck --- .../python-modules/pyannotate/default.nix | 34 ++++++++++++------- 1 file changed, 21 insertions(+), 13 deletions(-) diff --git a/pkgs/development/python-modules/pyannotate/default.nix b/pkgs/development/python-modules/pyannotate/default.nix index 332a4161fe78..50edda1a7ef2 100644 --- a/pkgs/development/python-modules/pyannotate/default.nix +++ b/pkgs/development/python-modules/pyannotate/default.nix @@ -1,34 +1,42 @@ { lib , buildPythonPackage , fetchPypi +, mypy-extensions +, pytestCheckHook , pythonOlder , six -, mypy-extensions -, typing -, pytest }: buildPythonPackage rec { - version = "1.2.0"; pname = "pyannotate"; + version = "1.2.0"; + format = "setuptools"; + + disabled = pythonOlder "3.7"; src = fetchPypi { inherit pname version; - sha256 = "16bm0mf7wxvy0lgmcs1p8n1ji8pnvj1jvj8zk3am70dkp825iv84"; + hash = "sha256-BO1YBLqzgVPVmB/JLYPc9qIog0U3aFYfBX53flwFdZk="; }; - checkInputs = [ pytest ]; - propagatedBuildInputs = [ six mypy-extensions ] - ++ lib.optionals (pythonOlder "3.5") [ typing ]; + propagatedBuildInputs = [ + six + mypy-extensions + ]; - checkPhase = '' - py.test - ''; + checkInputs = [ + pytestCheckHook + ]; + + pythonImportsCheck = [ + "pyannotate_runtime" + "pyannotate_tools" + ]; meta = with lib; { - homepage = "https://github.com/dropbox/pyannotate"; description = "Auto-generate PEP-484 annotations"; + homepage = "https://github.com/dropbox/pyannotate"; license = licenses.mit; - maintainers = [ maintainers.costrouc ]; + maintainers = with maintainers; [ costrouc ]; }; } From 209c3fafde2b571ceb06553f839523a056cd8415 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Tue, 7 Jun 2022 12:37:09 +0200 Subject: [PATCH 231/336] python310Packages.pytest-annotate: relax pytest constraint --- .../python-modules/pytest-annotate/default.nix | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/pkgs/development/python-modules/pytest-annotate/default.nix b/pkgs/development/python-modules/pytest-annotate/default.nix index 72ef588cb015..2c73a70bc442 100644 --- a/pkgs/development/python-modules/pytest-annotate/default.nix +++ b/pkgs/development/python-modules/pytest-annotate/default.nix @@ -1,5 +1,5 @@ -{ stdenv -, lib +{ lib +, stdenv , buildPythonPackage , fetchPypi , pyannotate @@ -13,7 +13,7 @@ buildPythonPackage rec { src = fetchPypi { inherit pname version; - sha256 = "d0da4c3d872a7d5796ac85016caa1da38ae902bebdc759e1b6c0f6f8b5802741"; + hash = "sha256-0NpMPYcqfVeWrIUBbKodo4rpAr69x1nhtsD2+LWAJ0E="; }; buildInputs = [ @@ -24,6 +24,11 @@ buildPythonPackage rec { pyannotate ]; + postPatch = '' + substituteInPlace setup.py \ + --replace "pytest>=3.2.0,<7.0.0" "pytest>=3.2.0" + ''; + # Module has no tests doCheck = false; From c422b6566c9665de0e3406c2d9c6856256445c3e Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Tue, 7 Jun 2022 12:52:33 +0200 Subject: [PATCH 232/336] pip-audit: adjust inputs --- pkgs/development/tools/pip-audit/default.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/pkgs/development/tools/pip-audit/default.nix b/pkgs/development/tools/pip-audit/default.nix index 942d87c32e20..06d536c74335 100644 --- a/pkgs/development/tools/pip-audit/default.nix +++ b/pkgs/development/tools/pip-audit/default.nix @@ -43,6 +43,7 @@ buildPythonApplication rec { cachecontrol cyclonedx-python-lib html5lib + lockfile packaging pip-api progress From caf6e09b7066022ba4f24560b41141787579c203 Mon Sep 17 00:00:00 2001 From: Jan Tojnar Date: Sun, 22 May 2022 21:52:04 +0200 Subject: [PATCH 233/336] dbus: fix paths in catalog Upstream is accidentally shipping a pre-generated catalog file in the tarball, which contains FHS paths. We need to remove it to re-generate it ourselves. Unfortunately, we are also overriding datadir to different values between build and installation for reasons, so we need to override dtddir manually. --- pkgs/development/libraries/dbus/default.nix | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/pkgs/development/libraries/dbus/default.nix b/pkgs/development/libraries/dbus/default.nix index e78529492497..4e41384847d4 100644 --- a/pkgs/development/libraries/dbus/default.nix +++ b/pkgs/development/libraries/dbus/default.nix @@ -37,6 +37,10 @@ stdenv.mkDerivation rec { ] ++ (lib.optional stdenv.isSunOS ./implement-getgrouplist.patch); postPatch = '' + # We need to generate the file ourselves. + # https://gitlab.freedesktop.org/dbus/dbus/-/merge_requests/317 + rm doc/catalog.xml + substituteInPlace bus/Makefile.am \ --replace 'install-data-hook:' 'disabled:' \ --replace '$(mkinstalldirs) $(DESTDIR)$(localstatedir)/run/dbus' ':' @@ -98,6 +102,11 @@ stdenv.mkDerivation rec { doCheck = true; + makeFlags = [ + # Fix paths in XML catalog broken by mismatching build/install datadir. + "dtddir=${placeholder "out"}/share/xml/dbus-1" + ]; + installFlags = [ "sysconfdir=${placeholder "out"}/etc" "datadir=${placeholder "out"}/share" From d172061281406669cd7b820c9f566a8784b3c21d Mon Sep 17 00:00:00 2001 From: Jan Tojnar Date: Sun, 22 May 2022 22:56:09 +0200 Subject: [PATCH 234/336] makeDBusConf: use upstream XML catalog dbus package now ships a catalog file so we no longer need to create a custom one. --- .../libraries/dbus/make-dbus-conf.nix | 26 +++++++++---------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/pkgs/development/libraries/dbus/make-dbus-conf.nix b/pkgs/development/libraries/dbus/make-dbus-conf.nix index ce5c0b3b5772..35b232b2a329 100644 --- a/pkgs/development/libraries/dbus/make-dbus-conf.nix +++ b/pkgs/development/libraries/dbus/make-dbus-conf.nix @@ -1,4 +1,8 @@ -{ runCommand, writeText, libxslt, dbus +{ runCommand +, writeText +, libxslt +, dbus +, findXMLCatalogs , serviceDirectories ? [] , suidHelper ? "/var/setuid-wrappers/dbus-daemon-launch-helper" , apparmor ? "disabled" # one of enabled, disabled, required @@ -14,19 +18,15 @@ runCommand "dbus-1" inherit serviceDirectories suidHelper apparmor; preferLocalBuild = true; allowSubstitutes = false; - XML_CATALOG_FILES = writeText "dbus-catalog.xml" '' - - - - - - ''; - nativeBuildInputs = [ libxslt.bin ]; + nativeBuildInputs = [ + libxslt + findXMLCatalogs + ]; + + buildInputs = [ + dbus + ]; } '' mkdir -p $out From 1a3ff178aaadfb3525242cb90f12bf0802d37752 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Wed, 8 Jun 2022 03:01:09 +0200 Subject: [PATCH 235/336] rust-cbindgen: 0.23.0 -> 0.24.2 https://github.com/eqrion/cbindgen/releases/tag/v0.24.0 https://github.com/eqrion/cbindgen/releases/tag/v0.24.1 https://github.com/eqrion/cbindgen/releases/tag/v0.24.2 --- pkgs/development/tools/rust/cbindgen/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/development/tools/rust/cbindgen/default.nix b/pkgs/development/tools/rust/cbindgen/default.nix index 730cb31fd8e6..555ed3a080d9 100644 --- a/pkgs/development/tools/rust/cbindgen/default.nix +++ b/pkgs/development/tools/rust/cbindgen/default.nix @@ -2,16 +2,16 @@ rustPlatform.buildRustPackage rec { pname = "rust-cbindgen"; - version = "0.23.0"; + version = "0.24.2"; src = fetchFromGitHub { owner = "eqrion"; repo = "cbindgen"; rev = "v${version}"; - hash = "sha256-yux5VpN8UqBscu5TyojlZmu4q2uz8b9Tu++eNlPUj/M="; + hash = "sha256-7nl2VHw4l0hUVLs4fAnmkVaxTFRe3OcUwHXMqf/cH40="; }; - cargoSha256 = "sha256:1838dsmaqdlbd3j040bdy1fvl3z77xmcz73r11qmnqsga4yva6d7"; + cargoSha256 = "sha256:0q99vy5k57phi80viqhkw8cyw7kglap1yf6m8n25n4knf7z9l119"; buildInputs = lib.optional stdenv.isDarwin Security; From 53c8f97a537abb85fb35e88cb4801fa62692813f Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Wed, 8 Jun 2022 11:00:01 +0200 Subject: [PATCH 236/336] autoflake: switch to pytestCheckHook - add pythonImportsCheck - disable failing test --- .../tools/analysis/autoflake/default.nix | 30 ++++++++++++++----- 1 file changed, 22 insertions(+), 8 deletions(-) diff --git a/pkgs/development/tools/analysis/autoflake/default.nix b/pkgs/development/tools/analysis/autoflake/default.nix index 03e01aadb716..adc861588dd5 100644 --- a/pkgs/development/tools/analysis/autoflake/default.nix +++ b/pkgs/development/tools/analysis/autoflake/default.nix @@ -1,22 +1,36 @@ -{ lib, python3Packages }: +{ lib +, python3 +}: -with python3Packages; -buildPythonApplication rec { +python3.pkgs.buildPythonApplication rec { pname = "autoflake"; version = "1.4"; - src = fetchPypi { + src = python3.pkgs.fetchPypi { inherit pname version; - sha256 = "61a353012cff6ab94ca062823d1fb2f692c4acda51c76ff83a8d77915fba51ea"; + hash = "sha256-YaNTASz/arlMoGKCPR+y9pLErNpRx2/4Oo13kV+6Ueo="; }; - propagatedBuildInputs = [ pyflakes ]; + propagatedBuildInputs = with python3.pkgs; [ + pyflakes + ]; - doCheck = true; + checkInputs = with python3.pkgs; [ + pytestCheckHook + ]; + + pythonImportsCheck = [ + "autoflake" + ]; + + disabledTests = [ + # AssertionError: True is not false + "test_is_literal_or_name" + ]; meta = with lib; { + description = "Tool to remove unused imports and unused variables"; homepage = "https://github.com/myint/autoflake"; - description = "A simple program which removes unused imports and unused variables as reported by pyflakes"; license = licenses.mit; maintainers = with maintainers; [ yuriaisaka ]; }; From d0ee55d6d303adb6283a983b8e47707ace722f6d Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Wed, 8 Jun 2022 11:00:52 +0200 Subject: [PATCH 237/336] thrift: disable failing tests --- pkgs/development/libraries/thrift/default.nix | 56 +++++++++++++++---- 1 file changed, 46 insertions(+), 10 deletions(-) diff --git a/pkgs/development/libraries/thrift/default.nix b/pkgs/development/libraries/thrift/default.nix index f85e56578bbe..f54288b5a3fa 100644 --- a/pkgs/development/libraries/thrift/default.nix +++ b/pkgs/development/libraries/thrift/default.nix @@ -1,5 +1,15 @@ -{ lib, stdenv, fetchurl, boost, zlib, libevent, openssl, python3, cmake, pkg-config -, bison, flex +{ lib +, stdenv +, fetchurl +, boost +, zlib +, libevent +, openssl +, python3 +, cmake +, pkg-config +, bison +, flex , static ? stdenv.hostPlatform.isStatic }: @@ -12,15 +22,39 @@ stdenv.mkDerivation rec { sha256 = "sha256-9GC1wcow2JGP+V6j62KRs5Uc9RhVNWYIjz8r6JgfYgk="; }; - # Workaround to make the python wrapper not drop this package: + # Workaround to make the Python wrapper not drop this package: # pythonFull.buildEnv.override { extraLibs = [ thrift ]; } pythonPath = []; - nativeBuildInputs = [ cmake pkg-config bison flex ]; - buildInputs = [ boost zlib libevent openssl ] - ++ lib.optionals (!static) [ (python3.withPackages (ps: [ps.twisted])) ]; + nativeBuildInputs = [ + bison + cmake + flex + pkg-config + ]; - preConfigure = "export PY_PREFIX=$out"; + buildInputs = [ + boost + libevent + openssl + zlib + ] ++ lib.optionals (!static) [ + (python3.withPackages (ps: [ps.twisted])) + ]; + + postPatch = '' + # Python 3.10 related failures: + # SystemError: PY_SSIZE_T_CLEAN macro must be defined for '#' formats + # AttributeError: module 'collections' has no attribute 'Hashable' + substituteInPlace test/py/RunClientServer.py \ + --replace "'FastbinaryTest.py'," "" \ + --replace "'TestEof.py'," "" \ + --replace "'TestFrozen.py'," "" + ''; + + preConfigure = '' + export PY_PREFIX=$out + ''; patches = [ # ToStringTest.cpp is failing from some reason due to locale issue, this @@ -43,12 +77,12 @@ stdenv.mkDerivation rec { disabledTests = [ "PythonTestSSLSocket" ] ++ lib.optionals stdenv.isDarwin [ - # tests that hang up in the darwin sandbox + # Tests that hang up in the Darwin sandbox "SecurityTest" "SecurityFromBufferTest" "python_test" - # tests that fail in the darwin sandbox when trying to use network + # Tests that fail in the Darwin sandbox when trying to use network "UnitTests" "TInterruptTest" "TServerIntegrationTest" @@ -62,6 +96,7 @@ stdenv.mkDerivation rec { ]; doCheck = !static; + checkPhase = '' runHook preCheck @@ -69,6 +104,7 @@ stdenv.mkDerivation rec { runHook postCheck ''; + enableParallelChecking = false; meta = with lib; { @@ -76,6 +112,6 @@ stdenv.mkDerivation rec { homepage = "https://thrift.apache.org/"; license = licenses.asl20; platforms = platforms.linux ++ platforms.darwin; - maintainers = [ maintainers.bjornfor ]; + maintainers = with maintainers; [ bjornfor ]; }; } From 7770164a072968dc6373beb1763082b7c1061796 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Wed, 8 Jun 2022 12:26:02 +0200 Subject: [PATCH 238/336] python310Packages.qutip: 4.6.3 -> 4.7.0 --- .../python-modules/qutip/default.nix | 141 ++++++++++-------- 1 file changed, 81 insertions(+), 60 deletions(-) diff --git a/pkgs/development/python-modules/qutip/default.nix b/pkgs/development/python-modules/qutip/default.nix index 75c186fc8351..e99deef489f3 100644 --- a/pkgs/development/python-modules/qutip/default.nix +++ b/pkgs/development/python-modules/qutip/default.nix @@ -1,70 +1,91 @@ -{ lib, stdenv, fetchFromGitHub, buildPythonPackage, python, packaging, numpy -, cython, scipy, matplotlib, pytestCheckHook, pytest-rerunfailures -, doCheck ? false +{ lib +, stdenv +, buildPythonPackage +, cvxopt +, cvxpy +, cython +, doCheck ? true +, fetchFromGitHub +, matplotlib +, numpy +, packaging +, pytest-rerunfailures +, pytestCheckHook +, python +, pythonOlder +, scipy }: -let - self = buildPythonPackage rec { - pname = "qutip"; - version = "4.6.3"; +buildPythonPackage rec { + pname = "qutip"; + version = "4.7.0"; + format = "setuptools"; - src = fetchFromGitHub { - owner = pname; - repo = pname; - rev = "v${version}"; - sha256 = "sha256-11K7Tl7PE98nM2vGsa+OKIJYu0Wmv8dT700PDt9RRVk="; - }; + disabled = pythonOlder "3.7"; - # QuTiP says it needs specific (old) Numpy versions. We overwrite them here - # as the tests work perfectly fine with up-to-date packages. - postPatch = '' - substituteInPlace setup.cfg --replace "numpy>=1.16.6,<1.20" "numpy>=1.16.6" - ''; + src = fetchFromGitHub { + owner = pname; + repo = pname; + rev = "v${version}"; + hash = "sha256-wGr6uTM6pFL2nvN4zdqPdEO8O3kjrRtKWx8luL1t9Sw="; + }; - # Disabling OpenMP support on Darwin. - setupPyGlobalFlags = lib.optional (!stdenv.isDarwin) "--with-openmp"; + nativeBuildInputs = [ + cython + ]; - propagatedBuildInputs = [ - packaging - numpy - cython - scipy + propagatedBuildInputs = [ + numpy + packaging + scipy + ]; + + checkInputs = [ + pytestCheckHook + pytest-rerunfailures + ] ++ passthru.optional-dependencies.graphics; + + # Disabling OpenMP support on Darwin. + setupPyGlobalFlags = lib.optional (!stdenv.isDarwin) [ + "--with-openmp" + ]; + + # QuTiP tries to access the home directory to create an rc file for us. + # We need to go to another directory to run the tests from there. + # This is due to the Cython-compiled modules not being in the correct location + # of the source tree. + preCheck = '' + export HOME=$(mktemp -d); + export OMP_NUM_THREADS=$NIX_BUILD_CORES + mkdir -p test && cd test + ''; + + # For running tests, see https://qutip.org/docs/latest/installation.html#verifying-the-installation + checkPhase = '' + runHook preCheck + ${python.interpreter} -c "import qutip.testing; qutip.testing.run()" + runHook postCheck + ''; + + pythonImportsCheck = [ + "qutip" + ]; + + passthru.optional-dependencies = { + graphics = [ matplotlib ]; - - checkInputs = [ - pytestCheckHook - pytest-rerunfailures + semidefinite = [ + cvxpy + cvxopt ]; - - # test suite is very cpu intensive - inherit doCheck; - # - QuTiP tries to access the home directory to create an rc file for us. - # This of course fails and therefore, we provide a writable temp dir as HOME. - # - We need to go to another directory to run the tests from there. - # This is due to the Cython-compiled modules not being in the correct location - # of the source tree. - # - For running tests, see: - # https://qutip.org/docs/latest/installation.html#verifying-the-installation - checkPhase = '' - export OMP_NUM_THREADS=$NIX_BUILD_CORES - export HOME=$(mktemp -d) - mkdir -p test && cd test - ${python.interpreter} -c "import qutip.testing; qutip.testing.run()" - ''; - - pythonImportsCheck = [ "qutip" ]; - - passthru.tests = { - all-tests = self.override { doCheck = true; }; - }; - - meta = with lib; { - broken = (stdenv.isLinux && stdenv.isAarch64); - description = "Open-source software for simulating the dynamics of closed and open quantum systems"; - homepage = "https://qutip.org/"; - license = licenses.bsd3; - maintainers = [ maintainers.fabiangd ]; - }; }; -in self + + meta = with lib; { + broken = (stdenv.isLinux && stdenv.isAarch64); + description = "Open-source software for simulating the dynamics of closed and open quantum systems"; + homepage = "https://qutip.org/"; + license = licenses.bsd3; + maintainers = with maintainers; [ fabiangd ]; + }; +} From 66bb79f6409d3f598e5a85b3a36dcdea2ff87881 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Wed, 8 Jun 2022 12:41:13 +0200 Subject: [PATCH 239/336] python39Packages.rokuecp: disable failing tests --- pkgs/development/python-modules/rokuecp/default.nix | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/pkgs/development/python-modules/rokuecp/default.nix b/pkgs/development/python-modules/rokuecp/default.nix index fefec51c2bcd..23c113bc46dd 100644 --- a/pkgs/development/python-modules/rokuecp/default.nix +++ b/pkgs/development/python-modules/rokuecp/default.nix @@ -8,6 +8,7 @@ , fetchFromGitHub , poetry-core , pytest-asyncio +, pytest-freezegun , pytestCheckHook , pythonOlder , xmltodict @@ -43,8 +44,9 @@ buildPythonPackage rec { checkInputs = [ aresponses - pytestCheckHook pytest-asyncio + pytest-freezegun + pytestCheckHook ]; postPatch = '' @@ -59,6 +61,9 @@ buildPythonPackage rec { "test_get_dns_state" # Assertion issue "test_guess_stream_format" + "test_update_tv" + "test_get_apps_single_app" + "test_get_tv_channels_single_channel" ]; pythonImportsCheck = [ From 4f1fa2f3fea2ddc2c7db6c706058d42b1ef5be26 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Wed, 8 Jun 2022 13:10:35 +0200 Subject: [PATCH 240/336] python310Packages.graphite-web: 1.1.8 -> 1.1.10 --- .../python-modules/graphite-web/default.nix | 78 ++++++++++--------- 1 file changed, 40 insertions(+), 38 deletions(-) diff --git a/pkgs/development/python-modules/graphite-web/default.nix b/pkgs/development/python-modules/graphite-web/default.nix index 8cbee4bff708..91def6f2886b 100644 --- a/pkgs/development/python-modules/graphite-web/default.nix +++ b/pkgs/development/python-modules/graphite-web/default.nix @@ -1,71 +1,73 @@ -{ stdenv -, lib +{ lib +, stdenv , buildPythonPackage -, fetchPypi -, django -, python-memcached -, txamqp -, django_tagging -, gunicorn -, pytz -, pyparsing , cairocffi +, django +, django_tagging +, fetchPypi +, gunicorn +, pyparsing +, python-memcached +, pythonOlder +, pytz +, six +, txamqp +, urllib3 , whisper , whitenoise -, urllib3 -, six }: buildPythonPackage rec { pname = "graphite-web"; - version = "1.1.8"; + version = "1.1.10"; + format = "setuptools"; + + disabled = pythonOlder "3.7"; src = fetchPypi { inherit pname version; - sha256 = "54240b0f1e069b53e2ce92d4e534e21b195fb0ebd64b6ad8a49c44284e3eb0b1"; + hash = "sha256-Pxho1QWo2jJZYAMJx999bbELDVMr7Wp7wsssYPkc01o="; }; - patches = [ - ./update-django-tagging.patch + propagatedBuildInputs = [ + cairocffi + django + django_tagging + gunicorn + pyparsing + python-memcached + pytz + six + txamqp + urllib3 + whisper + whitenoise ]; postPatch = '' - # https://github.com/graphite-project/graphite-web/pull/2701 substituteInPlace setup.py \ - --replace "'scandir'" "'scandir; python_version < \"3.5\"'" + --replace "Django>=1.8,<3.1" "Django" \ + --replace "django-tagging==0.4.3" "django-tagging" ''; - propagatedBuildInputs = [ - django - python-memcached - txamqp - django_tagging - gunicorn - pytz - pyparsing - cairocffi - whisper - whitenoise - urllib3 - six - ]; - # Carbon-s default installation is /opt/graphite. This env variable ensures - # carbon is installed as a regular python module. - GRAPHITE_NO_PREFIX="True"; + # carbon is installed as a regular Python module. + GRAPHITE_NO_PREFIX = "True"; preConfigure = '' substituteInPlace webapp/graphite/settings.py \ --replace "join(WEBAPP_DIR, 'content')" "join('$out', 'webapp', 'content')" ''; - pythonImportsCheck = [ "graphite" ]; + pythonImportsCheck = [ + "graphite" + ]; meta = with lib; { broken = (stdenv.isLinux && stdenv.isAarch64) || stdenv.isDarwin; - homepage = "http://graphiteapp.org/"; description = "Enterprise scalable realtime graphing"; - maintainers = with maintainers; [ offline basvandijk ]; + homepage = "http://graphiteapp.org/"; license = licenses.asl20; + maintainers = with maintainers; [ offline basvandijk ]; }; } From 3b754ded2098664c5307e708b97c983dd52c86b3 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Wed, 8 Jun 2022 13:11:43 +0200 Subject: [PATCH 241/336] python310Packages.graphite-web: remove patch --- .../graphite-web/update-django-tagging.patch | 13 ------------- 1 file changed, 13 deletions(-) delete mode 100644 pkgs/development/python-modules/graphite-web/update-django-tagging.patch diff --git a/pkgs/development/python-modules/graphite-web/update-django-tagging.patch b/pkgs/development/python-modules/graphite-web/update-django-tagging.patch deleted file mode 100644 index 9774f7e70a7f..000000000000 --- a/pkgs/development/python-modules/graphite-web/update-django-tagging.patch +++ /dev/null @@ -1,13 +0,0 @@ -diff --git a/setup.py b/setup.py -index a1a21f1..f0d1051 100644 ---- a/setup.py -+++ b/setup.py -@@ -117,7 +117,7 @@ try: - ['templates/*', 'local_settings.py.example']}, - scripts=glob('bin/*'), - data_files=list(webapp_content.items()) + storage_dirs + conf_files + examples, -- install_requires=['Django>=1.8,<3.1', 'django-tagging==0.4.3', 'pytz', -+ install_requires=['Django>=1.8,<3.1', 'django-tagging==0.5.0', 'pytz', - 'pyparsing', 'cairocffi', 'urllib3', 'scandir', 'six'], - classifiers=[ - 'Intended Audience :: Developers', From 7e2f6fa137c0f4ecb53922fd54f666a91c9c2e09 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Wed, 8 Jun 2022 13:17:54 +0200 Subject: [PATCH 242/336] calibre-web: add missing input --- pkgs/servers/calibre-web/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/servers/calibre-web/default.nix b/pkgs/servers/calibre-web/default.nix index 20e0e8f1383e..9e7a9cae1730 100644 --- a/pkgs/servers/calibre-web/default.nix +++ b/pkgs/servers/calibre-web/default.nix @@ -2,7 +2,6 @@ , fetchFromGitHub , nixosTests , python3 -, python3Packages }: python3.pkgs.buildPythonApplication rec { @@ -16,9 +15,10 @@ python3.pkgs.buildPythonApplication rec { sha256 = "sha256-KjmpFetNhNM5tL34e/Pn1i3hc86JZglubSMsHZWu198="; }; - propagatedBuildInputs = with python3Packages; [ + propagatedBuildInputs = with python3.pkgs; [ advocate backports_abc + chardet flask-babel flask_login flask_principal From 98ff4139d1cf6a235e92a041b48abedf6b623dee Mon Sep 17 00:00:00 2001 From: Tejas Agarwal Date: Wed, 8 Jun 2022 17:44:12 +0530 Subject: [PATCH 243/336] maintainers: add tejasag --- maintainers/maintainer-list.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix index b4c4029925f7..1183a266957a 100644 --- a/maintainers/maintainer-list.nix +++ b/maintainers/maintainer-list.nix @@ -12647,6 +12647,12 @@ githubId = 139251; name = "Tom Hunger"; }; + tejasag = { + name = "Tejas Agarwal"; + email = "tejasagarwalbly@gmail.com"; + github = "tejasag"; + githubId = 67542663; + }; telotortium = { email = "rirelan@gmail.com"; github = "telotortium"; From 74ffc379504d21d031e559d37bb1c43d399ea6e1 Mon Sep 17 00:00:00 2001 From: Tejas Agarwal Date: Wed, 8 Jun 2022 17:58:32 +0530 Subject: [PATCH 244/336] oak: init at 0.2 --- pkgs/development/interpreters/oak/default.nix | 25 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 27 insertions(+) create mode 100644 pkgs/development/interpreters/oak/default.nix diff --git a/pkgs/development/interpreters/oak/default.nix b/pkgs/development/interpreters/oak/default.nix new file mode 100644 index 000000000000..29b476e7c7e3 --- /dev/null +++ b/pkgs/development/interpreters/oak/default.nix @@ -0,0 +1,25 @@ +{ lib +, buildGoModule +, fetchFromGitHub +}: + +buildGoModule rec { + pname = "oak"; + version = "0.2"; + + src = fetchFromGitHub { + owner = "thesephist"; + repo = pname; + rev = "v${version}"; + sha256 = "sha256-00UanINtrFyjQWiAw1ucB4eEODMr9+wT+99Zy2Oc1j4="; + }; + + vendorSha256 = "sha256-iQtb3zNa57nB6x4InVPw7FCmW7XPw5yuz0OcfASXPD8="; + + meta = with lib; { + description = "Expressive, simple, dynamic programming language"; + homepage = "https://oaklang.org/"; + license = licenses.mit; + maintainers = with maintainers; [ tejasag ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index fbe82143c24e..30ef919a8bbe 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -14369,6 +14369,8 @@ with pkgs; ngn-k = callPackage ../development/interpreters/ngn-k { }; + oak = callPackage ../development/interpreters/oak { }; + obb = callPackage ../development/interpreters/clojure/obb.nix { }; octave = callPackage ../development/interpreters/octave { From 9b2005751229d7698a95211ce55bf72eecfa2df3 Mon Sep 17 00:00:00 2001 From: Julien Pivotto Date: Wed, 8 Jun 2022 15:24:33 +0200 Subject: [PATCH 245/336] prometheus: 2.35.0 -> 2.36.0 Signed-off-by: Julien Pivotto --- pkgs/servers/monitoring/prometheus/default.nix | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/pkgs/servers/monitoring/prometheus/default.nix b/pkgs/servers/monitoring/prometheus/default.nix index 4b79103d7d50..84415e52ed89 100644 --- a/pkgs/servers/monitoring/prometheus/default.nix +++ b/pkgs/servers/monitoring/prometheus/default.nix @@ -13,6 +13,7 @@ , enableEureka ? true , enableGCE ? true , enableHetzner ? true +, enableIONOS ? true , enableKubernetes ? true , enableLinode ? true , enableMarathon ? true @@ -22,15 +23,16 @@ , enableScaleway ? true , enableTriton ? true , enableUyuni ? true +, enableVultr ? true , enableXDS ? true , enableZookeeper ? true }: let - version = "2.35.0"; + version = "2.36.0"; webUiStatic = fetchurl { url = "https://github.com/prometheus/prometheus/releases/download/v${version}/prometheus-web-ui-${version}.tar.gz"; - sha256 = "sha256-66zWOjFTYwmspiKeklt3NAAT1uJJrZqeyQvWWsCN9fQ="; + sha256 = "sha256-C+Np2mqAYQ1RUqYmql0eudPD/SpWmxdMQLe85SenIA4="; }; in buildGoModule rec { @@ -41,10 +43,10 @@ buildGoModule rec { rev = "v${version}"; owner = "prometheus"; repo = "prometheus"; - sha256 = "sha256-h0uBs3xMKpRH3A1VG5xrhjXVAT7GL5L3UZWb3HJ2Fz4="; + sha256 = "sha256-FJXNCGIVj1OVWXwbXY6k65lXJCe1MqiqK7tw8nGWrEg="; }; - vendorSha256 = "sha256-0I6hmjhdfB41rWOQ9FM9CMq5w5437ka/jLuFXcBQBlM="; + vendorSha256 = "sha256-kmAQGRFmGRJ3LuGLMcSc0bJuwMsKhYVUIqQ9vDSH0Cc="; excludedPackages = [ "documentation/prometheus-mixin" ]; @@ -70,6 +72,8 @@ buildGoModule rec { "echo - github.com/prometheus/prometheus/discovery/gce"} ${lib.optionalString (enableHetzner) "echo - github.com/prometheus/prometheus/discovery/hetzner"} + ${lib.optionalString (enableIONOS) + "echo - github.com/prometheus/prometheus/discovery/ionos"} ${lib.optionalString (enableKubernetes) "echo - github.com/prometheus/prometheus/discovery/kubernetes"} ${lib.optionalString (enableLinode) @@ -88,6 +92,8 @@ buildGoModule rec { "echo - github.com/prometheus/prometheus/discovery/triton"} ${lib.optionalString (enableUyuni) "echo - github.com/prometheus/prometheus/discovery/uyuni"} + ${lib.optionalString (enableVultr) + "echo - github.com/prometheus/prometheus/discovery/vultr"} ${lib.optionalString (enableXDS) "echo - github.com/prometheus/prometheus/discovery/xds"} ${lib.optionalString (enableZookeeper) From 48275dbd5617b55d98f6def9792b3ee95bcf6664 Mon Sep 17 00:00:00 2001 From: Dmitry Shachnev Date: Wed, 8 Jun 2022 17:31:27 +0300 Subject: [PATCH 246/336] python3Packages.dropbox: Re-add setuptools to propagatedBuildInputs It was removed in #170289, however dropbox/session.py still imports pkg_resources, which is part of setuptools. --- pkgs/development/python-modules/dropbox/default.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkgs/development/python-modules/dropbox/default.nix b/pkgs/development/python-modules/dropbox/default.nix index e321c110a6bd..ccc531380ff0 100644 --- a/pkgs/development/python-modules/dropbox/default.nix +++ b/pkgs/development/python-modules/dropbox/default.nix @@ -3,6 +3,7 @@ , pythonOlder , fetchFromGitHub , requests +, setuptools , six , stone , mock @@ -28,6 +29,7 @@ buildPythonPackage rec { propagatedBuildInputs = [ requests + setuptools six stone ]; From 299b9a1b59d43ff157cd2e9579a6fc588feff1a9 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Wed, 8 Jun 2022 22:03:27 +0200 Subject: [PATCH 247/336] buildMozillaMach: add patch for rust-cbindgen 0.24 compat Fixes a regression caused by an update to rust-cbindgen 0.24.x, where the definition for ROOT_CLIP_CHAIN is now autogenerated and causes the build to abort with a redefinition error. https://bugzilla.mozilla.org/show_bug.cgi?id=1773259 Patch by Ollivier Tilloy from Canonical https://github.com/canonical/firefox-snap/commit/5622734942524846fb0eb7108918c8cd8557fde3 --- pkgs/applications/networking/browsers/firefox/common.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pkgs/applications/networking/browsers/firefox/common.nix b/pkgs/applications/networking/browsers/firefox/common.nix index e82a87c59ece..eae5353aeb12 100644 --- a/pkgs/applications/networking/browsers/firefox/common.nix +++ b/pkgs/applications/networking/browsers/firefox/common.nix @@ -21,6 +21,7 @@ { lib , pkgs , stdenv +, fetchpatch # build time , autoconf @@ -219,6 +220,12 @@ buildStdenv.mkDerivation ({ ]; patches = [ + (fetchpatch { + # https://bugzilla.mozilla.org/show_bug.cgi?id=1773259 + name = "rust-cbindgen-0.24.2-compat.patch"; + url = "https://raw.githubusercontent.com/canonical/firefox-snap/5622734942524846fb0eb7108918c8cd8557fde3/patches/fix-ftbfs-newer-cbindgen.patch"; + hash = "sha256-+wNZhkDB3HSknPRD4N6cQXY7zMT/DzNXx29jQH0Gb1o="; + }) ] ++ lib.optional (lib.versionAtLeast version "86") ./env_var_for_system_dir-ff86.patch ++ lib.optional (lib.versionAtLeast version "90" && lib.versionOlder version "95") ./no-buildconfig-ffx90.patch From 47016de7effddab56c374598de8de7c704543c84 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Wed, 1 Jun 2022 23:39:04 +0200 Subject: [PATCH 248/336] go_1_17: 1.17.10 -> 1.17.11 --- pkgs/development/compilers/go/1.17.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/compilers/go/1.17.nix b/pkgs/development/compilers/go/1.17.nix index a2c0d3d16b91..94d3472ca69e 100644 --- a/pkgs/development/compilers/go/1.17.nix +++ b/pkgs/development/compilers/go/1.17.nix @@ -60,11 +60,11 @@ in stdenv.mkDerivation rec { pname = "go"; - version = "1.17.10"; + version = "1.17.11"; src = fetchurl { url = "https://dl.google.com/go/go${version}.src.tar.gz"; - sha256 = "sha256-KZ5VrzDxVpGwFdjc+OyuckEkElaeWy7OIDYXU6RW8vk="; + sha256 = "sha256-rCZJpllExqWr5VBUAA7uPXcZaIDaNqNVX2LgZUDo61Q="; }; strictDeps = true; From 6e7fb72f0f91273f308285347128915025eb58c1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Wed, 1 Jun 2022 23:39:23 +0200 Subject: [PATCH 249/336] go_1_18: 1.18.2 -> 1.18.3 --- pkgs/development/compilers/go/1.18.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/compilers/go/1.18.nix b/pkgs/development/compilers/go/1.18.nix index 6f6e690e3545..f5659dd92b77 100644 --- a/pkgs/development/compilers/go/1.18.nix +++ b/pkgs/development/compilers/go/1.18.nix @@ -60,11 +60,11 @@ in stdenv.mkDerivation rec { pname = "go"; - version = "1.18.2"; + version = "1.18.3"; src = fetchurl { url = "https://go.dev/dl/go${version}.src.tar.gz"; - sha256 = "sha256-LETQPqLDQJITerkZumAvLCYaA40I60aFKKPzoo5WZ+I="; + sha256 = "sha256-ABI4bdy7XzNQ5AfGeZI4EdvSg/zcQhckkxYUqELsvC0="; }; strictDeps = true; From 1c76a270d2d0331aaed02a308acb607e81e5c414 Mon Sep 17 00:00:00 2001 From: ajs124 Date: Tue, 7 Jun 2022 19:41:47 +0200 Subject: [PATCH 250/336] nss: 3.68.4 -> 3.79 This ESR branch has reached EOL: https://groups.google.com/a/mozilla.org/g/dev-tech-crypto/c/-z6f6dOWx9A/m/Bpl8VWd_FwAJ --- pkgs/development/libraries/nss/esr.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/libraries/nss/esr.nix b/pkgs/development/libraries/nss/esr.nix index a789f0306d32..ad129f97a36a 100644 --- a/pkgs/development/libraries/nss/esr.nix +++ b/pkgs/development/libraries/nss/esr.nix @@ -1,4 +1,4 @@ import ./generic.nix { - version = "3.68.4"; - hash = "sha256-K5/T9aG0nzs7KdEgAmdPcEgRViV1b7R3KELsfDm+Fgs="; + version = "3.79"; + hash = "sha256-698tapZhO2/nCtV56fmD4OlOARAXHPspmdtjPTOUpRQ="; } From ba8a998c1841a7b2b81e255c5864f4fc26a9ba0e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Wed, 1 Jun 2022 05:45:18 +0000 Subject: [PATCH 251/336] boost: 1.77.0 -> 1.79.0 --- pkgs/top-level/all-packages.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index e0abac097ba7..e4674e591605 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -16728,7 +16728,7 @@ with pkgs; boost15x = boost159; boost16x = boost169; - boost17x = boost177; + boost17x = boost179; boost = boost17x; boost_process = callPackage ../development/libraries/boost-process { }; From efb6d291612c08e7e9dd1934beff0d5bbc95617f Mon Sep 17 00:00:00 2001 From: Jan Tojnar Date: Thu, 9 Jun 2022 13:01:31 +0000 Subject: [PATCH 252/336] =?UTF-8?q?tracker:=203.3.0=20=E2=86=92=203.3.1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit https://gitlab.gnome.org/GNOME/tracker/-/compare/3.3.0...3.3.1 Also remove patching some files that were removed in 2.99.1. --- pkgs/development/libraries/tracker/default.nix | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/pkgs/development/libraries/tracker/default.nix b/pkgs/development/libraries/tracker/default.nix index 5cb3dc73daa8..8489655dcb63 100644 --- a/pkgs/development/libraries/tracker/default.nix +++ b/pkgs/development/libraries/tracker/default.nix @@ -29,13 +29,13 @@ stdenv.mkDerivation rec { pname = "tracker"; - version = "3.3.0"; + version = "3.3.1"; outputs = [ "out" "dev" "devdoc" ]; src = fetchurl { url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz"; - sha256 = "Bwb5b+f5XfQqzsgSwd57RZOg1kgyHKg1BqnXHiJBe9o="; + sha256 = "Wtb1vJd4Hr9V7NaUfNSuf/QZJRZYDRC9g4Dx3UcZbtI="; }; nativeBuildInputs = [ @@ -79,11 +79,7 @@ stdenv.mkDerivation rec { doCheck = true; postPatch = '' - patchShebangs utils/g-ir-merge/g-ir-merge patchShebangs utils/data-generators/cc/generate - patchShebangs tests/functional-tests/test-runner.sh.in - patchShebangs tests/functional-tests/*.py - patchShebangs examples/python/endpoint.py ''; preCheck = '' From 938f2ce1017ff1fdb25abec3f22a0821618af8cb Mon Sep 17 00:00:00 2001 From: Sergei Trofimovich Date: Thu, 9 Jun 2022 18:49:11 +0100 Subject: [PATCH 253/336] jansson: enable shared library installation Without shared libraries metworkmanager fails to build: $ nix build -f. networkmanager -L ... networkmanager> meson.build:269:2: ERROR: Assert failed: Unable to determine Jansson SONAME --- pkgs/development/libraries/jansson/default.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkgs/development/libraries/jansson/default.nix b/pkgs/development/libraries/jansson/default.nix index 44d48329fad0..aafbe839bd4c 100644 --- a/pkgs/development/libraries/jansson/default.nix +++ b/pkgs/development/libraries/jansson/default.nix @@ -13,6 +13,10 @@ stdenv.mkDerivation rec { nativeBuildInputs = [ cmake ]; + # networkmanager relies on libjansson.so: + # https://github.com/NixOS/nixpkgs/pull/176302#issuecomment-1150239453 + cmakeFlags = [ "-DJANSSON_BUILD_SHARED_LIBS=ON" ]; + meta = with lib; { homepage = "https://github.com/akheron/jansson"; description = "C library for encoding, decoding and manipulating JSON data"; From d7f012f33ce5ee308f75f3f53a1e8189c6dc15d8 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Wed, 25 May 2022 09:02:59 +0000 Subject: [PATCH 254/336] mobile-broadband-provider-info: 20220315 -> 20220511 --- pkgs/data/misc/mobile-broadband-provider-info/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/data/misc/mobile-broadband-provider-info/default.nix b/pkgs/data/misc/mobile-broadband-provider-info/default.nix index 234016175d26..8f5ce0d02025 100644 --- a/pkgs/data/misc/mobile-broadband-provider-info/default.nix +++ b/pkgs/data/misc/mobile-broadband-provider-info/default.nix @@ -2,11 +2,11 @@ stdenv.mkDerivation rec { pname = "mobile-broadband-provider-info"; - version = "20220315"; + version = "20220511"; src = fetchurl { url = "mirror://gnome/sources/${pname}/${version}/${pname}-${version}.tar.xz"; - sha256 = "sha256-H82sctF52xQnl4Nm9wG+HDx1Nf1aZYvFzIKCR8b2RcY="; + sha256 = "sha256-dfk+iGZh8DWYMsPigjyvqG505AgEJbjOCpw7DQqyp3Q="; }; nativeBuildInputs = [ From bcf29733e9367d2c3a1da2d6bfdb9afa553d23ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Tue, 7 Jun 2022 22:54:46 +0200 Subject: [PATCH 255/336] hwdata: 0.347 -> 0.360 --- pkgs/os-specific/linux/hwdata/default.nix | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/pkgs/os-specific/linux/hwdata/default.nix b/pkgs/os-specific/linux/hwdata/default.nix index f700bf035de8..fe789d51dbb5 100644 --- a/pkgs/os-specific/linux/hwdata/default.nix +++ b/pkgs/os-specific/linux/hwdata/default.nix @@ -2,24 +2,25 @@ stdenv.mkDerivation rec { pname = "hwdata"; - version = "0.347"; + version = "0.360"; src = fetchFromGitHub { owner = "vcrhonek"; repo = "hwdata"; rev = "v${version}"; - sha256 = "19kmz25zq6qqs67ppqhws4mh3qf6zrp55cpyxyw36q95yjdcqp21"; + sha256 = "sha256-dF1Yeb3xH4keQzcydZ3h3kyuSZ1knW/2YAJ8xvFSoMo="; }; - preConfigure = "patchShebangs ./configure"; + postPatch = '' + patchShebangs ./configure + ''; configureFlags = [ "--datadir=${placeholder "out"}/share" ]; doCheck = false; # this does build machine-specific checks (e.g. enumerates PCI bus) outputHashMode = "recursive"; - outputHashAlgo = "sha256"; - outputHash = "0haaczd6pi9q2vdlvbwn7100sb87zsy64z94xhpbmlari4vzjmz0"; + outputHash = "sha256-gkgnHy1XwP87qpQiAm31AIAkxgGm5JYxMBr60kvd+gE="; meta = { homepage = "https://github.com/vcrhonek/hwdata"; From 8335c46632910d9b9dc13c0701b2755311b62ea9 Mon Sep 17 00:00:00 2001 From: Raito Bezarius Date: Thu, 9 Jun 2022 18:01:20 +0200 Subject: [PATCH 256/336] zlib: backport upstream fix on CRC validation MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Starting zlib 1.2.12, CRC validation has became stricter. This broke Keycloak ≥ 17 in certain situations, for details, see: - https://github.com/keycloak/keycloak/issues/11316 ; - https://github.com/NixOS/nixpkgs/issues/170539 This patch makes the CRC validation comprehensive with respect to older or already existing checksums out there. --- ...validation-for-wrong-implementations.patch | 51 +++++++++++++++++++ pkgs/development/libraries/zlib/default.nix | 6 +++ 2 files changed, 57 insertions(+) create mode 100644 pkgs/development/libraries/zlib/comprehensive-crc-validation-for-wrong-implementations.patch diff --git a/pkgs/development/libraries/zlib/comprehensive-crc-validation-for-wrong-implementations.patch b/pkgs/development/libraries/zlib/comprehensive-crc-validation-for-wrong-implementations.patch new file mode 100644 index 000000000000..85a6a7e3ab41 --- /dev/null +++ b/pkgs/development/libraries/zlib/comprehensive-crc-validation-for-wrong-implementations.patch @@ -0,0 +1,51 @@ +From ec3df00224d4b396e2ac6586ab5d25f673caa4c2 Mon Sep 17 00:00:00 2001 +From: Mark Adler +Date: Wed, 30 Mar 2022 11:14:53 -0700 +Subject: [PATCH] Correct incorrect inputs provided to the CRC functions. + +The previous releases of zlib were not sensitive to incorrect CRC +inputs with bits set above the low 32. This commit restores that +behavior, so that applications with such bugs will continue to +operate as before. +--- + crc32.c | 8 ++++---- + 1 file changed, 4 insertions(+), 4 deletions(-) + +diff --git a/crc32.c b/crc32.c +index a1bdce5c2..451887bc7 100644 +--- a/crc32.c ++++ b/crc32.c +@@ -630,7 +630,7 @@ unsigned long ZEXPORT crc32_z(crc, buf, len) + #endif /* DYNAMIC_CRC_TABLE */ + + /* Pre-condition the CRC */ +- crc ^= 0xffffffff; ++ crc = (~crc) & 0xffffffff; + + /* Compute the CRC up to a word boundary. */ + while (len && ((z_size_t)buf & 7) != 0) { +@@ -749,7 +749,7 @@ unsigned long ZEXPORT crc32_z(crc, buf, len) + #endif /* DYNAMIC_CRC_TABLE */ + + /* Pre-condition the CRC */ +- crc ^= 0xffffffff; ++ crc = (~crc) & 0xffffffff; + + #ifdef W + +@@ -1077,7 +1077,7 @@ uLong ZEXPORT crc32_combine64(crc1, crc2, len2) + #ifdef DYNAMIC_CRC_TABLE + once(&made, make_crc_table); + #endif /* DYNAMIC_CRC_TABLE */ +- return multmodp(x2nmodp(len2, 3), crc1) ^ crc2; ++ return multmodp(x2nmodp(len2, 3), crc1) ^ (crc2 & 0xffffffff); + } + + /* ========================================================================= */ +@@ -1112,5 +1112,5 @@ uLong crc32_combine_op(crc1, crc2, op) + uLong crc2; + uLong op; + { +- return multmodp(op, crc1) ^ crc2; ++ return multmodp(op, crc1) ^ (crc2 & 0xffffffff); + } diff --git a/pkgs/development/libraries/zlib/default.nix b/pkgs/development/libraries/zlib/default.nix index 6681be3c34c0..1527be44f7a7 100644 --- a/pkgs/development/libraries/zlib/default.nix +++ b/pkgs/development/libraries/zlib/default.nix @@ -42,6 +42,12 @@ stdenv.mkDerivation (rec { patches = [ ./fix-configure-issue-cross.patch + # Starting zlib 1.2.12, zlib is stricter to incorrect CRC inputs + # with bits set above the low 32. + # see https://github.com/madler/zlib/issues/618 + # TODO: remove the patch if upstream releases https://github.com/madler/zlib/commit/ec3df00224d4b396e2ac6586ab5d25f673caa4c2 + # see https://github.com/NixOS/nixpkgs/issues/170539 for history. + ./comprehensive-crc-validation-for-wrong-implementations.patch ]; strictDeps = true; From 2300d8312dc1b9d9bb2d7ad2f8007b3ca69f71c1 Mon Sep 17 00:00:00 2001 From: yuu Date: Fri, 10 Jun 2022 08:17:12 -0300 Subject: [PATCH 257/336] .gitignore: prepend slash to result and source MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit so that it matches only in the repository root. Co-authored-by: Sandro Jäckel Co-authored-by: Milan Hauth --- .gitignore | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 1411ef7e1c7c..3bd5fe66df49 100644 --- a/.gitignore +++ b/.gitignore @@ -5,13 +5,13 @@ .idea/ .vscode/ outputs/ -result result-* -source/ /doc/NEWS.html /doc/NEWS.txt /doc/manual.html /doc/manual.pdf +/result +/source/ .version-suffix .DS_Store From b9495cc30f5cbb32cf2b6243ce775361dc31bf52 Mon Sep 17 00:00:00 2001 From: Alyssa Ross Date: Fri, 10 Jun 2022 14:20:37 +0000 Subject: [PATCH 258/336] zimlib: 6.3.2 -> 7.2.2 --- pkgs/development/libraries/zimlib/default.nix | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/pkgs/development/libraries/zimlib/default.nix b/pkgs/development/libraries/zimlib/default.nix index 9f8e357d3ab0..56438f8e1735 100644 --- a/pkgs/development/libraries/zimlib/default.nix +++ b/pkgs/development/libraries/zimlib/default.nix @@ -1,4 +1,4 @@ -{ lib, stdenv, fetchFromGitHub +{ lib, stdenv, fetchFromGitHub, fetchzip , meson, ninja, pkg-config , python3 , icu @@ -11,13 +11,19 @@ stdenv.mkDerivation rec { pname = "zimlib"; - version = "6.3.2"; + version = "7.2.2"; src = fetchFromGitHub { owner = "openzim"; repo = "libzim"; rev = version; - sha256 = "sha256-xlYu74akK9WFy86hcQe7zp11TImwl8llgDIZBRgmbAI="; + sha256 = "sha256-AEhhjinnnMA4NbYL7NVHYeRZX/zfNiidbY/VeFjZuQs="; + }; + + testData = fetchzip rec { + passthru.version = "0.4"; + url = "https://github.com/openzim/zim-testing-suite/releases/download/v${passthru.version}/zim-testing-suite-${passthru.version}.tar.gz"; + sha256 = "sha256-2eJqmvs/GrvOD/pq8dTubaiO9ZpW2WqTNQByv354Z0w="; }; nativeBuildInputs = [ @@ -39,6 +45,8 @@ stdenv.mkDerivation rec { patchShebangs scripts ''; + mesonFlags = [ "-Dtest_data_dir=${testData}" ]; + checkInputs = [ gtest ]; From 8320da218e04e672a64873b949bf2578373da308 Mon Sep 17 00:00:00 2001 From: Alyssa Ross Date: Fri, 10 Jun 2022 14:21:10 +0000 Subject: [PATCH 259/336] zimwriterfs 1.0 -> zim-tools 3.1.1 This package has absorbed zimwriterfs and some other programs. I've kept the maintainer the same since if they were interested in zimwriterfs they're presumably also interested in the new package. --- pkgs/tools/text/zim-tools/default.nix | 31 ++++++++++++++++++ pkgs/tools/text/zimwriterfs/default.nix | 43 ------------------------- pkgs/top-level/aliases.nix | 1 + pkgs/top-level/all-packages.nix | 2 +- 4 files changed, 33 insertions(+), 44 deletions(-) create mode 100644 pkgs/tools/text/zim-tools/default.nix delete mode 100644 pkgs/tools/text/zimwriterfs/default.nix diff --git a/pkgs/tools/text/zim-tools/default.nix b/pkgs/tools/text/zim-tools/default.nix new file mode 100644 index 000000000000..319eb47be271 --- /dev/null +++ b/pkgs/tools/text/zim-tools/default.nix @@ -0,0 +1,31 @@ +{ lib, stdenv, fetchFromGitHub +, meson, ninja, pkg-config +, docopt_cpp, file, gumbo, mustache-hpp, zimlib, zlib +, gtest +}: + +stdenv.mkDerivation rec { + pname = "zim-tools"; + version = "3.1.1"; + + src = fetchFromGitHub { + owner = "openzim"; + repo = "zim-tools"; + rev = version; + sha256 = "sha256-xZae1o4L9AdGDqBnFDZniWNM/dLsYRcS0OLWw9+Wecs="; + }; + + nativeBuildInputs = [ meson ninja pkg-config ]; + buildInputs = [ docopt_cpp file gumbo mustache-hpp zimlib zlib ]; + + checkInputs = [ gtest ]; + doCheck = true; + + meta = { + description = "Various ZIM command line tools"; + homepage = "https://github.com/openzim/zim-tools"; + maintainers = with lib.maintainers; [ robbinch ]; + license = lib.licenses.gpl3Plus; + platforms = lib.platforms.all; + }; +} diff --git a/pkgs/tools/text/zimwriterfs/default.nix b/pkgs/tools/text/zimwriterfs/default.nix deleted file mode 100644 index 9a7e495df2b8..000000000000 --- a/pkgs/tools/text/zimwriterfs/default.nix +++ /dev/null @@ -1,43 +0,0 @@ -{ lib, stdenv -, fetchFromGitHub - -, autoconf -, automake -, libtool -, pkg-config - -, file -, icu -, gumbo -, xz -, xapian -, zimlib -, zlib -}: - -stdenv.mkDerivation rec { - pname = "zimwriterfs"; - version = "1.0"; - - src = fetchFromGitHub { - owner = "wikimedia"; - repo = "openzim"; - rev = "${pname}-${version}"; - sha256 = "1vkrrq929a8s3m5rri1lg0l2vd0mc9n2fsb2z1g88k4n4j2l6f19"; - }; - - nativeBuildInputs = [ automake autoconf libtool pkg-config ]; - buildInputs = [ file icu gumbo xz zimlib zlib xapian ]; - setSourceRoot = '' - sourceRoot=$(echo */zimwriterfs) - ''; - preConfigure = "./autogen.sh"; - - meta = { - description = "A console tool to create ZIM files"; - homepage = "http://git.wikimedia.org/log/openzim"; - maintainers = with lib.maintainers; [ robbinch ]; - license = lib.licenses.gpl3; - platforms = with lib.platforms; [ linux ]; - }; -} diff --git a/pkgs/top-level/aliases.nix b/pkgs/top-level/aliases.nix index 8e3fa8e0f269..0dec5d31a220 100644 --- a/pkgs/top-level/aliases.nix +++ b/pkgs/top-level/aliases.nix @@ -1510,6 +1510,7 @@ mapAliases ({ zabbix30 = throw "Zabbix 3.0.x is end of life, see https://www.zabbix.com/documentation/5.0/manual/installation/upgrade/sources for a direct upgrade path to 5.0.x"; # Added 2021-04-07 zdfmediathk = throw "'zdfmediathk' has been renamed to/replaced by 'mediathekview'"; # Converted to throw 2022-02-22 zimreader = throw "zimreader has been removed from nixpkgs as it has been replaced by kiwix-serve and stopped working with modern zimlib versions"; # Added 2021-03-28 + zimwriterfs = throw "zimwriterfs is now part of zim-tools"; # Added 2022-06-10. # TODO(ekleog): add ‘wasm’ alias to ‘ocamlPackages.wasm’ after 19.03 # branch-off diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 1ab652f0b961..f610659c5d47 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -11992,7 +11992,7 @@ with pkgs; zinnia = callPackage ../tools/inputmethods/zinnia { }; tegaki-zinnia-japanese = callPackage ../tools/inputmethods/tegaki-zinnia-japanese { }; - zimwriterfs = callPackage ../tools/text/zimwriterfs { }; + zim-tools = callPackage ../tools/text/zim-tools { }; zld = callPackage ../development/tools/zld { }; From 207e649ab90fce65db78e89eab956c8567348cc5 Mon Sep 17 00:00:00 2001 From: Alyssa Ross Date: Fri, 10 Jun 2022 14:21:47 +0000 Subject: [PATCH 260/336] kiwix: 2.0.5 -> 2.2.1 --- pkgs/applications/misc/kiwix/default.nix | 4 ++-- pkgs/applications/misc/kiwix/lib.nix | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/pkgs/applications/misc/kiwix/default.nix b/pkgs/applications/misc/kiwix/default.nix index f3406d4159b8..e64feb416555 100644 --- a/pkgs/applications/misc/kiwix/default.nix +++ b/pkgs/applications/misc/kiwix/default.nix @@ -12,13 +12,13 @@ mkDerivation rec { pname = "kiwix"; - version = "2.0.5"; + version = "2.2.1"; src = fetchFromGitHub { owner = pname; repo = "${pname}-desktop"; rev = version; - sha256 = "12v43bcg4g8fcp02y2srsfdvcb7dpl4pxb9z7a235006s0kfv8yn"; + sha256 = "sha256-ks2d/guMp5pb2tiwGxNp3htQVm65MsYvZ/6tNjGXNr8="; }; nativeBuildInputs = [ diff --git a/pkgs/applications/misc/kiwix/lib.nix b/pkgs/applications/misc/kiwix/lib.nix index dcde5c390a47..9d365cd328c8 100644 --- a/pkgs/applications/misc/kiwix/lib.nix +++ b/pkgs/applications/misc/kiwix/lib.nix @@ -14,13 +14,13 @@ stdenv.mkDerivation rec { pname = "kiwix-lib"; - version = "9.4.1"; + version = "10.1.1"; src = fetchFromGitHub { owner = "kiwix"; repo = pname; rev = version; - sha256 = "034nk6l623v78clrs2d0k1vg69sbzrd8c0q79qiqmlkinck1nkxw"; + sha256 = "sha256-ECvdraN1J5XJQLeZDngxO5I7frwZ8+W8tFpbB7o8UeM="; }; nativeBuildInputs = [ From edfc49fbcf9e0884754f8a2cc406ba731e29baff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Fri, 10 Jun 2022 18:23:16 +0000 Subject: [PATCH 261/336] python310Packages.ledger: use default boost The default version of Boost is now 1.79 and works with Python 3.10. --- pkgs/top-level/python-packages.nix | 1 - 1 file changed, 1 deletion(-) diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index b439183d9201..b95a3203264d 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -4813,7 +4813,6 @@ in { ledger = (toPythonModule (pkgs.ledger.override { usePython = true; - boost = pkgs.boost179; # Current default boost (1.77) doesn’t work with Python 3.10. python3 = python; })).py; From c8f918e0ef6b4fba6f1d311ae96349c7c0c2d7ab Mon Sep 17 00:00:00 2001 From: Julien Langlois Date: Sat, 11 Jun 2022 01:11:27 -0400 Subject: [PATCH 262/336] keybase: 5.9.3 -> 6.0.2 https://github.com/keybase/client/releases/tag/v6.0.2 --- pkgs/tools/security/keybase/default.nix | 6 +++--- pkgs/tools/security/keybase/gui.nix | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/pkgs/tools/security/keybase/default.nix b/pkgs/tools/security/keybase/default.nix index 1f53dc2a8aec..afc2eadb63fc 100644 --- a/pkgs/tools/security/keybase/default.nix +++ b/pkgs/tools/security/keybase/default.nix @@ -5,7 +5,7 @@ buildGoModule rec { pname = "keybase"; - version = "5.9.3"; + version = "6.0.2"; modRoot = "go"; subPackages = [ "kbnm" "keybase" ]; @@ -16,9 +16,9 @@ buildGoModule rec { owner = "keybase"; repo = "client"; rev = "v${version}"; - sha256 = "sha256-vPQ1hBd33DwsW0b79kNH1yd7mrwkoftIYFgmMVxC+78="; + sha256 = "sha256-JiYufEsoj/98An2qKdm/Uu4YHJr6ttc/VHn4kMgkuwI="; }; - vendorSha256 = "sha256-ckAnSSSEF00gbgxnPAi2Pi8TNu3nmAahK7TP6HnfmNo="; + vendorSha256 = "sha256-D8b/pvmBGCnaRuf92FYgRcSSbN59Yu0CHKxAybdYjS4="; patches = [ (substituteAll { diff --git a/pkgs/tools/security/keybase/gui.nix b/pkgs/tools/security/keybase/gui.nix index f5147e17ac5e..c9269f5415a5 100644 --- a/pkgs/tools/security/keybase/gui.nix +++ b/pkgs/tools/security/keybase/gui.nix @@ -4,16 +4,16 @@ , runtimeShell, gsettings-desktop-schemas }: let - versionSuffix = "20220216215910.c82d65a685"; + versionSuffix = "20220610191041.a459abf326"; in stdenv.mkDerivation rec { pname = "keybase-gui"; - version = "5.9.3"; # Find latest version from https://prerelease.keybase.io/deb/dists/stable/main/binary-amd64/Packages + version = "6.0.2"; # Find latest version from https://prerelease.keybase.io/deb/dists/stable/main/binary-amd64/Packages src = fetchurl { url = "https://s3.amazonaws.com/prerelease.keybase.io/linux_binaries/deb/keybase_${version + "-" + versionSuffix}_amd64.deb"; - hash = "sha256-JY2DaqApv6K02y3B+JIXpV4SvvMQpBhw9eqr/5Sn0cg="; + hash = "sha256-FMhbMSuJHq5d5E0dTVAk02y85UXmhtKZYk4qcbnhRxI="; }; nativeBuildInputs = [ From edc8808603be2e13cf5b6ec3cbcca61de3de3ba0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Sat, 11 Jun 2022 06:29:30 +0000 Subject: [PATCH 263/336] ceph: use python39 Boost 1.75 is not compatible with Python 3.10. --- pkgs/tools/filesystems/ceph/default.nix | 12 +++++++++--- pkgs/top-level/all-packages.nix | 1 - 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/pkgs/tools/filesystems/ceph/default.nix b/pkgs/tools/filesystems/ceph/default.nix index 678835bf7bf8..47a76c33c80e 100644 --- a/pkgs/tools/filesystems/ceph/default.nix +++ b/pkgs/tools/filesystems/ceph/default.nix @@ -2,7 +2,7 @@ , ensureNewerSourcesHook , cmake, pkg-config , which, git -, boost +, boost175 , libxml2, zlib, lz4 , openldap, lttng-ust , babeltrace, gperf @@ -21,7 +21,7 @@ , doxygen , graphviz , fmt -, python3 +, python39 # Optional Dependencies , yasm ? null, fcgi ? null, expat ? null @@ -104,7 +104,13 @@ let meta = getMeta "Ceph common module for code shared by manager modules"; }; - python = python3; + # Boost 1.75 is not compatible with Python 3.10 + python = python39; + + boost = boost175.override { + enablePython = true; + inherit python; + }; ceph-python-env = python.withPackages (ps: [ ps.sphinx diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index e0e58fec366c..3960268aa7db 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -4601,7 +4601,6 @@ with pkgs; libceph = ceph.lib; inherit (callPackages ../tools/filesystems/ceph { - boost = boost175.override { enablePython = true; python = python3; }; lua = lua5_4; }) ceph From eb3469e52624fbe1204b22effa8aa084a42fe771 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20=C4=8Cun=C3=A1t?= Date: Sat, 11 Jun 2022 11:03:55 +0200 Subject: [PATCH 264/336] mesa: revert to 22.0 on darwin --- pkgs/development/libraries/mesa/default.nix | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/pkgs/development/libraries/mesa/default.nix b/pkgs/development/libraries/mesa/default.nix index 38efff9b5497..0e10135d3d39 100644 --- a/pkgs/development/libraries/mesa/default.nix +++ b/pkgs/development/libraries/mesa/default.nix @@ -34,7 +34,8 @@ with lib; let # Release calendar: https://www.mesa3d.org/release-calendar.html # Release frequency: https://www.mesa3d.org/releasing.html#schedule - version = "22.1.1"; + # 22.1 on darwin won't build: https://gitlab.freedesktop.org/mesa/mesa/-/issues/6519 + version = if stdenv.isDarwin then "22.0.4" else "22.1.1"; branch = versions.major version; self = stdenv.mkDerivation { @@ -48,7 +49,10 @@ self = stdenv.mkDerivation { "ftp://ftp.freedesktop.org/pub/mesa/${version}/mesa-${version}.tar.xz" "ftp://ftp.freedesktop.org/pub/mesa/older-versions/${branch}.x/${version}/mesa-${version}.tar.xz" ]; - sha256 = "1w8fpki67238l4yc92hsnsh4402py9zspirbmirxp577zxjhi526"; + sha256 = { + "22.1.1" = "1w8fpki67238l4yc92hsnsh4402py9zspirbmirxp577zxjhi526"; + "22.0.4" = "1m0y8wgy48hmcidsr7sbk5hcw3v0qr8359fd2x34fvl2z9c1z5y7"; + }.${version}; }; # TODO: From 806da9d0294aab969c705a793b574a9f0fc4e9ab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Sat, 11 Jun 2022 15:29:53 +0000 Subject: [PATCH 265/336] v8_8_x: use python39 Using Python 3.10 makes the build fail with ImportError: cannot import name 'Mapping' from 'collections' --- pkgs/development/libraries/v8/8_x.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/development/libraries/v8/8_x.nix b/pkgs/development/libraries/v8/8_x.nix index 5d95a0716eff..9e2469eed38e 100644 --- a/pkgs/development/libraries/v8/8_x.nix +++ b/pkgs/development/libraries/v8/8_x.nix @@ -1,5 +1,5 @@ { stdenv, lib, fetchgit, fetchFromGitHub -, gn, ninja, python3, glib, pkg-config, icu +, gn, ninja, python39, glib, pkg-config, icu , xcbuild, darwin , fetchpatch }: @@ -132,11 +132,11 @@ stdenv.mkDerivation rec { myGn ninja pkg-config - python3 + python39 ] ++ lib.optionals stdenv.isDarwin [ xcbuild darwin.DarwinTools - python3.pkgs.setuptools + python39.pkgs.setuptools ]; buildInputs = [ glib icu ]; From e8573094f3495d29790b6e8761b70ba2cf31a32c Mon Sep 17 00:00:00 2001 From: pacien Date: Sat, 11 Jun 2022 17:57:49 +0200 Subject: [PATCH 266/336] matrix-commander: 2.30.0 -> 2.36.0 --- .../instant-messengers/matrix-commander/default.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkgs/applications/networking/instant-messengers/matrix-commander/default.nix b/pkgs/applications/networking/instant-messengers/matrix-commander/default.nix index 576ebf1075b5..3713d6c0a1d5 100644 --- a/pkgs/applications/networking/instant-messengers/matrix-commander/default.nix +++ b/pkgs/applications/networking/instant-messengers/matrix-commander/default.nix @@ -14,15 +14,15 @@ , python-olm }: -buildPythonApplication { +buildPythonApplication rec { pname = "matrix-commander"; - version = "2.30.0"; + version = "2.36.0"; src = fetchFromGitHub { owner = "8go"; repo = "matrix-commander"; - rev = "77cf433af0d2e63a88b8914026795a0da5486b77"; - sha256 = "sha256-qUyaN0syP2lLRJLCAD5nCWfwR/CW4t/g40a8xDYseIg="; + rev = "v${version}"; + sha256 = "sha256-NjOPVQ9BJ2LI7qIr8R8xWDXuFTVIYnvN4hIzfrTCX9I="; }; format = "pyproject"; From 63576fb5c33a3e7cb2d826799f17cc336bafab9a Mon Sep 17 00:00:00 2001 From: Kirill Radzikhovskyy Date: Sun, 12 Jun 2022 08:01:13 +1000 Subject: [PATCH 267/336] awsebcli: fixup, use python.pkgs.six from nixpkgs --- pkgs/tools/virtualization/awsebcli/default.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pkgs/tools/virtualization/awsebcli/default.nix b/pkgs/tools/virtualization/awsebcli/default.nix index bc4a920051a8..7c892339fede 100644 --- a/pkgs/tools/virtualization/awsebcli/default.nix +++ b/pkgs/tools/virtualization/awsebcli/default.nix @@ -29,7 +29,6 @@ let }; } ); - six = changeVersion super.six.overridePythonAttrs "1.14.0" "02lw67hprv57hyg3cfy02y3ixjk3nzwc0dx3c4ynlvkfwkfdnsr3"; wcwidth = changeVersion super.wcwidth.overridePythonAttrs "0.1.9" "1wf5ycjx8s066rdvr0fgz4xds9a8zhs91c4jzxvvymm1c8l8cwzf"; semantic-version = changeVersion super.semantic-version.overridePythonAttrs "2.8.5" "d2cb2de0558762934679b9a104e82eca7af448c9f4974d1f3eeccff651df8a54"; pyyaml = super.pyyaml.overridePythonAttrs (oldAttrs: rec { @@ -57,6 +56,11 @@ with localPython.pkgs; buildPythonApplication rec { sha256 = "sha256-W3nUXPAXoicDQNXigktR1+b/9W6qvi90fujrXAekxTU="; }; + + preConfigure = '' + substituteInPlace setup.py --replace "six>=1.11.0,<1.15.0" "six" + ''; + buildInputs = [ glibcLocales ]; From 0af7e9c4075119bd0b9e2c912604c2ab084dd99f Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Sun, 12 Jun 2022 01:24:12 +0200 Subject: [PATCH 268/336] Revert "nss: 3.68.4 -> 3.79" This reverts commit 1c76a270d2d0331aaed02a308acb607e81e5c414. This breaks the Firefox 91esr build, which is apparently not compatible with this NSS version. /build/firefox-91.10.0/security/certverifier/OCSPVerificationTrustDomain.cpp:63:11: error: unknown type name 'SignedDigest' Will revisit this upgrade, when we drop 91esr in favor of 102esr soon. --- pkgs/development/libraries/nss/esr.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/libraries/nss/esr.nix b/pkgs/development/libraries/nss/esr.nix index ad129f97a36a..a789f0306d32 100644 --- a/pkgs/development/libraries/nss/esr.nix +++ b/pkgs/development/libraries/nss/esr.nix @@ -1,4 +1,4 @@ import ./generic.nix { - version = "3.79"; - hash = "sha256-698tapZhO2/nCtV56fmD4OlOARAXHPspmdtjPTOUpRQ="; + version = "3.68.4"; + hash = "sha256-K5/T9aG0nzs7KdEgAmdPcEgRViV1b7R3KELsfDm+Fgs="; } From aedd39d86911adb45ea06fa0bb8153282f37c0b3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Sun, 12 Jun 2022 04:40:02 +0000 Subject: [PATCH 269/336] archivebox: update Django to 3.1.14 --- pkgs/applications/misc/archivebox/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/applications/misc/archivebox/default.nix b/pkgs/applications/misc/archivebox/default.nix index b70cf4407501..a59b3b8ef44c 100644 --- a/pkgs/applications/misc/archivebox/default.nix +++ b/pkgs/applications/misc/archivebox/default.nix @@ -6,10 +6,10 @@ let python = python3.override { packageOverrides = self: super: { django = super.django_3.overridePythonAttrs (old: rec { - version = "3.1.7"; + version = "3.1.14"; src = old.src.override { inherit version; - sha256 = "sha256-Ms55Lum2oMu+w0ASPiKayfdl3/jCpK6SR6FLK6OjZac="; + sha256 = "72a4a5a136a214c39cf016ccdd6b69e2aa08c7479c66d93f3a9b5e4bb9d8a347"; }; }); }; From 067314d87fef67f713a06b64042da4e7442c851f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Sun, 12 Jun 2022 04:43:20 +0000 Subject: [PATCH 270/336] archivebox: mark insecure Django 3.1 has reached the end of extended support and all vulnerabilities listed on [1] as affecting Django 3.2 should be assumed to also affect Django 3.1. [1]: https://www.djangoproject.com/weblog/2022/apr/11/security-releases/ --- pkgs/applications/misc/archivebox/default.nix | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/pkgs/applications/misc/archivebox/default.nix b/pkgs/applications/misc/archivebox/default.nix index a59b3b8ef44c..2d0990bab434 100644 --- a/pkgs/applications/misc/archivebox/default.nix +++ b/pkgs/applications/misc/archivebox/default.nix @@ -11,6 +11,17 @@ let inherit version; sha256 = "72a4a5a136a214c39cf016ccdd6b69e2aa08c7479c66d93f3a9b5e4bb9d8a347"; }; + meta = old.meta // { + knownVulnerabilities = [ + "CVE-2021-45115" + "CVE-2021-45116" + "CVE-2021-45452" + "CVE-2022-23833" + "CVE-2022-22818" + "CVE-2022-28347" + "CVE-2022-28346" + ]; + }; }); }; }; From 4ff1ad170fbbde7a3a6e735ad79cfc93066419ed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Sun, 12 Jun 2022 05:16:26 +0000 Subject: [PATCH 271/336] python310Packages.django-jinja: run tests --- .../python-modules/django-jinja2/default.nix | 51 ++++++++++++------- 1 file changed, 34 insertions(+), 17 deletions(-) diff --git a/pkgs/development/python-modules/django-jinja2/default.nix b/pkgs/development/python-modules/django-jinja2/default.nix index 305e153ce602..8216ca4ff872 100644 --- a/pkgs/development/python-modules/django-jinja2/default.nix +++ b/pkgs/development/python-modules/django-jinja2/default.nix @@ -1,28 +1,45 @@ -{ lib, buildPythonPackage, fetchPypi, - django, jinja2, pytz, tox - }: +{ lib +, buildPythonPackage +, pythonOlder +, fetchFromGitHub +, django +, jinja2 +, python +}: buildPythonPackage rec { pname = "django-jinja"; version = "2.10.2"; + disabled = pythonOlder "3.6"; + + format = "setuptools"; + + src = fetchFromGitHub { + owner = "niwinz"; + repo = "django-jinja"; + rev = version; + hash = "sha256-IZ4HjBQt6K8xbaYfO5DVlGKUVCQ3UciAUpfnqCjzyCE="; + }; + + propagatedBuildInputs = [ + django + jinja2 + ]; + + checkPhase = '' + runHook preCheck + + ${python.interpreter} testing/runtests.py + + runHook postCheck + ''; + meta = { description = "Simple and nonobstructive jinja2 integration with Django"; homepage = "https://github.com/niwinz/django-jinja"; + changelog = "https://github.com/niwinz/django-jinja/blob/${src.rev}/CHANGES.adoc"; license = lib.licenses.bsd3; + maintainers = with lib.maintainers; [ dotlambda ]; }; - - src = fetchPypi { - inherit pname version; - sha256 = "sha256-v9+7VcH1pnnWmtV11VDEcH04ZjQAkVLv4BQInzxNFBI="; - }; - - buildInputs = [ django pytz tox ]; - propagatedBuildInputs = [ django jinja2 ]; - - # python installed: The directory '/homeless-shelter/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.,appdirs==1.4.3,Django==1.11.1,django-jinja==2.2.2,Jinja2==2.9.6,MarkupSafe==1.0,packaging==16.8,pyparsing==2.2.0,pytz==2017.2,six==1.10.0 - doCheck = false; - checkPhase = '' - tox - ''; } From 1e1539c281879fa7ac4b1e2ad5cfba42a78963f9 Mon Sep 17 00:00:00 2001 From: toonn Date: Mon, 13 Jun 2022 17:36:08 +0200 Subject: [PATCH 272/336] cacert: Drop python3Minimal This PR, https://github.com/NixOS/nixpkgs/pull/176291, started building `cacert` with `python3Minimal` to work around an infinite recursion problem with the `mailcap` build. This causes problems now because `buildcatrust` requires the `_scproxy` module and that's not built for `python3Minimal` on Darwin. This causes many transitive failures. Simply building `cacert` with `python3` seems to work fine. The `mailcap` expression has since been altered and this infinite recursion issue doesn't reappear. --- pkgs/top-level/all-packages.nix | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 101c563d35b2..ec293e63135a 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -24192,10 +24192,7 @@ with pkgs; brise = callPackage ../data/misc/brise { }; - cacert = callPackage ../data/misc/cacert { - # avoid an infinite recursion through mailcap - buildcatrust = with python3Minimal.pkgs; toPythonApplication buildcatrust; - }; + cacert = callPackage ../data/misc/cacert { }; caladea = callPackage ../data/fonts/caladea {}; From fe8a3f1ff8d3a5f378aa2e5134647e7193d5d692 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Mon, 13 Jun 2022 01:00:55 +0000 Subject: [PATCH 273/336] conan: 1.47.0 -> 1.49.0 --- .../tools/build-managers/conan/default.nix | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/pkgs/development/tools/build-managers/conan/default.nix b/pkgs/development/tools/build-managers/conan/default.nix index 78e54028cc9c..a72106ace3c4 100644 --- a/pkgs/development/tools/build-managers/conan/default.nix +++ b/pkgs/development/tools/build-managers/conan/default.nix @@ -21,17 +21,6 @@ let newPython = python3.override { sha256 = "1dv6mjsm67l1razcgmq66riqmsb36wns17mnipqr610v0z0zf5j0"; }; }); - # https://github.com/conan-io/conan/issues/8876 - pyjwt = super.pyjwt.overridePythonAttrs (oldAttrs: rec { - version = "1.7.1"; - src = oldAttrs.src.override { - inherit version; - sha256 = "8d59a976fb773f3e6a39c85636357c4f0e242707394cadadd9814f5cbaa20e96"; - }; - disabledTests = [ - "test_ec_verify_should_return_false_if_signature_invalid" - ]; - }); distro = super.distro.overridePythonAttrs (oldAttrs: rec { version = "1.5.0"; src = oldAttrs.src.override { @@ -43,14 +32,14 @@ let newPython = python3.override { }; in newPython.pkgs.buildPythonApplication rec { - version = "1.47.0"; + version = "1.49.0"; pname = "conan"; src = fetchFromGitHub { owner = "conan-io"; repo = "conan"; rev = version; - sha256 = "1zs2xb22rsy5fsc0fd7c95vrx1mfz7vasyg1lqkzyfimvn5zah6n"; + hash = "sha256-BJGstNAnAZtpwagsCY+4quTd0/79zL+v4ifKikS3vaw="; }; propagatedBuildInputs = with newPython.pkgs; [ From b9feda3c0bc5c0226ac6c3e22333f07799d79772 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Wed, 15 Jun 2022 07:35:32 +0000 Subject: [PATCH 274/336] home-assistant: fix parse-requirements.py A regex failed to match python3.10. --- pkgs/servers/home-assistant/parse-requirements.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/servers/home-assistant/parse-requirements.py b/pkgs/servers/home-assistant/parse-requirements.py index e2ac808b33b4..b7bf2937a297 100755 --- a/pkgs/servers/home-assistant/parse-requirements.py +++ b/pkgs/servers/home-assistant/parse-requirements.py @@ -155,7 +155,7 @@ def name_to_attr_path(req: str, packages: Dict[str, Dict[str, str]]) -> Optional # python(minor).(major)-(pname)-(version or unstable-date) # we need the version qualifier, or we'll have multiple matches # (e.g. pyserial and pyserial-asyncio when looking for pyserial) - pattern = re.compile(f"^python\\d\\.\\d-{name}-(?:\\d|unstable-.*)", re.I) + pattern = re.compile(f"^python\\d+\\.\\d+-{name}-(?:\\d|unstable-.*)", re.I) for attr_path, package in packages.items(): if pattern.match(package["name"]): attr_paths.append(attr_path) From c772b13ee74e9cea7e2f26ad05fdeff7d819f891 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= Date: Sat, 11 Jun 2022 10:56:52 +0200 Subject: [PATCH 275/336] nixos/navidrome: fixes missing ssl certficates --- nixos/modules/services/audio/navidrome.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/nixos/modules/services/audio/navidrome.nix b/nixos/modules/services/audio/navidrome.nix index 3660e05310be..b50cb0415569 100644 --- a/nixos/modules/services/audio/navidrome.nix +++ b/nixos/modules/services/audio/navidrome.nix @@ -45,6 +45,8 @@ in { RootDirectory = "/run/navidrome"; ReadWritePaths = ""; BindReadOnlyPaths = [ + # navidrome uses online services to download additional album metadata / covers + "${config.environment.etc."ssl/certs/ca-certificates.crt".source}:/etc/ssl/certs/ca-certificates.crt" builtins.storeDir ] ++ lib.optional (cfg.settings ? MusicFolder) cfg.settings.MusicFolder; CapabilityBoundingSet = ""; From 1cbc35fb871683b9c3d402bda670c21985589e9c Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Thu, 16 Jun 2022 07:13:35 +0000 Subject: [PATCH 276/336] python310Packages.pyspark: 3.2.1 -> 3.3.0 --- pkgs/development/python-modules/pyspark/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/pyspark/default.nix b/pkgs/development/python-modules/pyspark/default.nix index 6acc5b3bf92f..2208558e4bd1 100644 --- a/pkgs/development/python-modules/pyspark/default.nix +++ b/pkgs/development/python-modules/pyspark/default.nix @@ -6,11 +6,11 @@ buildPythonPackage rec { pname = "pyspark"; - version = "3.2.1"; + version = "3.3.0"; src = fetchPypi { inherit pname version; - sha256 = "sha256-C4E1kmLsbprHjDUzROfeAmAn0UDG3vlJ/w2Aq3D4mlQ="; + sha256 = "sha256-fr6OlQVke00STVqC/KYN/TiRAhz4rWxeyId37uzpLPc="; }; # pypandoc is broken with pandoc2, so we just lose docs. From 20972d657edef0cab6f1ef2d6e99d88fd93bed16 Mon Sep 17 00:00:00 2001 From: K900 Date: Thu, 16 Jun 2022 10:35:54 +0300 Subject: [PATCH 277/336] xxHash: add pkg-config file fix, clean up a bit --- pkgs/development/libraries/xxHash/default.nix | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/pkgs/development/libraries/xxHash/default.nix b/pkgs/development/libraries/xxHash/default.nix index 336dd5b32576..d5a8df6f437e 100644 --- a/pkgs/development/libraries/xxHash/default.nix +++ b/pkgs/development/libraries/xxHash/default.nix @@ -2,7 +2,7 @@ , stdenv , fetchFromGitHub , cmake -, fetchurl +, fetchpatch }: stdenv.mkDerivation rec { @@ -16,13 +16,21 @@ stdenv.mkDerivation rec { sha256 = "sha256-2WoYCO6QRHWrbGP2mK04/sLNTyQLOuL3urVktilAwMA="; }; + # CMake build fixes patches = [ # Merged in https://github.com/Cyan4973/xxHash/pull/649 # Should be present in next release - (fetchurl { - name = "cmakeinstallfix.patch"; + (fetchpatch { + name = "cmake-install-fix"; url = "https://github.com/Cyan4973/xxHash/commit/636f966ecc713c84ddd3b7ccfde2bfb2cc7492a0.patch"; - hash = "sha256-fj+5V5mDhFgWGvrG1E4fEekL4eh7as0ouVvY4wnIHjs="; + sha256 = "sha256-B1PZ/0BXlOrSiPvgCPLvI/sjQvnR0n5PQHOO38LOij0="; + }) + + # Submitted at https://github.com/Cyan4973/xxHash/pull/723 + (fetchpatch { + name = "cmake-pkgconfig-fix"; + url = "https://github.com/Cyan4973/xxHash/commit/5db353bbd05ee5eb1f90afc08d10da9416154e55.patch"; + sha256 = "sha256-dElgSu9DVo2hY6TTVHLTtt0zkXmQV3nc9i/KbrDkK8s="; }) ]; From e36d99a5df9e4d0a706ca28d7c0ca10a1cc57537 Mon Sep 17 00:00:00 2001 From: Francesco Gazzetta Date: Thu, 16 Jun 2022 17:18:01 +0200 Subject: [PATCH 278/336] python310Packages.scrap-engine: init at 1.2.0 --- .../python-modules/scrap-engine/default.nix | 24 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 ++ 2 files changed, 26 insertions(+) create mode 100644 pkgs/development/python-modules/scrap-engine/default.nix diff --git a/pkgs/development/python-modules/scrap-engine/default.nix b/pkgs/development/python-modules/scrap-engine/default.nix new file mode 100644 index 000000000000..07d942f01099 --- /dev/null +++ b/pkgs/development/python-modules/scrap-engine/default.nix @@ -0,0 +1,24 @@ +{ lib +, buildPythonPackage +, fetchPypi +, setuptools-scm +}: + +buildPythonPackage rec { + pname = "scrap_engine"; + version = "1.2.0"; + + src = fetchPypi { + inherit pname version; + sha256 = "sha256-dn/9wxK1UHd3cc3Jo1Cp9tynOFUlndH+cZfIc244ysE="; + }; + + nativeBuildInputs = [ setuptools-scm ]; + + meta = with lib; { + maintainers = with maintainers; [ fgaz ]; + description = "A 2D ascii game engine for the terminal"; + homepage = "https://github.com/lxgr-linux/scrap_engine"; + license = licenses.gpl3Only; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 47d7a2f9d0c5..b9ae2bd13ed6 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -9502,6 +9502,8 @@ in { scramp = callPackage ../development/python-modules/scramp { }; + scrap-engine = callPackage ../development/python-modules/scrap-engine { }; + scrapy = callPackage ../development/python-modules/scrapy { }; scrapy-deltafetch = callPackage ../development/python-modules/scrapy-deltafetch { }; From 7dc14475ce5f3da4456ef85665324f9219ecf2f7 Mon Sep 17 00:00:00 2001 From: pacien Date: Thu, 16 Jun 2022 21:17:02 +0200 Subject: [PATCH 279/336] matrix-commander: 2.36.0 -> 2.37.3 --- .../instant-messengers/matrix-commander/default.nix | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pkgs/applications/networking/instant-messengers/matrix-commander/default.nix b/pkgs/applications/networking/instant-messengers/matrix-commander/default.nix index 3713d6c0a1d5..85c3dc86ea0f 100644 --- a/pkgs/applications/networking/instant-messengers/matrix-commander/default.nix +++ b/pkgs/applications/networking/instant-messengers/matrix-commander/default.nix @@ -11,18 +11,19 @@ , aiofiles , notify2 , dbus-python +, xdg , python-olm }: buildPythonApplication rec { pname = "matrix-commander"; - version = "2.36.0"; + version = "2.37.3"; src = fetchFromGitHub { owner = "8go"; repo = "matrix-commander"; rev = "v${version}"; - sha256 = "sha256-NjOPVQ9BJ2LI7qIr8R8xWDXuFTVIYnvN4hIzfrTCX9I="; + sha256 = "sha256-X5tCPR0EqY1dxViwh8/tEjJM2oo81L3H703pPzWzUv8="; }; format = "pyproject"; @@ -53,6 +54,7 @@ buildPythonApplication rec { aiofiles notify2 dbus-python + xdg python-olm ]; From b8f1cd1e97c06953eeb0883a74d91a89b64576cb Mon Sep 17 00:00:00 2001 From: Dmitry Bogatov Date: Mon, 16 May 2022 18:59:32 -0400 Subject: [PATCH 280/336] zsh: split documentation into separate outputs --- pkgs/shells/zsh/default.nix | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pkgs/shells/zsh/default.nix b/pkgs/shells/zsh/default.nix index e5967ac1f78b..7e177a1744cd 100644 --- a/pkgs/shells/zsh/default.nix +++ b/pkgs/shells/zsh/default.nix @@ -19,6 +19,7 @@ in stdenv.mkDerivation { pname = "zsh"; inherit version; + outputs = [ "out" "doc" "info" "man" ]; src = fetchurl { url = "mirror://sourceforge/zsh/zsh-${version}.tar.xz"; @@ -50,9 +51,8 @@ stdenv.mkDerivation { checkFlags = map (T: "TESTNUM=${T}") (lib.stringToCharacters "ABCDEVW"); # XXX: think/discuss about this, also with respect to nixos vs nix-on-X - postInstall = lib.optionalString stdenv.isLinux '' + postInstall = '' make install.info install.html - '' + '' mkdir -p $out/etc/ cat > $out/etc/zprofile < Date: Sat, 18 Jun 2022 10:15:22 +0800 Subject: [PATCH 281/336] pantheon.elementary-files: 6.1.2 -> 6.1.3 --- pkgs/desktops/pantheon/apps/elementary-files/default.nix | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/pkgs/desktops/pantheon/apps/elementary-files/default.nix b/pkgs/desktops/pantheon/apps/elementary-files/default.nix index 9147324b8867..312be10811b1 100644 --- a/pkgs/desktops/pantheon/apps/elementary-files/default.nix +++ b/pkgs/desktops/pantheon/apps/elementary-files/default.nix @@ -5,7 +5,6 @@ , pkg-config , meson , ninja -, gettext , vala , python3 , desktop-file-utils @@ -21,7 +20,6 @@ , bamf , sqlite , zeitgeist -, glib-networking , libcloudproviders , libgit2-glib , wrapGAppsHook @@ -30,7 +28,7 @@ stdenv.mkDerivation rec { pname = "elementary-files"; - version = "6.1.2"; + version = "6.1.3"; outputs = [ "out" "dev" ]; @@ -38,13 +36,11 @@ stdenv.mkDerivation rec { owner = "elementary"; repo = "files"; rev = version; - sha256 = "sha256-g9g4wJXjjudk4Qt96XGUiV/X86Ae2lqhM+psh9h+XFE="; + sha256 = "sha256-aA3cerBKvxrh5vmDrLeWyLfbz7YjeN0aoTCX9NnVWhQ="; }; nativeBuildInputs = [ desktop-file-utils - gettext - glib-networking meson ninja pkg-config From f22126fe9a21cb2c19f95a4c178092371ea37b4d Mon Sep 17 00:00:00 2001 From: Mario Rodas Date: Sat, 18 Jun 2022 04:20:00 +0000 Subject: [PATCH 282/336] ocamlPackages.ppx_yojson_conv_lib: 0.14.0 -> 0.15.0 --- .../development/ocaml-modules/ppx_yojson_conv_lib/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/ocaml-modules/ppx_yojson_conv_lib/default.nix b/pkgs/development/ocaml-modules/ppx_yojson_conv_lib/default.nix index 07d817d22938..1bf2078375ac 100644 --- a/pkgs/development/ocaml-modules/ppx_yojson_conv_lib/default.nix +++ b/pkgs/development/ocaml-modules/ppx_yojson_conv_lib/default.nix @@ -2,7 +2,7 @@ buildDunePackage rec { pname = "ppx_yojson_conv_lib"; - version = "0.14.0"; + version = "0.15.0"; useDune2 = true; @@ -12,7 +12,7 @@ buildDunePackage rec { owner = "janestreet"; repo = pname; rev = "v${version}"; - sha256 = "12s3xshayy1f8cp9lk6zqwnw60n7cdap55gkksz5w65gdd8bfxmf"; + sha256 = "sha256-Hpg4AKAe7Q5P5UkBpH+5l1nZbIVA2Dr1Q30D4zkrjGo="; }; propagatedBuildInputs = [ yojson ]; From ac86fdf42efe6382f9d62205d922ee3628cc24c5 Mon Sep 17 00:00:00 2001 From: Sergei Trofimovich Date: Sat, 18 Jun 2022 07:57:25 +0100 Subject: [PATCH 283/336] Revert "python3Packages.certbot: 1.24.0 -> 1.27.0" This reverts commit cd49d603d997f200057942bf8dd0d3d57efdf214 to allow clean merge of newer `certbot-1.28.0` from `master` on top of `staging-next`. --- pkgs/development/python-modules/certbot/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/certbot/default.nix b/pkgs/development/python-modules/certbot/default.nix index b32c3ecd9f8c..72a5d8db39d7 100644 --- a/pkgs/development/python-modules/certbot/default.nix +++ b/pkgs/development/python-modules/certbot/default.nix @@ -9,13 +9,13 @@ buildPythonPackage rec { pname = "certbot"; - version = "1.27.0"; + version = "1.24.0"; src = fetchFromGitHub { owner = pname; repo = pname; rev = "v${version}"; - sha256 = "sha256-3IKRVR1rLpOH22Mp2m0InqcPt85+jQgBSyrRL9/nMxY="; + sha256 = "sha256-XIKFEPQKIV5s6sZ7LRnlTvsb3cF4KIaiVZ36cAN1AwA="; }; sourceRoot = "source/${pname}"; From ad24ab01de8953993732f15431f07866ab3da152 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20=C4=8Cun=C3=A1t?= Date: Sat, 18 Jun 2022 10:42:04 +0200 Subject: [PATCH 284/336] makeDBusConf: reduce build closure *buildInputs take .dev outputs by default, but we don't need it here. The extra dependency (introduced by commit d1720612814) was breaking tests like nixosTests.containers-imperative and nixosTests.installer.* https://hydra.nixos.org/eval/1767666#tabs-still-fail --- pkgs/development/libraries/dbus/make-dbus-conf.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/libraries/dbus/make-dbus-conf.nix b/pkgs/development/libraries/dbus/make-dbus-conf.nix index 35b232b2a329..125da383c8d1 100644 --- a/pkgs/development/libraries/dbus/make-dbus-conf.nix +++ b/pkgs/development/libraries/dbus/make-dbus-conf.nix @@ -20,12 +20,12 @@ runCommand "dbus-1" allowSubstitutes = false; nativeBuildInputs = [ - libxslt + libxslt.bin findXMLCatalogs ]; buildInputs = [ - dbus + dbus.out ]; } '' From 207a128a69c4d5e6d5e7f60cb4f8b530eacb111b Mon Sep 17 00:00:00 2001 From: Pasquale Date: Wed, 7 Oct 2020 15:59:19 +0200 Subject: [PATCH 285/336] GameHub: init at 0.16.3-2 a --- pkgs/games/gamehub/default.nix | 67 +++++++++++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 + 2 files changed, 69 insertions(+) create mode 100644 pkgs/games/gamehub/default.nix diff --git a/pkgs/games/gamehub/default.nix b/pkgs/games/gamehub/default.nix new file mode 100644 index 000000000000..b22446b80abc --- /dev/null +++ b/pkgs/games/gamehub/default.nix @@ -0,0 +1,67 @@ +{ stdenv +, lib +, fetchFromGitHub +, meson +, ninja +, vala +, pkg-config +, desktop-file-utils +, glib +, gtk3 +, glib-networking +, libgee +, libsoup +, json-glib +, sqlite +, webkitgtk +, libmanette +, libXtst +, wrapGAppsHook +}: + +stdenv.mkDerivation rec { + pname = "GameHub"; + version = "0.16.3-2"; + + src = fetchFromGitHub { + owner = "tkashkin"; + repo = pname; + rev = "${version}-master"; + hash = "sha256-dBGzXwDO9BvnEIcdfqlGnMzUdBqaVA96Ds0fY6eukes="; + }; + + nativeBuildInputs = [ + desktop-file-utils + meson + ninja + pkg-config + vala + wrapGAppsHook + ]; + + buildInputs = [ + glib + glib-networking + gtk3 + json-glib + libgee + libmanette + libsoup + libXtst + sqlite + webkitgtk + ]; + + meta = with lib; { + homepage = "https://tkashkin.github.io/projects/gamehub"; + description = "All your games in one place"; + longDescription = '' + GameHub is a unified library for all your games. It allows you to store + your games from different platforms into one program to make it easier + for you to manage your games. + ''; + maintainers = with maintainers; [ pasqui23 ]; + license = with licenses; [ gpl3Only ]; + platforms = platforms.linux; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index dfe84795999e..69d5e28a0dae 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -21748,6 +21748,8 @@ with pkgs; fusionInventory = callPackage ../servers/monitoring/fusion-inventory { }; + gamehub = callPackage ../games/gamehub { }; + gatling = callPackage ../servers/http/gatling { }; gitlab-pages = callPackage ../servers/http/gitlab-pages { }; From fc8516ff562462d888bf20d62cd0d25ea54207be Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sat, 18 Jun 2022 14:33:15 +0200 Subject: [PATCH 286/336] gitls: init at 1.0.3 --- pkgs/tools/security/gitls/default.nix | 34 +++++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 36 insertions(+) create mode 100644 pkgs/tools/security/gitls/default.nix diff --git a/pkgs/tools/security/gitls/default.nix b/pkgs/tools/security/gitls/default.nix new file mode 100644 index 000000000000..f6ef854ce810 --- /dev/null +++ b/pkgs/tools/security/gitls/default.nix @@ -0,0 +1,34 @@ +{ lib +, buildGoModule +, gitls +, fetchFromGitHub +, testers +}: + +buildGoModule rec { + pname = "gitls"; + version = "1.0.3"; + + src = fetchFromGitHub { + owner = "hahwul"; + repo = pname; + rev = "v${version}"; + hash = "sha256-snoWnq+xmaxWzFthhO/gOYQDUMbpIZR9VkqcPaHzS6g="; + }; + + vendorSha256 = "sha256-pQpattmS9VmO3ZIQUFn66az8GSmB4IvYhTTCFn6SUmo="; + + passthru.tests.version = testers.testVersion { + package = gitls; + command = "gitls -version"; + version = "v${version}"; + }; + + meta = with lib; { + description = "Tools to enumerate git repository URL"; + homepage = "https://github.com/hahwul/gitls"; + changelog = "https://github.com/hahwul/gitls/releases/tag/v${version}"; + license = licenses.mit; + maintainers = with maintainers; [ fab ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 76d16b9519df..348c28c7e68b 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -2309,6 +2309,8 @@ with pkgs; gitless = callPackage ../applications/version-management/gitless { }; + gitls = callPackage ../tools/security/gitls { }; + gistyc = with python3Packages; toPythonApplication gistyc; gitlint = python3Packages.callPackage ../tools/misc/gitlint { }; From 10260ad3ec8dd0159371cc3df43acb6a07da595a Mon Sep 17 00:00:00 2001 From: misuzu Date: Sat, 18 Jun 2022 16:29:49 +0300 Subject: [PATCH 287/336] zerotierone: 1.8.9 -> 1.10.0 --- pkgs/tools/networking/zerotierone/default.nix | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/pkgs/tools/networking/zerotierone/default.nix b/pkgs/tools/networking/zerotierone/default.nix index 5a9239e2737c..e06d8bb2f41d 100644 --- a/pkgs/tools/networking/zerotierone/default.nix +++ b/pkgs/tools/networking/zerotierone/default.nix @@ -15,13 +15,13 @@ let pname = "zerotierone"; - version = "1.8.9"; + version = "1.10.0"; src = fetchFromGitHub { owner = "zerotier"; repo = "ZeroTierOne"; rev = version; - sha256 = "sha256-N1VqzjaFJRJiSG4qHqRy4Fs8TlkUqyDoq0/3JQdGwfA="; + sha256 = "sha256-2lxXgQArHTFCuSBbKRSaLka42p2INLDg0z3TZ+J5msc="; }; in stdenv.mkDerivation { inherit pname version src; @@ -29,7 +29,7 @@ in stdenv.mkDerivation { cargoDeps = rustPlatform.fetchCargoTarball { src = "${src}/zeroidc"; name = "${pname}-${version}"; - sha256 = "sha256-PDsJtz279P2IpgiL0T92IbcANeGSUnGKhEH1dj9VtbM="; + sha256 = "sha256-Q9uBUD5xxo5gcTQTedVqQv+Z7B1TTPWtaTSuWo7WEPM="; }; postPatch = "cp ${src}/zeroidc/Cargo.lock Cargo.lock"; @@ -39,7 +39,8 @@ in stdenv.mkDerivation { --replace '/usr/bin/ronn' '${buildPackages.ronn}/bin/ronn' \ substituteInPlace ./make-linux.mk \ - --replace 'armv5' 'armv6' + --replace '-march=armv6zk' "" \ + --replace '-mcpu=arm1176jzf-s' "" ''; nativeBuildInputs = [ From e4c6c49cf7406e4e7f973488ca60cc7744d4c0da Mon Sep 17 00:00:00 2001 From: pasqui23 Date: Sat, 18 Jun 2022 14:47:36 +0000 Subject: [PATCH 288/336] GameHub: better description from @AnsersonTorres Co-authored-by: Anderson Torres --- pkgs/games/gamehub/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/games/gamehub/default.nix b/pkgs/games/gamehub/default.nix index b22446b80abc..87796d58c732 100644 --- a/pkgs/games/gamehub/default.nix +++ b/pkgs/games/gamehub/default.nix @@ -54,7 +54,7 @@ stdenv.mkDerivation rec { meta = with lib; { homepage = "https://tkashkin.github.io/projects/gamehub"; - description = "All your games in one place"; + description = "Unified library for all your games"; longDescription = '' GameHub is a unified library for all your games. It allows you to store your games from different platforms into one program to make it easier From 306d5b860a5cade127f820f127c1c57856fdfe55 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sat, 18 Jun 2022 17:28:07 +0200 Subject: [PATCH 289/336] pwdsafety: 0.1.4 -> 0.3 --- pkgs/tools/security/pwdsafety/default.nix | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pkgs/tools/security/pwdsafety/default.nix b/pkgs/tools/security/pwdsafety/default.nix index 2a6ed328e49e..ce4e149e7700 100644 --- a/pkgs/tools/security/pwdsafety/default.nix +++ b/pkgs/tools/security/pwdsafety/default.nix @@ -1,20 +1,20 @@ -{ buildGoModule +{ lib +, buildGoModule , fetchFromGitHub -, lib }: buildGoModule rec { pname = "pwdsafety"; - version = "0.1.4"; + version = "0.3"; src = fetchFromGitHub { owner = "edoardottt"; repo = pname; rev = "v${version}"; - sha256 = "1qnkabgc2924qg9x1ij51jq7lnxzcj1ygdp3x4mzi9gl532i191w"; + hash = "sha256-ryMLiehJVZhQ3ZQf4/g7ILeJri78A6z5jfell0pD9E8="; }; - vendorSha256 = "0avm4zwwqv476yrraaf5xkc1lac0mwnmzav5wckifws6r4x3xrsb"; + vendorSha256 = "sha256-b+tWTQUyYDzY2O28hwy5vI6b6S889TCiVh7hQhw/KAc="; meta = with lib; { description = "Command line tool checking password safety"; From bd19b743395ce633bc61d98dad431ed9a68818f2 Mon Sep 17 00:00:00 2001 From: Sven Over Date: Thu, 16 Jun 2022 22:01:12 +0100 Subject: [PATCH 290/336] maintainers: add sven-of-cord --- maintainers/maintainer-list.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix index 8240f18ce1b6..9786a722773d 100644 --- a/maintainers/maintainer-list.nix +++ b/maintainers/maintainer-list.nix @@ -12441,6 +12441,12 @@ githubId = 1040871; name = "Mathis Antony"; }; + sven-of-cord = { + email = "sven@cord.com"; + github = "sven-of-cord"; + githubId = 98333944; + name = "Sven Over"; + }; svend = { email = "svend@svends.net"; github = "svend"; From 1a983571758cd2beb8fad47a770f590a6d8dca6b Mon Sep 17 00:00:00 2001 From: Ashish SHUKLA Date: Sun, 19 Jun 2022 01:10:35 +0530 Subject: [PATCH 291/336] got: 0.69 -> 0.70 --- pkgs/applications/version-management/got/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/applications/version-management/got/default.nix b/pkgs/applications/version-management/got/default.nix index f38bb042c435..fc0de31d4713 100644 --- a/pkgs/applications/version-management/got/default.nix +++ b/pkgs/applications/version-management/got/default.nix @@ -2,11 +2,11 @@ stdenv.mkDerivation rec { pname = "got"; - version = "0.69"; + version = "0.70"; src = fetchurl { url = "https://gameoftrees.org/releases/portable/got-portable-${version}.tar.gz"; - sha256 = "1cnl0yk866wzjwgas587kvb08njq7db71b5xqsdrwd1varp010vm"; + sha256 = "0kh7idgbiil58l043lkyjy9lz81yj03b6b3d7ra62jkrkzc4wlrf"; }; nativeBuildInputs = [ pkg-config ]; From 11c5f738289e335e72aa5d206a67fc6d15739e5e Mon Sep 17 00:00:00 2001 From: Francesco Gazzetta Date: Thu, 16 Jun 2022 17:18:31 +0200 Subject: [PATCH 292/336] pokete: init at 0.7.2 --- pkgs/games/pokete/default.nix | 55 +++++++++++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 57 insertions(+) create mode 100644 pkgs/games/pokete/default.nix diff --git a/pkgs/games/pokete/default.nix b/pkgs/games/pokete/default.nix new file mode 100644 index 000000000000..8ddea5cbbcea --- /dev/null +++ b/pkgs/games/pokete/default.nix @@ -0,0 +1,55 @@ +{ lib +, python3 +, fetchFromGitHub +, testers +, pokete +}: + +python3.pkgs.buildPythonApplication rec { + pname = "pokete"; + version = "0.7.2"; + + format = "other"; + + src = fetchFromGitHub { + owner = "lxgr-linux"; + repo = "pokete"; + rev = version; + sha256 = "sha256-P6007qY6MsnQH4LGiNPoKCUt3+YI0OinKFdosaj3Wrc="; + }; + + pythonPath = with python3.pkgs; [ + scrap-engine + pynput + ]; + + buildPhase = '' + ${python3.interpreter} -O -m compileall . + ''; + + installPhase = '' + mkdir -p $out/share/pokete + cp -r assets pokete_classes pokete_data mods *.py $out/share/pokete/ + mkdir -p $out/bin + ln -s $out/share/pokete/pokete.py $out/bin/pokete + ''; + + postFixup = '' + wrapPythonProgramsIn $out/share/pokete "$pythonPath" + ''; + + passthru.tests = { + pokete-version = testers.testVersion { + package = pokete; + command = "pokete --help"; + }; + }; + + meta = with lib; { + description = "A terminal based Pokemon like game"; + homepage = "https://lxgr-linux.github.io/pokete"; + license = licenses.gpl3Only; + maintainers = with maintainers; [ fgaz ]; + platforms = platforms.unix; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index e53048ee6ad2..916a6e70934f 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -32189,6 +32189,8 @@ with pkgs; target = "server"; }; + pokete = callPackage ../games/pokete { }; + powermanga = callPackage ../games/powermanga { }; prboom-plus = callPackage ../games/prboom-plus { }; From b1f4b54968191f7dbdd813292d27ec1a8bf4d7e8 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Sat, 18 Jun 2022 21:08:05 +0000 Subject: [PATCH 293/336] yubikey-manager: 4.0.8 -> 4.0.9 --- pkgs/tools/misc/yubikey-manager/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/tools/misc/yubikey-manager/default.nix b/pkgs/tools/misc/yubikey-manager/default.nix index f7dc1fc54f2e..de8c6777ae61 100644 --- a/pkgs/tools/misc/yubikey-manager/default.nix +++ b/pkgs/tools/misc/yubikey-manager/default.nix @@ -2,14 +2,14 @@ python3Packages.buildPythonPackage rec { pname = "yubikey-manager"; - version = "4.0.8"; + version = "4.0.9"; format = "pyproject"; src = fetchFromGitHub { repo = "yubikey-manager"; - rev = version; + rev = "refs/tags/${version}"; owner = "Yubico"; - sha256 = "sha256-OszXOu/NhoX4WutsT4Z1LsY54KTOWRKt13yDo2fzDbA="; + sha256 = "sha256-MwM/b1QP6pkyBjz/r6oC4sW1mKC0CKMay45a0wCktk0="; }; postPatch = '' From 68e989d3809b55d87a2cc3feef7d3fda23b5c016 Mon Sep 17 00:00:00 2001 From: Sven Over Date: Thu, 16 Jun 2022 22:17:36 +0100 Subject: [PATCH 294/336] spr: init at 1.3.2 --- pkgs/development/tools/spr/default.nix | 27 ++++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 4 ++++ 2 files changed, 31 insertions(+) create mode 100644 pkgs/development/tools/spr/default.nix diff --git a/pkgs/development/tools/spr/default.nix b/pkgs/development/tools/spr/default.nix new file mode 100644 index 000000000000..c19bf5b174ba --- /dev/null +++ b/pkgs/development/tools/spr/default.nix @@ -0,0 +1,27 @@ +{ lib +, rustPlatform +, fetchCrate +, Security +, stdenv +}: + +rustPlatform.buildRustPackage rec { + pname = "spr"; + version = "1.3.2"; + + src = fetchCrate { + inherit pname version; + sha256 = "sha256-6IPNA1Ivj3o+X733a8Kxh1STODS5lLZaK4lh0lxU4bo="; + }; + + cargoSha256 = "sha256-m/mHOiuaFJtiuyFr2Z3ovk/Q06vxwvUBAiz0rF4R3kU="; + + buildInputs = lib.optional stdenv.isDarwin Security; + + meta = with lib; { + description = "Submit pull requests for individual, amendable, rebaseable commits to GitHub"; + homepage = "https://github.com/getcord/spr"; + license = licenses.mit; + maintainers = with maintainers; [ sven-of-cord ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index d525f2e5da02..886cd885cf2d 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -16341,6 +16341,10 @@ with pkgs; spooles = callPackage ../development/libraries/science/math/spooles {}; + spr = callPackage ../development/tools/spr { + inherit (darwin.apple_sdk.frameworks) Security; + }; + spruce = callPackage ../development/tools/misc/spruce {}; sqlc = callPackage ../development/tools/database/sqlc { }; From 1477172ead7ff98c969e9ff6a1a10be46c21a3ba Mon Sep 17 00:00:00 2001 From: Alexander Reynolds Date: Sat, 18 Jun 2022 16:40:24 -0700 Subject: [PATCH 295/336] maintainers: add alkasm --- maintainers/maintainer-list.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix index 8240f18ce1b6..b7d4eabca382 100644 --- a/maintainers/maintainer-list.nix +++ b/maintainers/maintainer-list.nix @@ -560,6 +560,12 @@ githubId = 36147; name = "Alireza Meskin"; }; + alkasm = { + email = "alexreynolds00@gmail.com"; + github = "alkasm"; + githubId = 9651002; + name = "Alexander Reynolds"; + }; alkeryn = { email = "plbraundev@gmail.com"; github = "Alkeryn"; From a19f2c688bcd06d89bdc8848918eaff0e0991aa4 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sat, 18 Jun 2022 23:31:55 +0000 Subject: [PATCH 296/336] terraform-providers: update 2022-06-18 --- .../cluster/terraform-providers/default.nix | 3 +- .../terraform-providers/providers.json | 204 +++++++++--------- 2 files changed, 103 insertions(+), 104 deletions(-) diff --git a/pkgs/applications/networking/cluster/terraform-providers/default.nix b/pkgs/applications/networking/cluster/terraform-providers/default.nix index 94b8bc23a772..9ed67b6969fc 100644 --- a/pkgs/applications/networking/cluster/terraform-providers/default.nix +++ b/pkgs/applications/networking/cluster/terraform-providers/default.nix @@ -58,12 +58,11 @@ let # These are the providers that don't fall in line with the default model special-providers = { - # Packages that don't fit the default model - brightbox = automated-providers.brightbox.override { mkProviderGoModule = buildGo118Module; }; # mkisofs needed to create ISOs holding cloud-init data, # and wrapped to terraform via deecb4c1aab780047d79978c636eeb879dd68630 libvirt = automated-providers.libvirt.overrideAttrs (_: { propagatedBuildInputs = [ cdrtools ]; }); + linode = automated-providers.linode.override { mkProviderGoModule = buildGo118Module; }; }; # Put all the providers we not longer support in this list. diff --git a/pkgs/applications/networking/cluster/terraform-providers/providers.json b/pkgs/applications/networking/cluster/terraform-providers/providers.json index 4156f6678a91..2fc7918e7b0a 100644 --- a/pkgs/applications/networking/cluster/terraform-providers/providers.json +++ b/pkgs/applications/networking/cluster/terraform-providers/providers.json @@ -3,10 +3,10 @@ "owner": "CiscoDevNet", "provider-source-address": "registry.terraform.io/CiscoDevNet/aci", "repo": "terraform-provider-aci", - "rev": "v2.2.1", - "sha256": "sha256-WYKlkvGmTeaI4+7uWLy6/y+NtFb9n3Lu9lrwSR8Vg/0=", + "rev": "v2.3.0", + "sha256": "sha256-V4LvMVWuKsGMVo/P8r79ICy3SrsVmCOMl75yRIixqAQ=", "vendorSha256": null, - "version": "2.2.1" + "version": "2.3.0" }, "acme": { "owner": "vancluever", @@ -30,10 +30,10 @@ "owner": "aiven", "provider-source-address": "registry.terraform.io/aiven/aiven", "repo": "terraform-provider-aiven", - "rev": "v3.0.0", - "sha256": "sha256-k3F6AUcGAddDD3Wy1THgTlcNzDBB403Vy+6c+avi+vQ=", - "vendorSha256": "sha256-gVZpN7Hwi+PbJDgEHSJRYq0tC1GVcetfPBY5pGhMPAc=", - "version": "3.0.0" + "rev": "v3.1.0", + "sha256": "sha256-or9zftygo0W0bcw2FZl9S8dp4K8enlC5MYrrqgB2IUs=", + "vendorSha256": "sha256-k6pKet1YdQYCyFICw67nKI3RGNZ4b+zA+T9jpa2ZLFM=", + "version": "3.1.0" }, "akamai": { "owner": "akamai", @@ -49,10 +49,10 @@ "owner": "aliyun", "provider-source-address": "registry.terraform.io/aliyun/alicloud", "repo": "terraform-provider-alicloud", - "rev": "v1.170.0", - "sha256": "sha256-qONJK3/Vr+v6sVphyDLBJDdbeuLUxdZSImvntvQ4Fbc=", + "rev": "v1.171.0", + "sha256": "sha256-p6F3KNJ0W58E5WgdrSUmvu58MOy7zFYMy0aOg37j7Lo=", "vendorSha256": "sha256-RbhpyldFMQYb/bsGtnFLHxHGgIcPPSTJlEzuQySfxEA=", - "version": "1.170.0" + "version": "1.171.0" }, "ansible": { "owner": "nbering", @@ -103,19 +103,19 @@ "owner": "hashicorp", "provider-source-address": "registry.terraform.io/hashicorp/aws", "repo": "terraform-provider-aws", - "rev": "v4.18.0", - "sha256": "sha256-hiC0SwLQk2DaVOTs3ZV+VngN0QFcN/oJPkvdMbQzzlg=", - "vendorSha256": "sha256-ZTUPO867RuX9s33X3qsetRXQ8C1bfHFE1UYQIkK2KRo=", - "version": "4.18.0" + "rev": "v4.19.0", + "sha256": "sha256-0pgCGv6a+/cBBInISM8Lmfapz+FIPwxAaqd+Rd6jax0=", + "vendorSha256": "sha256-n3iXCX87bu5rETz18GgUdIcy1NH+OTuA4ff56yE7kNg=", + "version": "4.19.0" }, "azuread": { "owner": "hashicorp", "provider-source-address": "registry.terraform.io/hashicorp/azuread", "repo": "terraform-provider-azuread", - "rev": "v2.23.0", - "sha256": "sha256-qHlC5BQnO8MusjTkbMcNp1yqm//nR4lL3BgsG584q38=", + "rev": "v2.24.0", + "sha256": "sha256-obaS2MzLTeIKskGRz8CanRgWzSKTaiK09xxc0kdMDeQ=", "vendorSha256": null, - "version": "2.23.0" + "version": "2.24.0" }, "azurerm": { "owner": "hashicorp", @@ -158,10 +158,10 @@ "owner": "DrFaust92", "provider-source-address": "registry.terraform.io/DrFaust92/bitbucket", "repo": "terraform-provider-bitbucket", - "rev": "v2.17.0", - "sha256": "sha256-nzwfhwiszzhoobq2PlgtKfCch46fLoBVbembzdnkrD4=", - "vendorSha256": "sha256-LLhnF0/tj44vN36yss1JzNvDYy64Iuk5WVRhehf0wkk=", - "version": "2.17.0" + "rev": "v2.20.0", + "sha256": "sha256-8GWxUb7ABulZ6jK9PATYfSbcyTCZ5Mqv3X3zjY3gquU=", + "vendorSha256": "sha256-h/hm5HtY3OCJ6Mtq+A3PBmH10xgYpKwjhwbDd1HtdoQ=", + "version": "2.20.0" }, "brightbox": { "owner": "brightbox", @@ -195,10 +195,10 @@ "owner": "CheckPointSW", "provider-source-address": "registry.terraform.io/CheckPointSW/checkpoint", "repo": "terraform-provider-checkpoint", - "rev": "v1.8.0", - "sha256": "sha256-+lcJr7C7FsvSzkfFwEfTrJedx6vMvOrTjNA+JTWBI4c=", - "vendorSha256": "sha256-mHLrrt6UJNfqtgjhWYDTvJcDtToHI34uoa0oyb9/XXk=", - "version": "1.8.0" + "rev": "v1.9.1", + "sha256": "sha256-5fyOw4Pu5a+kju4/RXKYZY0TBJ+6PVDwi/VjBWYCPHs=", + "vendorSha256": "sha256-LCKISUjXguV+T/rxde+++JzJZnVQisgxoUMRkeAusyQ=", + "version": "1.9.1" }, "ciscoasa": { "owner": "CiscoDevNet", @@ -222,10 +222,10 @@ "owner": "cloudflare", "provider-source-address": "registry.terraform.io/cloudflare/cloudflare", "repo": "terraform-provider-cloudflare", - "rev": "v3.16.0", - "sha256": "sha256-9MLk+M/M3U6hpAoaV6BUUZRSnTd9083nqI5tPATePw0=", - "vendorSha256": "sha256-Q9Gcq5xczrREMtFArpRpINZ4/N5pu4GdZwD4gGYTUVE=", - "version": "3.16.0" + "rev": "v3.17.0", + "sha256": "sha256-DggessI7mQgfO/s++2LQfTwodqWIps6gqUFSutle/UY=", + "vendorSha256": "sha256-2rlhl/VqvXPJxknizd28N3A+vYFXWajFLjCLH0RdnEQ=", + "version": "3.17.0" }, "cloudfoundry": { "owner": "cloudfoundry-community", @@ -304,10 +304,10 @@ "owner": "digitalocean", "provider-source-address": "registry.terraform.io/digitalocean/digitalocean", "repo": "terraform-provider-digitalocean", - "rev": "v2.20.0", - "sha256": "sha256-1RgQgxGORVvXovx4Ovm5SUsGgMD7CJjgHsgzw+bO8U4=", + "rev": "v2.21.0", + "sha256": "sha256-ei3nr3SAxQBXQikzPtRs9Y6VyOavTg9GXnLVfAI7QvU=", "vendorSha256": null, - "version": "2.20.0" + "version": "2.21.0" }, "dme": { "owner": "DNSMadeEasy", @@ -331,10 +331,10 @@ "owner": "dnsimple", "provider-source-address": "registry.terraform.io/dnsimple/dnsimple", "repo": "terraform-provider-dnsimple", - "rev": "v0.11.3", - "sha256": "sha256-fUs54xIecPgeQucuQmlpF2iHGonx4OsqFbhkMnO7d0c=", - "vendorSha256": "sha256-csooFX64RmwVV+gIejQS3HJljsRAp+bM8x/OoiF7jxs=", - "version": "0.11.3" + "rev": "v0.13.0", + "sha256": "sha256-Wt/2L4NHaQv5tV2JIjcRMH/mLyfbIk88PFYYmeVNlSQ=", + "vendorSha256": "sha256-emwD+bOkkZhh1BOQlW0dfdeD4Y68cULhC+3S7Xrjas4=", + "version": "0.13.0" }, "docker": { "owner": "kreuzwerker", @@ -349,10 +349,10 @@ "owner": "dome9", "provider-source-address": "registry.terraform.io/dome9/dome9", "repo": "terraform-provider-dome9", - "rev": "v1.25.4", - "sha256": "sha256-s/wglGsk/Lm45PWmqNHiVjj6sfQzXue+GnjEALp5yDc=", + "rev": "v1.26.0", + "sha256": "sha256-Edgtt+q1SPm/7wOIWUhe91lluXezNHfxUBu+h1NlEL4=", "vendorSha256": null, - "version": "1.25.4" + "version": "1.26.0" }, "elasticsearch": { "owner": "phillbaker", @@ -367,10 +367,10 @@ "owner": "exoscale", "provider-source-address": "registry.terraform.io/exoscale/exoscale", "repo": "terraform-provider-exoscale", - "rev": "v0.37.0", - "sha256": "sha256-Rx6T5tb5tZnUsmAOBTFryLFC/Pl06jOgHfFu0kIF7Hk=", + "rev": "v0.37.1", + "sha256": "sha256-PNm/As+N6+kB79J0lEaQM9LyybCwaRipG/eZCjTPMFY=", "vendorSha256": null, - "version": "0.37.0" + "version": "0.37.1" }, "external": { "owner": "hashicorp", @@ -394,10 +394,10 @@ "owner": "FlexibleEngineCloud", "provider-source-address": "registry.terraform.io/FlexibleEngineCloud/flexibleengine", "repo": "terraform-provider-flexibleengine", - "rev": "v1.29.0", - "sha256": "sha256-HPcJRLP20fDt3qr2edkol2jXSsWLotJkx13ZV7n7w8g=", - "vendorSha256": "sha256-De4NRWTdE4QutQkB0m0YlJg6LNysxi4bSSIxYY6lRP0=", - "version": "1.29.0" + "rev": "v1.30.0", + "sha256": "sha256-pkuoE0nX07chW4YMCHFAfLlw5qPRhuqv2S9WtFiL4pI=", + "vendorSha256": "sha256-bhufd2koz9pNHrWCBWngylqdJFD0poqvWy68GlWvDNc=", + "version": "1.30.0" }, "fortios": { "owner": "fortinetdev", @@ -440,20 +440,20 @@ "provider-source-address": "registry.terraform.io/hashicorp/google", "proxyVendor": true, "repo": "terraform-provider-google", - "rev": "v4.24.0", - "sha256": "sha256-3FnzaT8dROoSZX+JYFLu32UK6PQ272BYXkp1f9C7Z9I=", - "vendorSha256": "sha256-X75Ge7QQy5R3j6nXNMduAPPZlF+koJe6zI8l2KWwpJQ=", - "version": "4.24.0" + "rev": "v4.25.0", + "sha256": "sha256-5tgQpiWjMC+Xh5SPGrTqZVW3GDrlRKTc7K5XMHT6uRA=", + "vendorSha256": "sha256-uwyl79TGrnFOxJLBTJ5LaAZLZdb/VbS7IW4jQ2A5xQM=", + "version": "4.25.0" }, "google-beta": { "owner": "hashicorp", "provider-source-address": "registry.terraform.io/hashicorp/google-beta", "proxyVendor": true, "repo": "terraform-provider-google-beta", - "rev": "v4.24.0", - "sha256": "sha256-YgpeilvUnm2HyhRoaQJa6K1+7OSjNESn180h4urFuQo=", - "vendorSha256": "sha256-X75Ge7QQy5R3j6nXNMduAPPZlF+koJe6zI8l2KWwpJQ=", - "version": "4.24.0" + "rev": "v4.25.0", + "sha256": "sha256-vIuZNjrgLGAF8szY0b9KeB1GoIDtlVLbnE5+IUXmccg=", + "vendorSha256": "sha256-uwyl79TGrnFOxJLBTJ5LaAZLZdb/VbS7IW4jQ2A5xQM=", + "version": "4.25.0" }, "googleworkspace": { "owner": "hashicorp", @@ -495,10 +495,10 @@ "owner": "hashicorp", "provider-source-address": "registry.terraform.io/hashicorp/helm", "repo": "terraform-provider-helm", - "rev": "v2.5.1", - "sha256": "sha256-PX8mls0m/7B5WULEDVHutzvjAr0a54vg734mBbRQZNA=", + "rev": "v2.6.0", + "sha256": "sha256-OzxTPxk3lfmA13KfDGBvDd1AqCsKRw+bv7QiEo9fPQc=", "vendorSha256": null, - "version": "2.5.1" + "version": "2.6.0" }, "heroku": { "owner": "heroku", @@ -621,10 +621,10 @@ "owner": "kingsoftcloud", "provider-source-address": "registry.terraform.io/kingsoftcloud/ksyun", "repo": "terraform-provider-ksyun", - "rev": "v1.3.43", - "sha256": "sha256-HOZ1nhHLdiYy+WR2y4OsyRGReK+OJFTaWqYU0X4eEQ0=", + "rev": "v1.3.46", + "sha256": "sha256-qaRsja+pj0DgOZX9nNHSnCI2Ew18r3b5F0Ovqj3mR/Q=", "vendorSha256": "sha256-nbAEaRFtFtB4ftLgnCv3MmkjFFbcNkCuxZc+G8/ObPE=", - "version": "1.3.43" + "version": "1.3.46" }, "kubectl": { "owner": "gavinbunney", @@ -666,10 +666,10 @@ "owner": "linode", "provider-source-address": "registry.terraform.io/linode/linode", "repo": "terraform-provider-linode", - "rev": "v1.27.2", - "sha256": "sha256-Do9HOtgnSNnSUp3SSVwyzx9LPFSig/tO3GSigUrRcf4=", - "vendorSha256": "sha256-ZJQAZk4TaKT+hLM46gtV1XmBCtwuKwtoom9tPGaOWhc=", - "version": "1.27.2" + "rev": "v1.28.0", + "sha256": "sha256-FkfyyG+DcfsTQY319zmg5iiCgAW8Eu2PxWF35vd51Ng=", + "vendorSha256": "sha256-fWD1Qf6vFe/MH2K2yFufCFBcVuos7FD31ShOA9GvsWw=", + "version": "1.28.0" }, "linuxbox": { "owner": "numtide", @@ -783,10 +783,10 @@ "owner": "newrelic", "provider-source-address": "registry.terraform.io/newrelic/newrelic", "repo": "terraform-provider-newrelic", - "rev": "v2.47.0", - "sha256": "sha256-AXzf6wCQQyxQMRd6w+fiKTSCPebUtW1ZOGs3y7uNRNM=", + "rev": "v2.47.1", + "sha256": "sha256-iC4N8o+VJ5/TFGBO8O+SONMZVjHxZ+4+7ZuDDnAtZC4=", "vendorSha256": "sha256-sMH/sdrMxIw/2jzUcYL9WwVNUsn12K+gPMR68zpXYIA=", - "version": "2.47.0" + "version": "2.47.1" }, "nomad": { "owner": "hashicorp", @@ -838,10 +838,10 @@ "owner": "oracle", "provider-source-address": "registry.terraform.io/oracle/oci", "repo": "terraform-provider-oci", - "rev": "v4.79.0", - "sha256": "sha256-GFfrcRsFcSx/X5HpKkV+s2XCgt8qDGQSIdVUgVUjbXM=", + "rev": "v4.80.1", + "sha256": "sha256-suvtUABb+bLPAyMfS3btwVA4HVZofqKV1Lr/5RczBbw=", "vendorSha256": null, - "version": "4.79.0" + "version": "4.80.1" }, "okta": { "owner": "okta", @@ -883,10 +883,10 @@ "owner": "opentelekomcloud", "provider-source-address": "registry.terraform.io/opentelekomcloud/opentelekomcloud", "repo": "terraform-provider-opentelekomcloud", - "rev": "v1.29.5", - "sha256": "sha256-/76lJWy5x2XKl0RtBNKH8thHf1vyups4TVWHI/Coxd0=", - "vendorSha256": "sha256-jxtkF3VXrsfF/Dpp7mDz+3XYootoxQX3YSp9bX7j6Cg=", - "version": "1.29.5" + "rev": "v1.29.6", + "sha256": "sha256-zhYmwTJ80+w7H7DJxPjMMtLTsHCEhW9G9x5sMz5IRkM=", + "vendorSha256": "sha256-SE6ty/mLRo8nvxrPBW1cVhbxpiYDXr3cmjifF40RrmM=", + "version": "1.29.6" }, "opsgenie": { "owner": "opsgenie", @@ -901,10 +901,10 @@ "owner": "ovh", "provider-source-address": "registry.terraform.io/ovh/ovh", "repo": "terraform-provider-ovh", - "rev": "v0.18.0", - "sha256": "sha256-GTyhXAFf0GqjeYh961DyE1ujjUlll5ifGryJGzo9BEI=", + "rev": "v0.18.1", + "sha256": "sha256-DoFjm2o6U/e16jhVNtezQ82dbSh1ZfTK/YPo38tHokA=", "vendorSha256": null, - "version": "0.18.0" + "version": "0.18.1" }, "pagerduty": { "owner": "PagerDuty", @@ -919,10 +919,10 @@ "owner": "PaloAltoNetworks", "provider-source-address": "registry.terraform.io/PaloAltoNetworks/panos", "repo": "terraform-provider-panos", - "rev": "v1.10.1", - "sha256": "sha256-acxObc7cgZgyxoCQusrkUzFC68cT3WhExiw2LscKoiQ=", + "rev": "v1.10.2", + "sha256": "sha256-da3ixmkg/xYr182cnAva6DqtCD5KTC3FkFHkvmMm9jA=", "vendorSha256": null, - "version": "1.10.1" + "version": "1.10.2" }, "pass": { "owner": "camptocamp", @@ -982,10 +982,10 @@ "owner": "tenstad", "provider-source-address": "registry.terraform.io/tenstad/remote", "repo": "terraform-provider-remote", - "rev": "v0.0.25", - "sha256": "sha256-sthHyzjf/6sgI0Acw//Z4ybxy4TwNpPIi8f7MmJh0N0=", + "rev": "v0.1.0", + "sha256": "sha256-h6V2sd6j2HzIN1MVMBMqquM54fzmzHPcPfsP5t4bU1A=", "vendorSha256": "sha256-ckPs3iaFbmHbBnwRuYn9XdnGZsj+UoYK4OE/9B6Z6Kc=", - "version": "0.0.25" + "version": "0.1.0" }, "rundeck": { "owner": "rundeck", @@ -1063,10 +1063,10 @@ "owner": "Snowflake-Labs", "provider-source-address": "registry.terraform.io/Snowflake-Labs/snowflake", "repo": "terraform-provider-snowflake", - "rev": "v0.35.0", - "sha256": "sha256-RSwSyNQmHzx5cn6aiaInP4m/fCgWkL/1lMoJAib3fkA=", + "rev": "v0.36.0", + "sha256": "sha256-OrQARzrraaXvwGyv4L/IVLFxgOk+JqMQAY3pXO7GTHM=", "vendorSha256": "sha256-I0d7Nm8h7vBHxvcyTousg7Uc+QuYu8FCPabPNMw8rGM=", - "version": "0.35.0" + "version": "0.36.0" }, "sops": { "owner": "carlpett", @@ -1108,19 +1108,19 @@ "owner": "SumoLogic", "provider-source-address": "registry.terraform.io/SumoLogic/sumologic", "repo": "terraform-provider-sumologic", - "rev": "v2.16.1", - "sha256": "sha256-CLqDFqYoScQTQuaB36CupWHuF8rUn8PBV8EJ0MJuIeE=", + "rev": "v2.16.2", + "sha256": "sha256-/JQXnGpUbAIsz2zErrHe97ggGdjnWkvhYm8SHTh/xCs=", "vendorSha256": "sha256-7DGY+L41bJJrtLwdWgu2aMCefgcmtR6tmH12foi68Kc=", - "version": "2.16.1" + "version": "2.16.2" }, "tencentcloud": { "owner": "tencentcloudstack", "provider-source-address": "registry.terraform.io/tencentcloudstack/tencentcloud", "repo": "terraform-provider-tencentcloud", - "rev": "v1.73.1", - "sha256": "sha256-vMWT4Kj8ROf3iTSd1Gy/CfuiDEQUUjfRR8+nSlbhrZo=", + "rev": "v1.73.3", + "sha256": "sha256-wb1OCD0WupHUSgQJSX1don8GPmqgTqKKap/8DpDasNQ=", "vendorSha256": null, - "version": "1.73.1" + "version": "1.73.3" }, "tfe": { "owner": "hashicorp", @@ -1199,10 +1199,10 @@ "owner": "hashicorp", "provider-source-address": "registry.terraform.io/hashicorp/vault", "repo": "terraform-provider-vault", - "rev": "v3.6.0", - "sha256": "sha256-eeE6ThAz7RwePS65RZXbz+PUfm/KlE+f+nJWvLTCSmA=", - "vendorSha256": "sha256-KSGhIoUKadAuiMQkJEyYCDt7GXZ9deiV14LV4gEOpVg=", - "version": "3.6.0" + "rev": "v3.7.0", + "sha256": "sha256-n2sUc71Ymk2kI9bpQxp2TRG4hte5/xIP+NbUxBwyNaM=", + "vendorSha256": "sha256-TqhnjsK36EGpDlN4yy1jd/1KpdOT+hu4koMM3VCJEV0=", + "version": "3.7.0" }, "vcd": { "owner": "vmware", @@ -1244,10 +1244,10 @@ "owner": "vmware", "provider-source-address": "registry.terraform.io/vmware/vra7", "repo": "terraform-provider-vra7", - "rev": "v3.0.5", - "sha256": "sha256-4YhaABbuG4GhWYEiGrUvf4H/8dd7wWHY08CkTWCqgr8=", + "rev": "v3.0.6", + "sha256": "sha256-lHyrBJz6954te57uKpgrqOVztDsDUSqkHtWXnlG0QUw=", "vendorSha256": null, - "version": "3.0.5" + "version": "3.0.6" }, "vsphere": { "owner": "hashicorp", @@ -1262,10 +1262,10 @@ "owner": "vultr", "provider-source-address": "registry.terraform.io/vultr/vultr", "repo": "terraform-provider-vultr", - "rev": "v2.11.2", - "sha256": "sha256-cxNSsxAnCw7rZNljR87dN+vYvnwniN3j6VKeswIOv/g=", + "rev": "v2.11.3", + "sha256": "sha256-Dq4keHT2AWh1zfBYFj6ig2BfU3u4amsp7IB/5Szo/38=", "vendorSha256": null, - "version": "2.11.2" + "version": "2.11.3" }, "wavefront": { "owner": "vmware", From 33163bd0ef1a2c3338c9f55471609d8b93f806fc Mon Sep 17 00:00:00 2001 From: David Reiss Date: Sat, 18 Jun 2022 18:33:28 -0700 Subject: [PATCH 297/336] nixos/pipewire: fix wireplumber with system-wide --- .../services/desktops/pipewire/wireplumber.nix | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/nixos/modules/services/desktops/pipewire/wireplumber.nix b/nixos/modules/services/desktops/pipewire/wireplumber.nix index 1dbdd842c4a1..439a3ae68daa 100644 --- a/nixos/modules/services/desktops/pipewire/wireplumber.nix +++ b/nixos/modules/services/desktops/pipewire/wireplumber.nix @@ -37,11 +37,19 @@ in environment.systemPackages = [ cfg.package ]; environment.etc."wireplumber/main.lua.d/80-nixos.lua" = lib.mkIf (!pwUsedForAudio) { - text = '' + text = '' -- Pipewire is not used for audio, so prevent it from grabbing audio devices alsa_monitor.enable = function() end ''; }; + environment.etc."wireplumber/main.lua.d/80-systemwide.lua" = lib.mkIf config.services.pipewire.systemWide { + text = '' + -- When running system-wide, these settings need to be disabled (they + -- use functions that aren't available on the system dbus). + alsa_monitor.properties["alsa.reserve"] = false + default_access.properties["enable-flatpak-portal"] = false + ''; + }; systemd.packages = [ cfg.package ]; @@ -50,5 +58,10 @@ in systemd.services.wireplumber.wantedBy = [ "pipewire.service" ]; systemd.user.services.wireplumber.wantedBy = [ "pipewire.service" ]; + + systemd.services.wireplumber.environment = lib.mkIf config.services.pipewire.systemWide { + # Force wireplumber to use system dbus. + DBUS_SESSION_BUS_ADDRESS = "unix:path=/run/dbus/system_bus_socket"; + }; }; } From 8e4b3323d1a6ae7911ae29bd319cd75f1d41b8aa Mon Sep 17 00:00:00 2001 From: Ben Wolsieffer Date: Fri, 17 Jun 2022 21:29:29 -0400 Subject: [PATCH 298/336] nixos/device-tree: use new overlay syntax in example Since dtc 1.4.7 (released in 2018), there has been a much nicer syntax for device tree overlays. This commit converts the dtsText example to use this syntax. --- nixos/modules/hardware/device-tree.nix | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/nixos/modules/hardware/device-tree.nix b/nixos/modules/hardware/device-tree.nix index be67116ad507..682b4bc0d757 100644 --- a/nixos/modules/hardware/device-tree.nix +++ b/nixos/modules/hardware/device-tree.nix @@ -36,14 +36,11 @@ let /plugin/; / { compatible = "raspberrypi"; - fragment@0 { - target-path = "/soc"; - __overlay__ { - pps { - compatible = "pps-gpio"; - status = "okay"; - }; - }; + }; + &{/soc} { + pps { + compatible = "pps-gpio"; + status = "okay"; }; }; ''; From 754005bf485d31384e1905a9af1ad2293a64be20 Mon Sep 17 00:00:00 2001 From: Ben Wolsieffer Date: Fri, 17 Jun 2022 21:44:01 -0400 Subject: [PATCH 299/336] nixos/device-tree: preprocess overlays before compiling Run the device tree overlays through the preprocessor before compiling it, as is done in the kernel. This helps make overlays easier to understand, and improves compatibility with those found in the wild. I found the correct command line by running the kernel build with V=1, and then removing all the arguments related to dependency tracking. --- nixos/modules/hardware/device-tree.nix | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/nixos/modules/hardware/device-tree.nix b/nixos/modules/hardware/device-tree.nix index 682b4bc0d757..5a8a8e27bee1 100644 --- a/nixos/modules/hardware/device-tree.nix +++ b/nixos/modules/hardware/device-tree.nix @@ -85,13 +85,14 @@ let # Compile single Device Tree overlay source # file (.dts) into its compiled variant (.dtbo) - compileDTS = name: f: pkgs.callPackage({ dtc }: pkgs.stdenv.mkDerivation { + compileDTS = name: f: pkgs.callPackage({ stdenv, dtc }: stdenv.mkDerivation { name = "${name}-dtbo"; nativeBuildInputs = [ dtc ]; buildCommand = '' - dtc -I dts ${f} -O dtb -@ -o $out + $CC -E -nostdinc -I${getDev cfg.kernelPackage}/lib/modules/${cfg.kernelPackage.modDirVersion}/source/scripts/dtc/include-prefixes -undef -D__DTS__ -x assembler-with-cpp ${f} | \ + dtc -I dts -O dtb -@ -o $out ''; }) {}; From c164921d8935731eb1588eef665392c1261f0dc1 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Sun, 19 Jun 2022 02:57:10 +0000 Subject: [PATCH 300/336] python310Packages.types-redis: 4.2.7 -> 4.2.8 --- pkgs/development/python-modules/types-redis/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/types-redis/default.nix b/pkgs/development/python-modules/types-redis/default.nix index a0070b4d16c7..735398d57ab2 100644 --- a/pkgs/development/python-modules/types-redis/default.nix +++ b/pkgs/development/python-modules/types-redis/default.nix @@ -5,12 +5,12 @@ buildPythonPackage rec { pname = "types-redis"; - version = "4.2.7"; + version = "4.2.8"; format = "setuptools"; src = fetchPypi { inherit pname version; - sha256 = "sha256-7s5XPo39USOPrh34TTYCM1+8vTuosGQIHMD/jsHwWKE="; + sha256 = "sha256-L+NNQLx4UduHUs2mIQxKi+zRuv2a213xieEVg3cL+aA="; }; # Module doesn't have tests From fe50514741341007e4f0f2a6699463f95e4284e3 Mon Sep 17 00:00:00 2001 From: Aaron Jheng Date: Wed, 1 Jun 2022 12:09:04 +0000 Subject: [PATCH 301/336] mongodb-tools: use buildGoModule --- pkgs/tools/misc/mongodb-tools/default.nix | 62 ++++++++++------------- 1 file changed, 27 insertions(+), 35 deletions(-) diff --git a/pkgs/tools/misc/mongodb-tools/default.nix b/pkgs/tools/misc/mongodb-tools/default.nix index 4ede64b83aa1..45e9a08a356f 100644 --- a/pkgs/tools/misc/mongodb-tools/default.nix +++ b/pkgs/tools/misc/mongodb-tools/default.nix @@ -1,58 +1,50 @@ -{ lib -, buildGoPackage -, fetchFromGitHub -, openssl -, pkg-config -, libpcap -}: +{ lib, buildGoModule, fetchFromGitHub, openssl, pkg-config, libpcap }: -let - tools = [ - "bsondump" - "mongoimport" - "mongoexport" - "mongodump" - "mongorestore" - "mongostat" - "mongofiles" - "mongotop" - ]; +buildGoModule rec { + pname = "mongo-tools"; version = "100.5.3"; -in buildGoPackage { - pname = "mongo-tools"; - inherit version; - - goPackagePath = "github.com/mongodb/mongo-tools"; - subPackages = tools; - src = fetchFromGitHub { - rev = version; owner = "mongodb"; repo = "mongo-tools"; + rev = version; sha256 = "sha256-8RkpBCFVxKVsu4h2z+rhlwvYfbSDHZUg8erO4+2GRbw="; }; + vendorSha256 = null; + nativeBuildInputs = [ pkg-config ]; buildInputs = [ openssl libpcap ]; # Mongodb incorrectly names all of their binaries main # Let's work around this with our own installer - buildPhase = '' - # move vendored codes so nixpkgs go builder could find it - runHook preBuild + buildPhase = + let + tools = [ + "bsondump" + "mongodump" + "mongoexport" + "mongofiles" + "mongoimport" + "mongorestore" + "mongostat" + "mongotop" + ]; in + '' + # move vendored codes so nixpkgs go builder could find it + runHook preBuild - ${lib.concatMapStrings (t: '' - go build -o "$out/bin/${t}" -tags ssl -ldflags "-s -w" $goPackagePath/${t}/main - '') tools} + ${lib.concatMapStrings (t: '' + go build -o "$out/bin/${t}" -tags ssl -ldflags "-s -w" ./${t}/main + '') tools} - runHook postBuild - ''; + runHook postBuild + ''; meta = { homepage = "https://github.com/mongodb/mongo-tools"; description = "Tools for the MongoDB"; - maintainers = with lib.maintainers; [ bryanasdev000 ]; license = lib.licenses.asl20; + maintainers = with lib.maintainers; [ bryanasdev000 ]; }; } From 9cf7759f910074dcebfb4542ad6adc669445d2b0 Mon Sep 17 00:00:00 2001 From: Lein Matsumaru Date: Mon, 9 Aug 2021 06:03:42 +0000 Subject: [PATCH 302/336] sherlock: init at 0.14.0 --- pkgs/tools/security/sherlock/default.nix | 56 ++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 + 2 files changed, 58 insertions(+) create mode 100644 pkgs/tools/security/sherlock/default.nix diff --git a/pkgs/tools/security/sherlock/default.nix b/pkgs/tools/security/sherlock/default.nix new file mode 100644 index 000000000000..7d402fd8f3f0 --- /dev/null +++ b/pkgs/tools/security/sherlock/default.nix @@ -0,0 +1,56 @@ +{ stdenv, lib, fetchFromGitHub, python3, makeWrapper }: +let + pyenv = python3.withPackages (pp: with pp; [ + beautifulsoup4 + certifi + colorama + lxml + pysocks + requests + requests-futures + soupsieve + stem + torrequest + ]); +in +stdenv.mkDerivation rec { + pname = "sherlock"; + version = "0.14.0"; + + src = fetchFromGitHub { + owner = "sherlock-project"; + repo = pname; + rev = "f8566960d461783558b7bcba5c818d9275de492a"; + sha256 = "sha256-6jG/SmsiEL63EcBrx2fcQDYbmMCA+A7Jsc3E4f5NGts="; + }; + + nativeBuildInputs = [ makeWrapper ]; + + postPatch = '' + substituteInPlace sherlock/sherlock.py \ + --replace "os.path.dirname(__file__)" "\"$out/share\"" + ''; + + installPhase = '' + runHook preInstall + mkdir -p $out/bin $out/share + cp ./sherlock/*.py $out/bin/ + cp --recursive ./sherlock/resources/ $out/share + makeWrapper ${pyenv.interpreter} $out/bin/sherlock --add-flags "$out/bin/sherlock.py" + runHook postInstall + ''; + + checkPhase = '' + runHook preCheck + cd $srcRoot/sherlock + ${pyenv.interpreter} -m unittest tests.all.SherlockSiteCoverageTests --verbose + runHook postCheck + ''; + + meta = with lib; { + homepage = "https://sherlock-project.github.io/"; + description = "Hunt down social media accounts by username across social networks"; + license = licenses.mit; + maintainers = with maintainers; [ applePrincess ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 5f605f09da90..3f6ad1e4ed27 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -26553,6 +26553,8 @@ with pkgs; gjay = callPackage ../applications/audio/gjay { }; + sherlock = callPackage ../tools/security/sherlock { }; + rhythmbox = callPackage ../applications/audio/rhythmbox { }; puddletag = libsForQt5.callPackage ../applications/audio/puddletag { }; From b21933faab008b01e010e453ff738f5e56befd9f Mon Sep 17 00:00:00 2001 From: Adam Joseph Date: Sat, 9 Apr 2022 18:35:50 -0700 Subject: [PATCH 303/336] cpython: have powerpc64le use "ppc64le" to follow PEP600 The PEP600 standard gives Python's naming scheme for various architectures; it follows the convention which was in use by Fedora in 2014. According to PEP600, the architecture name for Power PC is `ppc64le`, not `powerpc64le`. This is also how python3 declares its "supported wheels" under Debian on PowerPC, as checked with `pip debug --verbose` $ pip debug --verbose | grep powerpc $ pip debug --verbose | grep ppc | head cp39-cp39-manylinux_2_31_ppc64le cp39-cp39-manylinux_2_30_ppc64le cp39-cp39-manylinux_2_29_ppc64le cp39-cp39-manylinux_2_28_ppc64le cp39-cp39-manylinux_2_27_ppc64le cp39-cp39-manylinux_2_26_ppc64le cp39-cp39-manylinux_2_25_ppc64le cp39-cp39-manylinux_2_24_ppc64le cp39-cp39-manylinux_2_23_ppc64le Let's adjust the `pythonHostPlatform` expression in cpython/default.nix to pass the architecture using the naming scheme Python expects. Verified on a Raptor Computing Systems Talos II. Without this commit, PyQt5 fails to build, failing with "unsupported wheel". With this commit, it builds successfully. --- .../interpreters/python/cpython/default.nix | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/pkgs/development/interpreters/python/cpython/default.nix b/pkgs/development/interpreters/python/cpython/default.nix index 009d0f45f97e..a52935c69dfd 100644 --- a/pkgs/development/interpreters/python/cpython/default.nix +++ b/pkgs/development/interpreters/python/cpython/default.nix @@ -144,7 +144,19 @@ let # The configure script uses "arm" as the CPU name for all 32-bit ARM # variants when cross-compiling, but native builds include the version # suffix, so we do the same. - pythonHostPlatform = "${parsed.kernel.name}-${parsed.cpu.name}"; + pythonHostPlatform = let + cpu = { + # According to PEP600, Python's name for the Power PC + # architecture is "ppc", not "powerpc". Without the Rosetta + # Stone below, the PEP600 requirement that "${ARCH} matches + # the return value from distutils.util.get_platform()" fails. + # https://peps.python.org/pep-0600/ + powerpc = "ppc"; + powerpcle = "ppcle"; + powerpc64 = "ppc64"; + powerpc64le = "ppc64le"; + }.${parsed.cpu.name} or parsed.cpu.name; + in "${parsed.kernel.name}-${cpu}"; # https://github.com/python/cpython/blob/e488e300f5c01289c10906c2e53a8e43d6de32d8/configure.ac#L724 multiarchCpu = From 2f002a966778cdec8b51e0e6aa3c699c21bdad42 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20=C4=8Cun=C3=A1t?= Date: Sun, 19 Jun 2022 08:54:21 +0200 Subject: [PATCH 304/336] Revert "graalvmXX-ce: use a patched version of zlib" --- .../compilers/graalvm/community-edition/default.nix | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/pkgs/development/compilers/graalvm/community-edition/default.nix b/pkgs/development/compilers/graalvm/community-edition/default.nix index 724800898ace..6badaa3b4c8a 100644 --- a/pkgs/development/compilers/graalvm/community-edition/default.nix +++ b/pkgs/development/compilers/graalvm/community-edition/default.nix @@ -1,4 +1,4 @@ -{ callPackage, fetchpatch, zlib, Foundation }: +{ callPackage, Foundation }: /* Add new graal versions and products here and then see update.nix on how to generate the sources. @@ -7,15 +7,6 @@ let mkGraal = opts: callPackage (import ./mkGraal.nix opts) { inherit Foundation; - # remove this once zlib 1.2.13 is released - zlib = zlib.overrideAttrs (oldAttrs: { - patches = (oldAttrs.patches or [ ]) ++ [ - (fetchpatch { - url = "https://github.com/madler/zlib/commit/ec3df00224d4b396e2ac6586ab5d25f673caa4c2.patch"; - sha256 = "sha256-jSa3OCigBdpWFDllCWC2rgE9GxCNR0yjsc+bpwPDBEA="; - }) - ]; - }); }; /* From c192dd305200cba292f7590a27c21ac10f02f948 Mon Sep 17 00:00:00 2001 From: Florian Brandes Date: Sun, 19 Jun 2022 10:09:41 +0200 Subject: [PATCH 305/336] python3Packages.deal-solver: 0.1.0 -> 0.1.1 upstream fixed failing tests Signed-off-by: Florian Brandes --- .../python-modules/deal-solver/default.nix | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/pkgs/development/python-modules/deal-solver/default.nix b/pkgs/development/python-modules/deal-solver/default.nix index d3101f73e540..cba2cf89d173 100644 --- a/pkgs/development/python-modules/deal-solver/default.nix +++ b/pkgs/development/python-modules/deal-solver/default.nix @@ -11,7 +11,7 @@ buildPythonPackage rec { pname = "deal-solver"; - version = "0.1.0"; + version = "0.1.1"; format = "pyproject"; disabled = pythonOlder "3.6"; @@ -19,7 +19,7 @@ buildPythonPackage rec { owner = "life4"; repo = pname; rev = "refs/tags/${version}"; - hash = "sha256-eSSyLBwPc0rrfew91nLBagYDD6aJRyx0cE9YTTSODI8="; + hash = "sha256-LXBAWbm8fT/jYNbzB95YeBL9fEknMNJvkTRMbc+nf6c="; }; nativeBuildInputs = [ @@ -47,16 +47,6 @@ buildPythonPackage rec { hypothesis ]; - disabledTests = [ - # z3 assertion error - "test_expr_asserts_ok" - ]; - - disabledTestPaths = [ - # regex matching seems flaky on tests - "tests/test_stdlib/test_re.py" - ]; - pythonImportsCheck = [ "deal_solver" ]; meta = with lib; { From a62e864c810e91182b7c7bc2aecdfcda9e3858c5 Mon Sep 17 00:00:00 2001 From: Maximilian Bosch Date: Sun, 19 Jun 2022 10:30:17 +0200 Subject: [PATCH 306/336] strace: 5.17 -> 5.18 ChangeLog: https://github.com/strace/strace/releases/tag/v5.18 --- pkgs/development/tools/misc/strace/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/tools/misc/strace/default.nix b/pkgs/development/tools/misc/strace/default.nix index 1fd8db8c6e2e..bee5d227f4d6 100644 --- a/pkgs/development/tools/misc/strace/default.nix +++ b/pkgs/development/tools/misc/strace/default.nix @@ -2,11 +2,11 @@ stdenv.mkDerivation rec { pname = "strace"; - version = "5.17"; + version = "5.18"; src = fetchurl { url = "https://strace.io/files/${version}/${pname}-${version}.tar.xz"; - sha256 = "sha256-X7KY29EzH9HhvJTFwyOVhg03YQG4fGzT0bqfmqFcFh8="; + sha256 = "sha256-YCk+p5rJJT1gDNyb4HetKYjKIihKQ5yeZr5RUNs9EYc="; }; depsBuildBuild = [ buildPackages.stdenv.cc ]; From d63ba51d588d406175c73e1084645c4145969b1f Mon Sep 17 00:00:00 2001 From: Florian Brandes Date: Sun, 19 Jun 2022 10:30:39 +0200 Subject: [PATCH 307/336] python3Packages.httpagentparser: 1.9.2 -> 1.9.3 Signed-off-by: Florian Brandes --- pkgs/development/python-modules/httpagentparser/default.nix | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/httpagentparser/default.nix b/pkgs/development/python-modules/httpagentparser/default.nix index 44c521ff3304..fae412075bc1 100644 --- a/pkgs/development/python-modules/httpagentparser/default.nix +++ b/pkgs/development/python-modules/httpagentparser/default.nix @@ -5,11 +5,12 @@ buildPythonPackage rec { pname = "httpagentparser"; - version = "1.9.2"; + version = "1.9.3"; + # Github version does not have any release tags src = fetchPypi { inherit pname version; - sha256 = "a190dfdc5e63b2f1c87729424b19cbc49263d6a1fb585a16ac1c9d9ce127a4bf"; + sha256 = "1x20j4gyx4vfsxs3bx8qcbdhq7n34gjr8gd01qlri96wpmn4c3rp"; }; # PyPi version does not include test directory From 3e1b42d9e7b62343afd2ccbcdcf406ba6a0ef497 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Sun, 19 Jun 2022 08:55:53 +0000 Subject: [PATCH 308/336] python310Packages.aiomusiccast: 0.14.3 -> 0.14.4 --- pkgs/development/python-modules/aiomusiccast/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/development/python-modules/aiomusiccast/default.nix b/pkgs/development/python-modules/aiomusiccast/default.nix index 02d7f565c3c1..1ca2cdcb519b 100644 --- a/pkgs/development/python-modules/aiomusiccast/default.nix +++ b/pkgs/development/python-modules/aiomusiccast/default.nix @@ -8,7 +8,7 @@ buildPythonPackage rec { pname = "aiomusiccast"; - version = "0.14.3"; + version = "0.14.4"; format = "pyproject"; disabled = pythonOlder "3.8"; @@ -16,8 +16,8 @@ buildPythonPackage rec { src = fetchFromGitHub { owner = "vigonotion"; repo = "aiomusiccast"; - rev = version; - hash = "sha256-ELdNxeU9dajWr4VeOyuvNrSi7B+ImVJM/BlZsw3tcKE="; + rev = "refs/tags/${version}"; + hash = "sha256-vSf4Fcioz+ZrXCaFQQbHzhz7vOknCOEFJXduXJlO/wE="; }; postPatch = '' From 4462f3dc537e285261b496103581599ee59f3e9b Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Sun, 19 Jun 2022 09:20:01 +0000 Subject: [PATCH 309/336] python310Packages.ansible-lint: 6.2.2 -> 6.3.0 --- pkgs/development/python-modules/ansible-lint/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/ansible-lint/default.nix b/pkgs/development/python-modules/ansible-lint/default.nix index 9178cab6421a..a3867db819f4 100644 --- a/pkgs/development/python-modules/ansible-lint/default.nix +++ b/pkgs/development/python-modules/ansible-lint/default.nix @@ -20,13 +20,13 @@ buildPythonPackage rec { pname = "ansible-lint"; - version = "6.2.2"; + version = "6.3.0"; format = "pyproject"; disabled = pythonOlder "3.6"; src = fetchPypi { inherit pname version; - sha256 = "sha256-uOKVb+3pC9KBUOl/IJqK94fGAB9YS7ZhMRKhzhrqMR0="; + sha256 = "sha256-9X9SCuXYEM4GIVfcfWM5kK0vvsgbu7NMzEzjoMIfzTg="; }; postPatch = '' From e85af7341a210f7cc301daa40d92c6ec98badb0f Mon Sep 17 00:00:00 2001 From: Phillip Cloud <417981+cpcloud@users.noreply.github.com> Date: Sun, 19 Jun 2022 04:23:38 -0500 Subject: [PATCH 310/336] pulumi-bin: 3.31.0 -> 3.34.1 (#178006) --- pkgs/tools/admin/pulumi/data.nix | 434 +++++++++--------- .../admin/pulumi/update-pulumi-shell.nix | 1 - pkgs/tools/admin/pulumi/update.sh | 5 +- 3 files changed, 218 insertions(+), 222 deletions(-) diff --git a/pkgs/tools/admin/pulumi/data.nix b/pkgs/tools/admin/pulumi/data.nix index 29f9cbe0f3fc..69b1c584313b 100644 --- a/pkgs/tools/admin/pulumi/data.nix +++ b/pkgs/tools/admin/pulumi/data.nix @@ -1,64 +1,64 @@ # DO NOT EDIT! This file is generated automatically by update.sh { }: { - version = "3.31.0"; + version = "3.34.1"; pulumiPkgs = { x86_64-linux = [ { - url = "https://get.pulumi.com/releases/sdk/pulumi-v3.31.0-linux-x64.tar.gz"; - sha256 = "195jqrgax3sy9bz9i36d60x5y3j47bp43453yhs2zdcllh29jfn2"; + url = "https://get.pulumi.com/releases/sdk/pulumi-v3.34.1-linux-x64.tar.gz"; + sha256 = "04gavrv62m32nbw34mifm4vjwdrwwicnvhsln27m7jv0b67w5zpi"; } { - url = "https://api.pulumi.com/releases/plugins/pulumi-resource-aiven-v4.5.1-linux-amd64.tar.gz"; - sha256 = "10vn054iia68rn37ibrri150k795hr3vdvwgsxdkr2qyp8rna6mx"; + url = "https://api.pulumi.com/releases/plugins/pulumi-resource-aiven-v4.5.2-linux-amd64.tar.gz"; + sha256 = "18hkna4vr1m6gh93952wzz3nlal8q39m0gzc9fmy8lgaw3h7n2y7"; } { url = "https://api.pulumi.com/releases/plugins/pulumi-resource-akamai-v2.9.0-linux-amd64.tar.gz"; sha256 = "1xsrskiw91izjvj1xqfhaf4728vl28wcq4dsinh232g7gfm862r3"; } { - url = "https://api.pulumi.com/releases/plugins/pulumi-resource-alicloud-v3.19.0-linux-amd64.tar.gz"; - sha256 = "16vg56vyxqid566nzdvcnx0fm70nif31wr71mrx1n6ibk767l00i"; + url = "https://api.pulumi.com/releases/plugins/pulumi-resource-alicloud-v3.21.0-linux-amd64.tar.gz"; + sha256 = "10cj7d0lf8jj3wmz7l67s8ibs3znw2b07vr6k3yj3xg42dd5a4fr"; } { - url = "https://api.pulumi.com/releases/plugins/pulumi-resource-artifactory-v2.0.0-linux-amd64.tar.gz"; - sha256 = "1nfga7mqrb62vf96cfrwdwc41a82fm1xmjby01l3074y6nzb45mg"; + url = "https://api.pulumi.com/releases/plugins/pulumi-resource-artifactory-v2.3.2-linux-amd64.tar.gz"; + sha256 = "05a9vf1g9nnvwmsm6y5rn0b0asjb253b7mph137g08m12ajm2fxv"; } { - url = "https://api.pulumi.com/releases/plugins/pulumi-resource-auth0-v2.8.0-linux-amd64.tar.gz"; - sha256 = "1x1fvnxhnhhv9fhqp4syhqcybjqpa2rq8d9nb8yvm9rxgcjllr0n"; + url = "https://api.pulumi.com/releases/plugins/pulumi-resource-auth0-v2.9.0-linux-amd64.tar.gz"; + sha256 = "01sgghfnd6wgvx2h4i69asbjshscbw9g4yl15ar5w178dp17p44n"; } { - url = "https://api.pulumi.com/releases/plugins/pulumi-resource-aws-v5.3.0-linux-amd64.tar.gz"; - sha256 = "0srdq0blsm5p10kxds64ybh0pmy7n6v4sdd2s0555gc6w9l1ir40"; + url = "https://api.pulumi.com/releases/plugins/pulumi-resource-aws-v5.8.0-linux-amd64.tar.gz"; + sha256 = "0448vga6w9073lnsjj3d02cbxnb9rsfz0vhr6fzkznkxpg51lw3w"; } { - url = "https://api.pulumi.com/releases/plugins/pulumi-resource-azure-v5.3.0-linux-amd64.tar.gz"; - sha256 = "1mla2lc639w5shlih3nsf6hp696h7n592bwbhn9hl3xlpxvmwhdz"; - } - { - url = "https://api.pulumi.com/releases/plugins/pulumi-resource-azuread-v5.21.0-linux-amd64.tar.gz"; - sha256 = "06sp11azls8agqcrww3pgk19232ngbd19v9czp55321xpmgs0d6h"; + url = "https://api.pulumi.com/releases/plugins/pulumi-resource-azuread-v5.24.0-linux-amd64.tar.gz"; + sha256 = "06x03vbdgg93lzmyf5cjzjmhb2nk724ml28h2bj230iip64gqj9x"; } { url = "https://api.pulumi.com/releases/plugins/pulumi-resource-azuredevops-v2.4.0-linux-amd64.tar.gz"; sha256 = "1z8f287mm2mqfa76021fp5a1bj9045iwxcy8xs1ygh48b1890j49"; } { - url = "https://api.pulumi.com/releases/plugins/pulumi-resource-cloudflare-v4.6.0-linux-amd64.tar.gz"; - sha256 = "0hbrjydkw32xfks636pcfh00w0crn9ivhk0nw0a62812gvdafm9f"; + url = "https://api.pulumi.com/releases/plugins/pulumi-resource-azure-v5.10.0-linux-amd64.tar.gz"; + sha256 = "1v4cpdl97mgcq0s7lbdl8hncxrbx5pqscawjjywh4qnvq1qzrzb2"; + } + { + url = "https://api.pulumi.com/releases/plugins/pulumi-resource-cloudflare-v4.7.0-linux-amd64.tar.gz"; + sha256 = "1g2qzmbzb7bs2shzxnhkml1hxrbryyms3zviziqv787dn0p85p08"; } { url = "https://api.pulumi.com/releases/plugins/pulumi-resource-consul-v3.6.0-linux-amd64.tar.gz"; sha256 = "0a5nav53dg3j4rrx7747a7bk90krfg9fxj0kw0wahcnjijbv1255"; } { - url = "https://api.pulumi.com/releases/plugins/pulumi-resource-datadog-v4.8.0-linux-amd64.tar.gz"; - sha256 = "0hy6j7n1jdqxmd6wq5lab1f31zzb3pkvali882fsgjvjw9clbk6a"; + url = "https://api.pulumi.com/releases/plugins/pulumi-resource-datadog-v4.9.0-linux-amd64.tar.gz"; + sha256 = "1gypzjjdadw4cpzxz77h06l2fjq9arddh22m1ibp9bwy8ql9k0kq"; } { - url = "https://api.pulumi.com/releases/plugins/pulumi-resource-digitalocean-v4.12.0-linux-amd64.tar.gz"; - sha256 = "10v7rsd0k0zbkk4i0drhnv8c2wkjahgzy6niai00sk3kcd0c5p92"; + url = "https://api.pulumi.com/releases/plugins/pulumi-resource-digitalocean-v4.13.0-linux-amd64.tar.gz"; + sha256 = "041gi7yhgmksxnvx3v0w7nsnf8zkj3zx916kkiv0jijmdszvs1rj"; } { url = "https://api.pulumi.com/releases/plugins/pulumi-resource-docker-v3.2.0-linux-amd64.tar.gz"; @@ -69,40 +69,40 @@ sha256 = "0hnardid0kbzy65dmn7vz8ddy5hq78nf2871zz6srf2hfyiv7qa4"; } { - url = "https://api.pulumi.com/releases/plugins/pulumi-resource-fastly-v4.0.1-linux-amd64.tar.gz"; - sha256 = "0n1xqsfsqi773lwg9xbvglrd4pfb060fq8llxf06qj8h2imlxx34"; + url = "https://api.pulumi.com/releases/plugins/pulumi-resource-fastly-v4.0.4-linux-amd64.tar.gz"; + sha256 = "0qi0gz3dylmcm4wj5ld79ris9lvq00fx54vds36q8wwikawyil00"; } { - url = "https://api.pulumi.com/releases/plugins/pulumi-resource-gcp-v6.21.0-linux-amd64.tar.gz"; - sha256 = "18m3c22lgh1byj3va8mxv8dk6ivaphmf4azqz8ndvva7jmiqayyb"; + url = "https://api.pulumi.com/releases/plugins/pulumi-resource-gcp-v6.27.0-linux-amd64.tar.gz"; + sha256 = "10pl9cx6nh4384sq9ssv1vd98k91cnlqwlx15h2rjsh5nn0c3yjk"; } { - url = "https://api.pulumi.com/releases/plugins/pulumi-resource-github-v4.11.0-linux-amd64.tar.gz"; - sha256 = "0m6rz6mljdz5w921gzmr3b20g6fpdhd1n9y8cplhdgpg1jvg1405"; + url = "https://api.pulumi.com/releases/plugins/pulumi-resource-github-v4.12.0-linux-amd64.tar.gz"; + sha256 = "0p770idxdxn4nydgf1q56m0lf3x9fz66m2pydp09ba07kqnk9xvn"; } { url = "https://api.pulumi.com/releases/plugins/pulumi-resource-gitlab-v4.7.0-linux-amd64.tar.gz"; sha256 = "17v460kbghvrvhxgckzg2bq556amy5hwmks4m1idkcz8akh6vlni"; } { - url = "https://api.pulumi.com/releases/plugins/pulumi-resource-google-native-v0.18.1-linux-amd64.tar.gz"; - sha256 = "010jm1x4id53wx8jwabqglyvkv73j8bnhksk5jcg20wbf1864hli"; + url = "https://api.pulumi.com/releases/plugins/pulumi-resource-google-native-v0.20.0-linux-amd64.tar.gz"; + sha256 = "0lbda2cdbn5jhivydxh8fgwxjnmdr8hskdh3hm1ss095kq56b8i9"; } { url = "https://api.pulumi.com/releases/plugins/pulumi-resource-hcloud-v1.8.0-linux-amd64.tar.gz"; sha256 = "1gfiiwgb51ylwns3mqgnbgm2knrdzvy9r9v23yx0z03ba189d3m9"; } { - url = "https://api.pulumi.com/releases/plugins/pulumi-resource-kubernetes-v3.18.3-linux-amd64.tar.gz"; - sha256 = "1bs8bdkaa6qrrzddppar7yzcn3ml9rfvdmd72fcgvz1hw5vp7gzn"; + url = "https://api.pulumi.com/releases/plugins/pulumi-resource-kubernetes-v3.19.3-linux-amd64.tar.gz"; + sha256 = "087k66789jrd26mygfbg25z4qrkfkp95240jsk2mrrzmmnyp8h4h"; } { - url = "https://api.pulumi.com/releases/plugins/pulumi-resource-linode-v3.7.1-linux-amd64.tar.gz"; - sha256 = "0nrpxd2hnpd3r17938vjkx36fs7bgli4gmzbz5lz27666zzizhmz"; + url = "https://api.pulumi.com/releases/plugins/pulumi-resource-linode-v3.8.0-linux-amd64.tar.gz"; + sha256 = "0c7zvk5l1v789hj2xnqkbjmd4a10xwq7hnw8why7dbbmlwqypvnb"; } { - url = "https://api.pulumi.com/releases/plugins/pulumi-resource-mailgun-v3.3.0-linux-amd64.tar.gz"; - sha256 = "0nri27c71kf3pjivd0w9ymkl4rn39flh5n2rphi4gn6v4kfb1192"; + url = "https://api.pulumi.com/releases/plugins/pulumi-resource-mailgun-v3.4.0-linux-amd64.tar.gz"; + sha256 = "01lvr1zzm0xl5larfz44wfxssi2k5kh6mn8mpif89vj0s3z0zxyq"; } { url = "https://api.pulumi.com/releases/plugins/pulumi-resource-mysql-v3.1.0-linux-amd64.tar.gz"; @@ -113,36 +113,36 @@ sha256 = "111q7jxkjni1091m3kp9c2n1zqlkiy7lrfsrqk4bzpcf67krk9vj"; } { - url = "https://api.pulumi.com/releases/plugins/pulumi-resource-postgresql-v3.4.0-linux-amd64.tar.gz"; - sha256 = "156wmbxm8c15lzqj2mx4mm14p569skfddfbq9rjyjlvxljklx2fd"; + url = "https://api.pulumi.com/releases/plugins/pulumi-resource-postgresql-v3.5.0-linux-amd64.tar.gz"; + sha256 = "08wyx9j5q9pn1jya849wg35v2d7kagzj77h8qr94j8w7agf6ds2a"; } { - url = "https://api.pulumi.com/releases/plugins/pulumi-resource-random-v4.5.0-linux-amd64.tar.gz"; - sha256 = "0fs68z18lmhl46dl45fnavhycysfbfkparvq9irhcc679icwn5id"; + url = "https://api.pulumi.com/releases/plugins/pulumi-resource-random-v4.8.0-linux-amd64.tar.gz"; + sha256 = "0h3a9nywj0a3ib425274nf19xb9bmk012w1kjv240hnhcnrgg1kp"; } { - url = "https://api.pulumi.com/releases/plugins/pulumi-resource-snowflake-v0.7.0-linux-amd64.tar.gz"; - sha256 = "1jx9ngzk3k8ab5s1ms2j8k7sb2zfcxkwhjj7zwvdna5x2lxrvq20"; + url = "https://api.pulumi.com/releases/plugins/pulumi-resource-snowflake-v0.9.0-linux-amd64.tar.gz"; + sha256 = "0gcay22abws4nxk8lpk0asw67y3immw2669y2hs9mfbqinvj58cv"; } { - url = "https://api.pulumi.com/releases/plugins/pulumi-resource-spotinst-v3.17.0-linux-amd64.tar.gz"; - sha256 = "1abgvb6bqdpy4rh94rq94bjcvz7ksd0f4ywzwxh02f7qv9lacsx9"; + url = "https://api.pulumi.com/releases/plugins/pulumi-resource-spotinst-v3.20.0-linux-amd64.tar.gz"; + sha256 = "1pn1q398y50rw2r306pfqqsv8wvplz7a1z8hf8x2g1z2bfcip0nd"; } { - url = "https://api.pulumi.com/releases/plugins/pulumi-resource-sumologic-v0.6.0-linux-amd64.tar.gz"; - sha256 = "014aqs91gyzsi413v6f6npnmx72yflhxc6ybxngybkphc6hzx5y2"; + url = "https://api.pulumi.com/releases/plugins/pulumi-resource-sumologic-v0.7.1-linux-amd64.tar.gz"; + sha256 = "0p1vh1hp90niqdr3scmh4pwb177lv6d3nqp6apcjabsg5w5nmim9"; } { - url = "https://api.pulumi.com/releases/plugins/pulumi-resource-tailscale-v0.7.1-linux-amd64.tar.gz"; - sha256 = "0yhsidz5mi6xznmrkvlg1jxyykhg3kccqd4fxg9zj9yv4l8ih2rw"; + url = "https://api.pulumi.com/releases/plugins/pulumi-resource-tailscale-v0.9.0-linux-amd64.tar.gz"; + sha256 = "1rayjf72ryxy1ss9d049jsibl7rqhn78r1qiwm7yyfnna1f02x4z"; } { - url = "https://api.pulumi.com/releases/plugins/pulumi-resource-tls-v4.3.0-linux-amd64.tar.gz"; - sha256 = "14kgn1xz3i5lh096chd1bqac0391g13zma0nkraynnaqziqw5xgf"; + url = "https://api.pulumi.com/releases/plugins/pulumi-resource-tls-v4.6.0-linux-amd64.tar.gz"; + sha256 = "1jx1h7p72wacplnqdvjqrzkgfc6fsrpjx6xl4f6dyvnvc9sgv7l9"; } { - url = "https://api.pulumi.com/releases/plugins/pulumi-resource-vault-v5.4.1-linux-amd64.tar.gz"; - sha256 = "1n780mk61vshxyf7h9wdx3rddnrmjljzzx979c4hw1ycq40iwxkh"; + url = "https://api.pulumi.com/releases/plugins/pulumi-resource-vault-v5.5.0-linux-amd64.tar.gz"; + sha256 = "1rif5ilxh84qzp2p19wal8k3xczppwv9rqk2ynhh82pp316hwf0a"; } { url = "https://api.pulumi.com/releases/plugins/pulumi-resource-venafi-v1.4.1-linux-amd64.tar.gz"; @@ -163,60 +163,60 @@ ]; x86_64-darwin = [ { - url = "https://get.pulumi.com/releases/sdk/pulumi-v3.31.0-darwin-x64.tar.gz"; - sha256 = "1n1c05dpv1xhj7wsy4vxh31mzppmiz1qvjz9vhjnpjhcp9r949gr"; + url = "https://get.pulumi.com/releases/sdk/pulumi-v3.34.1-darwin-x64.tar.gz"; + sha256 = "1wg9s0ngk26icvv7cyg8parh74f0ls5ixpdrjqvzib4k2mifnh54"; } { - url = "https://api.pulumi.com/releases/plugins/pulumi-resource-aiven-v4.5.1-darwin-amd64.tar.gz"; - sha256 = "0i43sspz7bcg6nhdf3ncj6mcs087qn2z0fkfcylj7nsvvvwcacyr"; + url = "https://api.pulumi.com/releases/plugins/pulumi-resource-aiven-v4.5.2-darwin-amd64.tar.gz"; + sha256 = "1mph89ghx4agvip8iqkwlqxwk506xh9a0jlf9aw64xagvag8ady8"; } { url = "https://api.pulumi.com/releases/plugins/pulumi-resource-akamai-v2.9.0-darwin-amd64.tar.gz"; sha256 = "0xnlj48lgjhb3cf0yp958j7js5akxygd6034r4fa26kzhqq6rnl6"; } { - url = "https://api.pulumi.com/releases/plugins/pulumi-resource-alicloud-v3.19.0-darwin-amd64.tar.gz"; - sha256 = "14skymvy5mf0509v3b8wrmi7n390la9nr859l7afbhxk4cwvq3av"; + url = "https://api.pulumi.com/releases/plugins/pulumi-resource-alicloud-v3.21.0-darwin-amd64.tar.gz"; + sha256 = "1ssi3w7rzgi9781r04lbpsfbcprsk7a7l6wmadjp4i7gbzii55q2"; } { - url = "https://api.pulumi.com/releases/plugins/pulumi-resource-artifactory-v2.0.0-darwin-amd64.tar.gz"; - sha256 = "0zjcbaflcbm52bjfpsr9pbg4jddf9y8zq4i1w8ki46bdcvyi998g"; + url = "https://api.pulumi.com/releases/plugins/pulumi-resource-artifactory-v2.3.2-darwin-amd64.tar.gz"; + sha256 = "1clh35pm87bbad49m8gb7ycbzxvncjpdqy8rsjm7kg99dywwm4yd"; } { - url = "https://api.pulumi.com/releases/plugins/pulumi-resource-auth0-v2.8.0-darwin-amd64.tar.gz"; - sha256 = "15a89ydv8yp71aamd9kciz9yggxza5njdikch5pvmd24jvar03gm"; + url = "https://api.pulumi.com/releases/plugins/pulumi-resource-auth0-v2.9.0-darwin-amd64.tar.gz"; + sha256 = "0fxr55qdll5bxx5hz80na2zhcfds231kycbpd7ahsxf3yfvwppm9"; } { - url = "https://api.pulumi.com/releases/plugins/pulumi-resource-aws-v5.3.0-darwin-amd64.tar.gz"; - sha256 = "1qqbqjr0yh5ipyj074a86hjga126dib9x0c3rp40x7q03avsii3g"; + url = "https://api.pulumi.com/releases/plugins/pulumi-resource-aws-v5.8.0-darwin-amd64.tar.gz"; + sha256 = "1j090zl24sdyw28p2vj5d382cmamabvg0pg33dsfqhw9smzkc6c0"; } { - url = "https://api.pulumi.com/releases/plugins/pulumi-resource-azure-v5.3.0-darwin-amd64.tar.gz"; - sha256 = "0pig9hcmhig7ygx43fj0jjpv1js9kgdryhak62sfdvbsvcaqzp44"; - } - { - url = "https://api.pulumi.com/releases/plugins/pulumi-resource-azuread-v5.21.0-darwin-amd64.tar.gz"; - sha256 = "18b63y3wiw99wmkna5zv8k7bkrnnzm9nv4k14f93lg22jcmnhrkc"; + url = "https://api.pulumi.com/releases/plugins/pulumi-resource-azuread-v5.24.0-darwin-amd64.tar.gz"; + sha256 = "1nivhnyv7750vw0bsw8bp2il3a57r572pskfbd9njr2kvmlic7wf"; } { url = "https://api.pulumi.com/releases/plugins/pulumi-resource-azuredevops-v2.4.0-darwin-amd64.tar.gz"; sha256 = "1shc7m4xlsmcjnrlbi2jyvmnvf9bg1cs6knfkl82jfs65ya5iidf"; } { - url = "https://api.pulumi.com/releases/plugins/pulumi-resource-cloudflare-v4.6.0-darwin-amd64.tar.gz"; - sha256 = "11g07qp5b4p7ak5lrc1jaxlngfappba56lk9z8c6rlfs6ajkrfmq"; + url = "https://api.pulumi.com/releases/plugins/pulumi-resource-azure-v5.10.0-darwin-amd64.tar.gz"; + sha256 = "0himardpabg8wiqd6557pgnpj5p6i45fy2j4yyixi7jqaiashig7"; + } + { + url = "https://api.pulumi.com/releases/plugins/pulumi-resource-cloudflare-v4.7.0-darwin-amd64.tar.gz"; + sha256 = "1p1ba58ifz2vl1zi15kny6jlijzjgd9cdbsvkh11m4am2fi18qsa"; } { url = "https://api.pulumi.com/releases/plugins/pulumi-resource-consul-v3.6.0-darwin-amd64.tar.gz"; sha256 = "0pvq5mwl8scsyvkqgy32v1qs4060w0m12z0f1cw0aw34wd3zs67a"; } { - url = "https://api.pulumi.com/releases/plugins/pulumi-resource-datadog-v4.8.0-darwin-amd64.tar.gz"; - sha256 = "159h2l7dzj2bfzvifsq5vnsvp2z86bivim65pp0w8gf460n9v8b0"; + url = "https://api.pulumi.com/releases/plugins/pulumi-resource-datadog-v4.9.0-darwin-amd64.tar.gz"; + sha256 = "00gnqfbmqa731n0g6qzvhkq240x7pbfqh6hppprrzxcxr4i25qkh"; } { - url = "https://api.pulumi.com/releases/plugins/pulumi-resource-digitalocean-v4.12.0-darwin-amd64.tar.gz"; - sha256 = "0ywycfl0arsfqjirk3b56i8kpx7c9wpbisadmcz0m5fahi47j2v8"; + url = "https://api.pulumi.com/releases/plugins/pulumi-resource-digitalocean-v4.13.0-darwin-amd64.tar.gz"; + sha256 = "0241frab4w2xfyml9vbzvmrjxsbpyvl14z1y3f3cqzp655srpmi9"; } { url = "https://api.pulumi.com/releases/plugins/pulumi-resource-docker-v3.2.0-darwin-amd64.tar.gz"; @@ -227,40 +227,40 @@ sha256 = "1m5lh59h7nck1flzxs9m4n0ag0klk3jmnpf7hc509vffxs89xnjq"; } { - url = "https://api.pulumi.com/releases/plugins/pulumi-resource-fastly-v4.0.1-darwin-amd64.tar.gz"; - sha256 = "0i3aysdy7i13fx2a2kpnvd3qpn7vmc2mbln718kks3mikiz26aii"; + url = "https://api.pulumi.com/releases/plugins/pulumi-resource-fastly-v4.0.4-darwin-amd64.tar.gz"; + sha256 = "0zjap38frc6d5r2y7a4k5arvdc9fhh4bnr0swzqm5k9vxza3vfq8"; } { - url = "https://api.pulumi.com/releases/plugins/pulumi-resource-gcp-v6.21.0-darwin-amd64.tar.gz"; - sha256 = "1zqbxqyv4x1fsyrdjpy2ham5fjs1yzjly0i3jpqrrkxfxw68z7an"; + url = "https://api.pulumi.com/releases/plugins/pulumi-resource-gcp-v6.27.0-darwin-amd64.tar.gz"; + sha256 = "0p9mk3h8943cpd7slwmj6swx0jmb1mrkmkq70lmcx9633zzf91v6"; } { - url = "https://api.pulumi.com/releases/plugins/pulumi-resource-github-v4.11.0-darwin-amd64.tar.gz"; - sha256 = "0bgznj8569m2zzx9qjmnbcn0c3zbz12iyiffp4kg1c7g7chrlvy6"; + url = "https://api.pulumi.com/releases/plugins/pulumi-resource-github-v4.12.0-darwin-amd64.tar.gz"; + sha256 = "1vg68hfx568cqqvdwybsx580r1jgic6g71nrh5587hi8lbkcxvx7"; } { url = "https://api.pulumi.com/releases/plugins/pulumi-resource-gitlab-v4.7.0-darwin-amd64.tar.gz"; sha256 = "08b6p6gliay66bd7687kjc9n3n7xdgbrrcnbjbqi7a3am14mf5p6"; } { - url = "https://api.pulumi.com/releases/plugins/pulumi-resource-google-native-v0.18.1-darwin-amd64.tar.gz"; - sha256 = "0828lrq07586liz2k7pjk7hnz4nxawkq03nw8x2s4j8paszrz295"; + url = "https://api.pulumi.com/releases/plugins/pulumi-resource-google-native-v0.20.0-darwin-amd64.tar.gz"; + sha256 = "0vsgjl6hzznh12dwbwqgdb2wdpa4nhhj0kfa1y49553mk8zsymgh"; } { url = "https://api.pulumi.com/releases/plugins/pulumi-resource-hcloud-v1.8.0-darwin-amd64.tar.gz"; sha256 = "11r73jfqkc0wgdf66zp6pmgq5packlm4dkjp12a00z6l2s4f0w4h"; } { - url = "https://api.pulumi.com/releases/plugins/pulumi-resource-kubernetes-v3.18.3-darwin-amd64.tar.gz"; - sha256 = "0ffnl6mbh9wpfb384zbv5v1sss4vvn0hqrcsy6v585984v1pays2"; + url = "https://api.pulumi.com/releases/plugins/pulumi-resource-kubernetes-v3.19.3-darwin-amd64.tar.gz"; + sha256 = "1i4waql9mcj48xzsb6i54cf1b7gpw5dqdlj2m4fjr3kfagw7xfqb"; } { - url = "https://api.pulumi.com/releases/plugins/pulumi-resource-linode-v3.7.1-darwin-amd64.tar.gz"; - sha256 = "15zf53m0mgrk11qp3dvkrrh86j48hqs1p7x552gkqfqkn291d5z8"; + url = "https://api.pulumi.com/releases/plugins/pulumi-resource-linode-v3.8.0-darwin-amd64.tar.gz"; + sha256 = "10y87y3llb7y5mf15681c4l7nnmq3i63wm4hphcc7y1pfald86cr"; } { - url = "https://api.pulumi.com/releases/plugins/pulumi-resource-mailgun-v3.3.0-darwin-amd64.tar.gz"; - sha256 = "06s58xlwm3wf7895bzsqx4jsfb0kbxanzlaf21jff45y62nk1f1p"; + url = "https://api.pulumi.com/releases/plugins/pulumi-resource-mailgun-v3.4.0-darwin-amd64.tar.gz"; + sha256 = "1ga3gb8b7ik070gah73jwjd9l26rfzk2a0a5zdxw0jf7qlmwirf6"; } { url = "https://api.pulumi.com/releases/plugins/pulumi-resource-mysql-v3.1.0-darwin-amd64.tar.gz"; @@ -271,36 +271,36 @@ sha256 = "13qxwzfsy0hmvgazry0q3qna0jk7llharcvdwz302fj4ad98s71j"; } { - url = "https://api.pulumi.com/releases/plugins/pulumi-resource-postgresql-v3.4.0-darwin-amd64.tar.gz"; - sha256 = "0zjha6vv6j386h2gfhvwicpqz53v13v7zdfl6bydjzh3mw2x7bcg"; + url = "https://api.pulumi.com/releases/plugins/pulumi-resource-postgresql-v3.5.0-darwin-amd64.tar.gz"; + sha256 = "0d1w1zak2ma701w26va74ahi3lmsjywsk2x84ds4l4mj8ckpl2va"; } { - url = "https://api.pulumi.com/releases/plugins/pulumi-resource-random-v4.5.0-darwin-amd64.tar.gz"; - sha256 = "1fnv2d4b458blx5k2s861lj8zc0fcxkw5jfjcm25nhdc7694v04w"; + url = "https://api.pulumi.com/releases/plugins/pulumi-resource-random-v4.8.0-darwin-amd64.tar.gz"; + sha256 = "043zi2khq6bdp19njw7nz1rkx5ddxx5w51qac7lym7pdfx1pvd4i"; } { - url = "https://api.pulumi.com/releases/plugins/pulumi-resource-snowflake-v0.7.0-darwin-amd64.tar.gz"; - sha256 = "0z5w42m0229gjlbp36aqh8cfd0l47nv5jh6gcjqfp5pkgwh37gnj"; + url = "https://api.pulumi.com/releases/plugins/pulumi-resource-snowflake-v0.9.0-darwin-amd64.tar.gz"; + sha256 = "0r3wm8a9fzlhpapr7xmfdk5pmanz2phzbpplnh0irzl4nikwx80h"; } { - url = "https://api.pulumi.com/releases/plugins/pulumi-resource-spotinst-v3.17.0-darwin-amd64.tar.gz"; - sha256 = "119a3dfrri8qdbianml7i2fm6yr8rrq1q0cnpk9r8qsyja2vsvp7"; + url = "https://api.pulumi.com/releases/plugins/pulumi-resource-spotinst-v3.20.0-darwin-amd64.tar.gz"; + sha256 = "1g1fmsb3414xdw77al6pbps16pa07x09pli8bvgfmyysvgm1wb4l"; } { - url = "https://api.pulumi.com/releases/plugins/pulumi-resource-sumologic-v0.6.0-darwin-amd64.tar.gz"; - sha256 = "11zhgrljwqkj3a200kdh8gyzvxm6jcbwm71929a87wqppgwvcbag"; + url = "https://api.pulumi.com/releases/plugins/pulumi-resource-sumologic-v0.7.1-darwin-amd64.tar.gz"; + sha256 = "0y1lcafl477ja9kib00zprz7gamfx821mdj5nyiyjkggwylp0lwl"; } { - url = "https://api.pulumi.com/releases/plugins/pulumi-resource-tailscale-v0.7.1-darwin-amd64.tar.gz"; - sha256 = "1n6w6da58crv2dyi0s7pjzjk3y85qlz6qaa77r0lm58f8wcj4a9d"; + url = "https://api.pulumi.com/releases/plugins/pulumi-resource-tailscale-v0.9.0-darwin-amd64.tar.gz"; + sha256 = "0pjikivf87p7s9m162j7dxrxxs99lf25sjkfaixzldf3l5dqddfm"; } { - url = "https://api.pulumi.com/releases/plugins/pulumi-resource-tls-v4.3.0-darwin-amd64.tar.gz"; - sha256 = "0whh7br959dc4hz47iskgkcxf4d6zg9lv9jvx1b9lyplra7iwyv0"; + url = "https://api.pulumi.com/releases/plugins/pulumi-resource-tls-v4.6.0-darwin-amd64.tar.gz"; + sha256 = "16dxc4pkb5arb8qb6gg45m59jn20is3fcn0d1lc66d6sh35z7lsb"; } { - url = "https://api.pulumi.com/releases/plugins/pulumi-resource-vault-v5.4.1-darwin-amd64.tar.gz"; - sha256 = "0l89yiwjs39nhicln0bbwb8j1dajc1r1gdbqrl3zjpq6mnhanphb"; + url = "https://api.pulumi.com/releases/plugins/pulumi-resource-vault-v5.5.0-darwin-amd64.tar.gz"; + sha256 = "0w8s908ny5zdn0i8j0klaq2ig7f8vnzx88cm5r110573ya3l9b1m"; } { url = "https://api.pulumi.com/releases/plugins/pulumi-resource-venafi-v1.4.1-darwin-amd64.tar.gz"; @@ -321,60 +321,60 @@ ]; aarch64-linux = [ { - url = "https://get.pulumi.com/releases/sdk/pulumi-v3.31.0-linux-arm64.tar.gz"; - sha256 = "1p3c7ks1q6i9frz8ljjf7jn00sr6bgqm53hxxwxkim7hkr614ndp"; + url = "https://get.pulumi.com/releases/sdk/pulumi-v3.34.1-linux-arm64.tar.gz"; + sha256 = "0nnl0qkd5xblvbhgzy2ikhs1xyjsmzfz4fda8kfgmcn9lh3hwjlz"; } { - url = "https://api.pulumi.com/releases/plugins/pulumi-resource-aiven-v4.5.1-linux-arm64.tar.gz"; - sha256 = "0c55b6jn7xxkvpcbgc4l8nxbjpdlpy6xhrk8j65ch27jhn3nwags"; + url = "https://api.pulumi.com/releases/plugins/pulumi-resource-aiven-v4.5.2-linux-arm64.tar.gz"; + sha256 = "1a264gf1kwvq8x0qdccnfj8d5h0z1mw86lcv9qpawym98zms7jq7"; } { url = "https://api.pulumi.com/releases/plugins/pulumi-resource-akamai-v2.9.0-linux-arm64.tar.gz"; sha256 = "0vn6rdqfl79p666v2h72dsqgwqfag5k3hh4abb7hdz2kzqrl7l9k"; } { - url = "https://api.pulumi.com/releases/plugins/pulumi-resource-alicloud-v3.19.0-linux-arm64.tar.gz"; - sha256 = "1g6ymjsmxp149cv93sn5843pxlih1dbw16nvv4sn3prl360c4lxa"; + url = "https://api.pulumi.com/releases/plugins/pulumi-resource-alicloud-v3.21.0-linux-arm64.tar.gz"; + sha256 = "1h55nmzlaba249iy5lkd6zk7a2zz97n5jkfy1a2yy5xa9v4kv8ab"; } { - url = "https://api.pulumi.com/releases/plugins/pulumi-resource-artifactory-v2.0.0-linux-arm64.tar.gz"; - sha256 = "08qjb17rpxmpl5waq6dsza28aa9lj8blf3x59xv3dv4ngzzymh07"; + url = "https://api.pulumi.com/releases/plugins/pulumi-resource-artifactory-v2.3.2-linux-arm64.tar.gz"; + sha256 = "1i1qnpg722cjj5z208yx2r0yswrir2bqy8fzdgmlwl0ffm8v3f47"; } { - url = "https://api.pulumi.com/releases/plugins/pulumi-resource-auth0-v2.8.0-linux-arm64.tar.gz"; - sha256 = "0j5wa27zhqf4vvpxgs4cmay8n3a74jsif4sr9x60mhkrhr0s117k"; + url = "https://api.pulumi.com/releases/plugins/pulumi-resource-auth0-v2.9.0-linux-arm64.tar.gz"; + sha256 = "126hqi44avcw21q8niyagb86p191ci78089sfig56irzkykc7gsy"; } { - url = "https://api.pulumi.com/releases/plugins/pulumi-resource-aws-v5.3.0-linux-arm64.tar.gz"; - sha256 = "051lksfn7na30y6r7qn24wg222kf4bsvd26ga3y7i2xh00nh82kp"; + url = "https://api.pulumi.com/releases/plugins/pulumi-resource-aws-v5.8.0-linux-arm64.tar.gz"; + sha256 = "0i89v1wm17wj7nb63ywydmvgzz3klm884m8di8qmg03mmlr2h6p3"; } { - url = "https://api.pulumi.com/releases/plugins/pulumi-resource-azure-v5.3.0-linux-arm64.tar.gz"; - sha256 = "0g41dc6q42rr81167n4319llznjvb9i6zgfs5hrlxgz622grmax0"; - } - { - url = "https://api.pulumi.com/releases/plugins/pulumi-resource-azuread-v5.21.0-linux-arm64.tar.gz"; - sha256 = "1wyryxfmahcr668cp8kqc7l1spa6c1pzhxkwscd8payar78rswls"; + url = "https://api.pulumi.com/releases/plugins/pulumi-resource-azuread-v5.24.0-linux-arm64.tar.gz"; + sha256 = "076g4h58hv8g062r9swp4gfcqb7bmkfn8a63p2069v7k8c594rgq"; } { url = "https://api.pulumi.com/releases/plugins/pulumi-resource-azuredevops-v2.4.0-linux-arm64.tar.gz"; sha256 = "0w55pk3ham08lrg3vq0hg3p23qipz21ln01g61xd0cpl79aysbq4"; } { - url = "https://api.pulumi.com/releases/plugins/pulumi-resource-cloudflare-v4.6.0-linux-arm64.tar.gz"; - sha256 = "1b1w886m6glpq49baj6zhyb2rcyi4y0kh4sl19ni3afmn9bw6xn3"; + url = "https://api.pulumi.com/releases/plugins/pulumi-resource-azure-v5.10.0-linux-arm64.tar.gz"; + sha256 = "0rkgx3xb6p8r40yjbwg49irqxyc7lb5ksiifb93dz9650za4bs4v"; + } + { + url = "https://api.pulumi.com/releases/plugins/pulumi-resource-cloudflare-v4.7.0-linux-arm64.tar.gz"; + sha256 = "00ja951rzxkq01yzygp27wrq1s34j2fzs2lv2njxskqwmhqd77xw"; } { url = "https://api.pulumi.com/releases/plugins/pulumi-resource-consul-v3.6.0-linux-arm64.tar.gz"; sha256 = "085flnzp062p6ankfl77p1y7n8ijrhmknnb4r46x6b3lrw891pgd"; } { - url = "https://api.pulumi.com/releases/plugins/pulumi-resource-datadog-v4.8.0-linux-arm64.tar.gz"; - sha256 = "00y77pyxnish3zym103al5z3r881p7nf9d1aqh887nnz6i5jw7nq"; + url = "https://api.pulumi.com/releases/plugins/pulumi-resource-datadog-v4.9.0-linux-arm64.tar.gz"; + sha256 = "01hf8ycb6w3ny3ccfimxj1l96m0jzjp7f1r0xm9an8i59d3wslx8"; } { - url = "https://api.pulumi.com/releases/plugins/pulumi-resource-digitalocean-v4.12.0-linux-arm64.tar.gz"; - sha256 = "1iwckjvbhrbic64yj8ydnn1ml19lw4k164xkkc4066dpxbjz128q"; + url = "https://api.pulumi.com/releases/plugins/pulumi-resource-digitalocean-v4.13.0-linux-arm64.tar.gz"; + sha256 = "03x8mwzwnkjw1pj8rv3mkzj3jrw921xq8izf1qnr32aglskmqvjn"; } { url = "https://api.pulumi.com/releases/plugins/pulumi-resource-docker-v3.2.0-linux-arm64.tar.gz"; @@ -385,40 +385,40 @@ sha256 = "111pia2f5xwkwaqs6p90ri29l5b3ivmahsa1bji4fwyyjyp22h4r"; } { - url = "https://api.pulumi.com/releases/plugins/pulumi-resource-fastly-v4.0.1-linux-arm64.tar.gz"; - sha256 = "0qpan6zvny2h2ckigwnf4dhsgmnywam1m4d2jp0nj9pm3628pldv"; + url = "https://api.pulumi.com/releases/plugins/pulumi-resource-fastly-v4.0.4-linux-arm64.tar.gz"; + sha256 = "1w03vj5an0mkb9cawkz94xxj9d2yp2zvr67nnwvmdgaj6kwb9by8"; } { - url = "https://api.pulumi.com/releases/plugins/pulumi-resource-gcp-v6.21.0-linux-arm64.tar.gz"; - sha256 = "0zwlr58wyd9aly58shffr24vsbna8bj2igl8l0j8gsf2g310n513"; + url = "https://api.pulumi.com/releases/plugins/pulumi-resource-gcp-v6.27.0-linux-arm64.tar.gz"; + sha256 = "18cb2ka8yvjxnhhhf5zmhy79rmz3zacyz4i2mm9rvx3nljkxmm4a"; } { - url = "https://api.pulumi.com/releases/plugins/pulumi-resource-github-v4.11.0-linux-arm64.tar.gz"; - sha256 = "1lnc40lgc2rgrbhw54gc3g24zp1v3vspr4c0bryjq21yrhisppdd"; + url = "https://api.pulumi.com/releases/plugins/pulumi-resource-github-v4.12.0-linux-arm64.tar.gz"; + sha256 = "1zs7skijbrs496545qz7gjkmqvax43wb0p0pna3bm034sd7zcl6z"; } { url = "https://api.pulumi.com/releases/plugins/pulumi-resource-gitlab-v4.7.0-linux-arm64.tar.gz"; sha256 = "0i6qxrdijf653nj6yqhdikbj3spzzwr5rbgngkc0v7yxkphlzlnj"; } { - url = "https://api.pulumi.com/releases/plugins/pulumi-resource-google-native-v0.18.1-linux-arm64.tar.gz"; - sha256 = "1q5fxlrfiqlwib5bwwinmghq3j25rv14ldklpxihviyz1b5sdiyk"; + url = "https://api.pulumi.com/releases/plugins/pulumi-resource-google-native-v0.20.0-linux-arm64.tar.gz"; + sha256 = "1rnz5cli8q59wwdvadd08kf51nl5rmrlkch9szc3yk92i79kl6wg"; } { url = "https://api.pulumi.com/releases/plugins/pulumi-resource-hcloud-v1.8.0-linux-arm64.tar.gz"; sha256 = "1vrz3pm14i5zdmk3yibny2sghxk8kzwb2qi77mjbiyfhbvciy97q"; } { - url = "https://api.pulumi.com/releases/plugins/pulumi-resource-kubernetes-v3.18.3-linux-arm64.tar.gz"; - sha256 = "1ydmpcf13yj8jiw72nzzvnzpg3qwnwfr8j2qhr2jdwp1wxw46658"; + url = "https://api.pulumi.com/releases/plugins/pulumi-resource-kubernetes-v3.19.3-linux-arm64.tar.gz"; + sha256 = "17qm3sbfxi5i24rdcicr7pairxvlh8bi48fldazccpwfsbmgd83c"; } { - url = "https://api.pulumi.com/releases/plugins/pulumi-resource-linode-v3.7.1-linux-arm64.tar.gz"; - sha256 = "1glpxiq8v1fgjnh0r9hkl89s81iv44r24pha2jfvk1ww2jf54gwq"; + url = "https://api.pulumi.com/releases/plugins/pulumi-resource-linode-v3.8.0-linux-arm64.tar.gz"; + sha256 = "0dqjyyh4jarzr385qqa4dwlpi5nribc8l22jxhdjgj52av6hc9pv"; } { - url = "https://api.pulumi.com/releases/plugins/pulumi-resource-mailgun-v3.3.0-linux-arm64.tar.gz"; - sha256 = "14v7wm2gkhd064drw2l894dacdsm5lnndii5qzl5hsl6p9a5m970"; + url = "https://api.pulumi.com/releases/plugins/pulumi-resource-mailgun-v3.4.0-linux-arm64.tar.gz"; + sha256 = "0s2qma2cl69ghvkjapvsgfrry6c1icbm6rxglqfdg6da1lrabx40"; } { url = "https://api.pulumi.com/releases/plugins/pulumi-resource-mysql-v3.1.0-linux-arm64.tar.gz"; @@ -429,36 +429,36 @@ sha256 = "0dh28hhg2lbvbgw2yadw0ig68z2pcg51h38v74yczblm24k97jvq"; } { - url = "https://api.pulumi.com/releases/plugins/pulumi-resource-postgresql-v3.4.0-linux-arm64.tar.gz"; - sha256 = "11y6vbmhrjqdlgzg9px1sm2p058v6mvk69gzhy2ix1c1a2sh6c56"; + url = "https://api.pulumi.com/releases/plugins/pulumi-resource-postgresql-v3.5.0-linux-arm64.tar.gz"; + sha256 = "0lky1gchcmjn6nxlasjqviq89hi2k9fi8lx7ac7hy6x6b7wl40sf"; } { - url = "https://api.pulumi.com/releases/plugins/pulumi-resource-random-v4.5.0-linux-arm64.tar.gz"; - sha256 = "16wshr4q9wfp7gi09n2c2ckvybg28adw429mghzmcs13aws1cycp"; + url = "https://api.pulumi.com/releases/plugins/pulumi-resource-random-v4.8.0-linux-arm64.tar.gz"; + sha256 = "13i481a9xj9aw1mi8j3sw4m69kfcaqdl1cj9w4silqwyqk4gzmyd"; } { - url = "https://api.pulumi.com/releases/plugins/pulumi-resource-snowflake-v0.7.0-linux-arm64.tar.gz"; - sha256 = "0k5ic9i7cd6ccl3v20sj7jgpdrcc4bkv697p0pslb7i3fnhdcawf"; + url = "https://api.pulumi.com/releases/plugins/pulumi-resource-snowflake-v0.9.0-linux-arm64.tar.gz"; + sha256 = "0f3sp3zl4zikwa7rswnqgy09pwv8r8rn08n3zyk3vmqzsyrldbgy"; } { - url = "https://api.pulumi.com/releases/plugins/pulumi-resource-spotinst-v3.17.0-linux-arm64.tar.gz"; - sha256 = "1ssrqxf1gss0fcpffgh40hasbgh4cc4ysqkk0lxdl90avb7lf2zr"; + url = "https://api.pulumi.com/releases/plugins/pulumi-resource-spotinst-v3.20.0-linux-arm64.tar.gz"; + sha256 = "1rv2k5kqjsg01qdqvb1yhkbh1sc7jszh8wgm42q223zdyplqlid2"; } { - url = "https://api.pulumi.com/releases/plugins/pulumi-resource-sumologic-v0.6.0-linux-arm64.tar.gz"; - sha256 = "10sb3lm8m90fwf20nqy6yzfwbxxlwf13hmygrqnyicvfmiajihkn"; + url = "https://api.pulumi.com/releases/plugins/pulumi-resource-sumologic-v0.7.1-linux-arm64.tar.gz"; + sha256 = "1fdg6sl2rchmzcsxyfbml33cq34slpf6bbr4s2cx7k2bwfvc8wwl"; } { - url = "https://api.pulumi.com/releases/plugins/pulumi-resource-tailscale-v0.7.1-linux-arm64.tar.gz"; - sha256 = "0zkmkg9bivf5hlcbdj2aqyszpsqk7x8ag99z0x2yd00v72x2qcb5"; + url = "https://api.pulumi.com/releases/plugins/pulumi-resource-tailscale-v0.9.0-linux-arm64.tar.gz"; + sha256 = "1g9z3nv18mwklvbqrz07pxcar3373f19jmbdn1m6z5v871qg97r8"; } { - url = "https://api.pulumi.com/releases/plugins/pulumi-resource-tls-v4.3.0-linux-arm64.tar.gz"; - sha256 = "06djcfard6yq6qd98gbsnkry0jv3nnlgmwr90d818vbf923z0b1h"; + url = "https://api.pulumi.com/releases/plugins/pulumi-resource-tls-v4.6.0-linux-arm64.tar.gz"; + sha256 = "0mnw1cbi789c9iqnxg67pw1v6rgp6s0g2w3yvnbllbdafvd6pp3b"; } { - url = "https://api.pulumi.com/releases/plugins/pulumi-resource-vault-v5.4.1-linux-arm64.tar.gz"; - sha256 = "08rxnqdvpb7lrknhlnyhnfnvsmbdi7cxds7dc5zdslx27fcywz8a"; + url = "https://api.pulumi.com/releases/plugins/pulumi-resource-vault-v5.5.0-linux-arm64.tar.gz"; + sha256 = "09jbs7mvbf3bbrf6b4m1nfj52zybxawza2ccsvz99yc4g5r2ixj8"; } { url = "https://api.pulumi.com/releases/plugins/pulumi-resource-venafi-v1.4.1-linux-arm64.tar.gz"; @@ -479,60 +479,60 @@ ]; aarch64-darwin = [ { - url = "https://get.pulumi.com/releases/sdk/pulumi-v3.31.0-darwin-arm64.tar.gz"; - sha256 = "0ixqqvzigq9l8xr2rcdf1ln7a3xhf9f52qz0zkabr8kq7l11vz3v"; + url = "https://get.pulumi.com/releases/sdk/pulumi-v3.34.1-darwin-arm64.tar.gz"; + sha256 = "1g5sy9z3vg2s7g589q7247a7i2j3lpc0mla4z1nhmalfk4yh4qf4"; } { - url = "https://api.pulumi.com/releases/plugins/pulumi-resource-aiven-v4.5.1-darwin-arm64.tar.gz"; - sha256 = "0l2xmaybgrbln3zgpdx6pmrg05hm08maigr62hpj2q6l8z06gsfk"; + url = "https://api.pulumi.com/releases/plugins/pulumi-resource-aiven-v4.5.2-darwin-arm64.tar.gz"; + sha256 = "0m99mp7b1vcw2yb79yhms35mlz6f3b6xijyv5x1pdakays4bn16q"; } { url = "https://api.pulumi.com/releases/plugins/pulumi-resource-akamai-v2.9.0-darwin-arm64.tar.gz"; sha256 = "14qf3y7nz4dd6qf9fq49f90415dn5hcjymm86rmcgyw1w1dkjpqi"; } { - url = "https://api.pulumi.com/releases/plugins/pulumi-resource-alicloud-v3.19.0-darwin-arm64.tar.gz"; - sha256 = "1n061d8phk6cjvr24138vqzxs5midfadqgrpmaaknbpykcd3vym3"; + url = "https://api.pulumi.com/releases/plugins/pulumi-resource-alicloud-v3.21.0-darwin-arm64.tar.gz"; + sha256 = "06pia0q1ajmlbfzgj3p30zw611drq5vbp2maj21jhdkcxfbjsbw6"; } { - url = "https://api.pulumi.com/releases/plugins/pulumi-resource-artifactory-v2.0.0-darwin-arm64.tar.gz"; - sha256 = "1s9affk1y1bzg44rz6cahnvzln4sc8ycwvmskqwrfqankrzk5730"; + url = "https://api.pulumi.com/releases/plugins/pulumi-resource-artifactory-v2.3.2-darwin-arm64.tar.gz"; + sha256 = "028h8yqj9xb048hy9j5j2jdgqipfcra5rrwdaa76k0vxhdk7514v"; } { - url = "https://api.pulumi.com/releases/plugins/pulumi-resource-auth0-v2.8.0-darwin-arm64.tar.gz"; - sha256 = "1qx9717a5qajn3dp4i0gswd2pb80dq98igfad9nbz1f9sbbax2dv"; + url = "https://api.pulumi.com/releases/plugins/pulumi-resource-auth0-v2.9.0-darwin-arm64.tar.gz"; + sha256 = "12dx70f5fiy2qvd4cmkxk2ph2dq19sc2a9rxhfxqn1bjjs8ifh2j"; } { - url = "https://api.pulumi.com/releases/plugins/pulumi-resource-aws-v5.3.0-darwin-arm64.tar.gz"; - sha256 = "0miqrbsivw7r4sw9q25lkn9z8fxq00sdx0l88agvzjp6rgsggbsl"; + url = "https://api.pulumi.com/releases/plugins/pulumi-resource-aws-v5.8.0-darwin-arm64.tar.gz"; + sha256 = "01l9bl8wjkh8cfm7d7xky2zliwnfx2kgzlwd7bph7zkngwjg86b9"; } { - url = "https://api.pulumi.com/releases/plugins/pulumi-resource-azure-v5.3.0-darwin-arm64.tar.gz"; - sha256 = "0nxmcssbsn2yqbndaz50xj7jmd7ynjak13yicmli0l7jcrw7ksyp"; - } - { - url = "https://api.pulumi.com/releases/plugins/pulumi-resource-azuread-v5.21.0-darwin-arm64.tar.gz"; - sha256 = "1a7psd9l3rpf6sfil3wjc55mfdz856h5ixnsbjkpjy9zfblv42nv"; + url = "https://api.pulumi.com/releases/plugins/pulumi-resource-azuread-v5.24.0-darwin-arm64.tar.gz"; + sha256 = "17yxlxqa0jjraz19y3x164hhdn1w8rhfxn2m3nkl9gqh6bjx0pvr"; } { url = "https://api.pulumi.com/releases/plugins/pulumi-resource-azuredevops-v2.4.0-darwin-arm64.tar.gz"; sha256 = "0ivwpfhknhyidpafm2347g1pair7vk055ajhhyg631vizx53hrr9"; } { - url = "https://api.pulumi.com/releases/plugins/pulumi-resource-cloudflare-v4.6.0-darwin-arm64.tar.gz"; - sha256 = "1i7n2yvvsijhhxrdd6i9vvrlmrn382qyrs258kbrza5zckxshdwq"; + url = "https://api.pulumi.com/releases/plugins/pulumi-resource-azure-v5.10.0-darwin-arm64.tar.gz"; + sha256 = "10c0jsp2kcyw2vrx495jlqyiljgz5701a9dlzqb37ys67qixmfnj"; + } + { + url = "https://api.pulumi.com/releases/plugins/pulumi-resource-cloudflare-v4.7.0-darwin-arm64.tar.gz"; + sha256 = "0f4fylipawslcal2267q7vih0l4j7yq0pkkw1vaqww2xgvpy2ds4"; } { url = "https://api.pulumi.com/releases/plugins/pulumi-resource-consul-v3.6.0-darwin-arm64.tar.gz"; sha256 = "11b8dr2ycn3p4k06y2f4pj19hy7zpq0glh8npqixmvn66flp3wa7"; } { - url = "https://api.pulumi.com/releases/plugins/pulumi-resource-datadog-v4.8.0-darwin-arm64.tar.gz"; - sha256 = "0payziqwl9f1xja001mymaabxd5524b6ksanfr5jifcfchy9zq47"; + url = "https://api.pulumi.com/releases/plugins/pulumi-resource-datadog-v4.9.0-darwin-arm64.tar.gz"; + sha256 = "0p1zvwi53gxsl13cw3n7iiy9ndcd5v0w8y7i4kshlnjrsxc10x42"; } { - url = "https://api.pulumi.com/releases/plugins/pulumi-resource-digitalocean-v4.12.0-darwin-arm64.tar.gz"; - sha256 = "19cqahnk217cr5pz6jp4d8v1hpxma0x4igvccgm2i02sfqlyr65y"; + url = "https://api.pulumi.com/releases/plugins/pulumi-resource-digitalocean-v4.13.0-darwin-arm64.tar.gz"; + sha256 = "1wkhifv4ag4w2plvh63ii8rhc72724zyg49i7xc3kgm5jg3cadn6"; } { url = "https://api.pulumi.com/releases/plugins/pulumi-resource-docker-v3.2.0-darwin-arm64.tar.gz"; @@ -543,40 +543,40 @@ sha256 = "12bzicm43l7yvh02v5fx3z8v46l9i7a9f677735xi5rjbmd2an4c"; } { - url = "https://api.pulumi.com/releases/plugins/pulumi-resource-fastly-v4.0.1-darwin-arm64.tar.gz"; - sha256 = "0jj35mj57sivi5qsbwv8qm2jginppi192qlx6ashvgm352gia9r1"; + url = "https://api.pulumi.com/releases/plugins/pulumi-resource-fastly-v4.0.4-darwin-arm64.tar.gz"; + sha256 = "06m4cn4v6hcqlk7pq50zd8dg5bg4zjh28r3466k532d3jvl99vr9"; } { - url = "https://api.pulumi.com/releases/plugins/pulumi-resource-gcp-v6.21.0-darwin-arm64.tar.gz"; - sha256 = "0k3cyflqnf5n72lg02my28mmclacrnxpyjkakl4gj8qknsj7q94r"; + url = "https://api.pulumi.com/releases/plugins/pulumi-resource-gcp-v6.27.0-darwin-arm64.tar.gz"; + sha256 = "09nh1vdislil9ip7v96bxxivplrlz0yzz1v6d5rvp872m9qknpij"; } { - url = "https://api.pulumi.com/releases/plugins/pulumi-resource-github-v4.11.0-darwin-arm64.tar.gz"; - sha256 = "0vvdbk778dlpwkadllm911f71vz1i1v48wmyws9z780nky6zrbii"; + url = "https://api.pulumi.com/releases/plugins/pulumi-resource-github-v4.12.0-darwin-arm64.tar.gz"; + sha256 = "0hpjrvvqr8lnfy0gwi534l3dnp1c5az35y6g45w1hx0ix9n4kvip"; } { url = "https://api.pulumi.com/releases/plugins/pulumi-resource-gitlab-v4.7.0-darwin-arm64.tar.gz"; sha256 = "1gvzjf5mp3iy43srvx3blxfwcg20gqbqvycysnl2p8g8sg3scx5f"; } { - url = "https://api.pulumi.com/releases/plugins/pulumi-resource-google-native-v0.18.1-darwin-arm64.tar.gz"; - sha256 = "0gjxk12z2ww31nhvnyvjgr0kxn80sn3i1x4a3f5w9mk7xc1y7bhk"; + url = "https://api.pulumi.com/releases/plugins/pulumi-resource-google-native-v0.20.0-darwin-arm64.tar.gz"; + sha256 = "0m8aafbpvg6gkz660b2qa5f3ax4r3aql8j6r8s10d5aga657dqp3"; } { url = "https://api.pulumi.com/releases/plugins/pulumi-resource-hcloud-v1.8.0-darwin-arm64.tar.gz"; sha256 = "058f1j40ar4xh860c3qrm0qaagm69fdmbw14avvrhsmw245cyyzc"; } { - url = "https://api.pulumi.com/releases/plugins/pulumi-resource-kubernetes-v3.18.3-darwin-arm64.tar.gz"; - sha256 = "1smhffxxr9kfpx1czd5c2sx4srgnp2yafrqv7r4y7xqdxi92x2k0"; + url = "https://api.pulumi.com/releases/plugins/pulumi-resource-kubernetes-v3.19.3-darwin-arm64.tar.gz"; + sha256 = "0218n86hz0lds4k1x2nq4and7cikl6nv65sh7k7p8hv4fpgbnsfd"; } { - url = "https://api.pulumi.com/releases/plugins/pulumi-resource-linode-v3.7.1-darwin-arm64.tar.gz"; - sha256 = "0287l9snqwq801h44vxqawk0bpniszd41rw600jb1vp5h7qpksgf"; + url = "https://api.pulumi.com/releases/plugins/pulumi-resource-linode-v3.8.0-darwin-arm64.tar.gz"; + sha256 = "040fx2a8sgs1rpzz2bnlsrlrha07b1klh3vq21zjr77apg7l9kya"; } { - url = "https://api.pulumi.com/releases/plugins/pulumi-resource-mailgun-v3.3.0-darwin-arm64.tar.gz"; - sha256 = "0n60fk2nyb1idf4rdc61jxjpzpw4v9106gwn6r1by10g8f1712yr"; + url = "https://api.pulumi.com/releases/plugins/pulumi-resource-mailgun-v3.4.0-darwin-arm64.tar.gz"; + sha256 = "05pjh1xlg82v8vfzkcnn6krnjkd5njfgrfy392vfqcp235z569s6"; } { url = "https://api.pulumi.com/releases/plugins/pulumi-resource-mysql-v3.1.0-darwin-arm64.tar.gz"; @@ -587,36 +587,36 @@ sha256 = "0xqxk9xp49s0l5cxxz9wg26fg4fj57h4yjpvs4xs8fpaqa1saynd"; } { - url = "https://api.pulumi.com/releases/plugins/pulumi-resource-postgresql-v3.4.0-darwin-arm64.tar.gz"; - sha256 = "14qp5vlmny68hjca1xykc06z2f740q1flkn9d7n2k6knzp1db9xq"; + url = "https://api.pulumi.com/releases/plugins/pulumi-resource-postgresql-v3.5.0-darwin-arm64.tar.gz"; + sha256 = "0im3ydgkm4vjia17c03szv1i77jq7abczq0a023k0kw8r3dgd8xc"; } { - url = "https://api.pulumi.com/releases/plugins/pulumi-resource-random-v4.5.0-darwin-arm64.tar.gz"; - sha256 = "1m6rbisrfh6im9l9c5kfmi0fqp1ndr8wayc33ay18yikrnpfiibj"; + url = "https://api.pulumi.com/releases/plugins/pulumi-resource-random-v4.8.0-darwin-arm64.tar.gz"; + sha256 = "1hgqybvag1mlj3hikjgx9pn2hr4r3bag0lv3l9qnjdzkmdcy248j"; } { - url = "https://api.pulumi.com/releases/plugins/pulumi-resource-snowflake-v0.7.0-darwin-arm64.tar.gz"; - sha256 = "0yqwxkd1rby0q7isxxyx1nn0vrz72znrms2d220haj1482gacj0a"; + url = "https://api.pulumi.com/releases/plugins/pulumi-resource-snowflake-v0.9.0-darwin-arm64.tar.gz"; + sha256 = "1y6ikzk7npajc5y0b8q6r3ks7ipwlyymjb1gh06604iylgd708nw"; } { - url = "https://api.pulumi.com/releases/plugins/pulumi-resource-spotinst-v3.17.0-darwin-arm64.tar.gz"; - sha256 = "1j985hv5qmjvmh4vr978z3d6bpmj4mg3pil57402rifgdz3q7i17"; + url = "https://api.pulumi.com/releases/plugins/pulumi-resource-spotinst-v3.20.0-darwin-arm64.tar.gz"; + sha256 = "0jlci2ba7vkizzjd2rw35fbl0qib3dvfalypa13a8lgqcjmyn9p7"; } { - url = "https://api.pulumi.com/releases/plugins/pulumi-resource-sumologic-v0.6.0-darwin-arm64.tar.gz"; - sha256 = "1j9128vmm70mhdhl8rxgz1p7vf6ywbaq906jldm0izr7yi119k76"; + url = "https://api.pulumi.com/releases/plugins/pulumi-resource-sumologic-v0.7.1-darwin-arm64.tar.gz"; + sha256 = "1k52qh6z068s2np1gcg7wp8vvw5rig8c877m8x9qq5xy72w3mzgg"; } { - url = "https://api.pulumi.com/releases/plugins/pulumi-resource-tailscale-v0.7.1-darwin-arm64.tar.gz"; - sha256 = "1vbbca4z6z92yk2y6g15s0cyvs5n6vx84h30ldnn4mn3gdfdi7gg"; + url = "https://api.pulumi.com/releases/plugins/pulumi-resource-tailscale-v0.9.0-darwin-arm64.tar.gz"; + sha256 = "16p0qsp8gi28xj7p7zi4yl2w9kadv9n8z97f4s28agg62b3fh5x5"; } { - url = "https://api.pulumi.com/releases/plugins/pulumi-resource-tls-v4.3.0-darwin-arm64.tar.gz"; - sha256 = "16rnbbzx6fsck769sqghb9gqkkpl6vwbpczm8wrfa5ya90743mcm"; + url = "https://api.pulumi.com/releases/plugins/pulumi-resource-tls-v4.6.0-darwin-arm64.tar.gz"; + sha256 = "143qpa51q6fl2s759fjhfq6z2fqwkqcwfpzmzsxdjh74mfqz5xpz"; } { - url = "https://api.pulumi.com/releases/plugins/pulumi-resource-vault-v5.4.1-darwin-arm64.tar.gz"; - sha256 = "0h423svxl2qfpgv4xl4kf3y2zsjz5lwndmvxjm9g8i01k9mn3v30"; + url = "https://api.pulumi.com/releases/plugins/pulumi-resource-vault-v5.5.0-darwin-arm64.tar.gz"; + sha256 = "170iwzg3dnr8ysj882ws6c7vwkziw5a04bsddkrmy7j7d37r8gla"; } { url = "https://api.pulumi.com/releases/plugins/pulumi-resource-venafi-v1.4.1-darwin-arm64.tar.gz"; diff --git a/pkgs/tools/admin/pulumi/update-pulumi-shell.nix b/pkgs/tools/admin/pulumi/update-pulumi-shell.nix index cf69e640550d..a972b633abb0 100644 --- a/pkgs/tools/admin/pulumi/update-pulumi-shell.nix +++ b/pkgs/tools/admin/pulumi/update-pulumi-shell.nix @@ -5,4 +5,3 @@ mkShell { pkgs.gh ]; } - diff --git a/pkgs/tools/admin/pulumi/update.sh b/pkgs/tools/admin/pulumi/update.sh index 1097759c3bd6..0c8a3b38294d 100755 --- a/pkgs/tools/admin/pulumi/update.sh +++ b/pkgs/tools/admin/pulumi/update.sh @@ -12,7 +12,7 @@ SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd ) # Version of Pulumi from # https://www.pulumi.com/docs/get-started/install/versions/ -VERSION="3.31.0" +VERSION="3.34.1" # An array of plugin names. The respective repository inside Pulumi's # Github organization is called pulumi-$name by convention. @@ -109,8 +109,6 @@ function genSrcs() { local tmpdir tmpdir="$(mktemp -d)" - local i=0 - for plugVers in "${plugins[@]}"; do local plug=${plugVers%=*} local version=${plugVers#*=} @@ -118,7 +116,6 @@ function genSrcs() { # https://github.com/pulumi/pulumi/blob/06d4dde8898b2a0de2c3c7ff8e45f97495b89d82/pkg/workspace/plugins.go#L197 local url="https://api.pulumi.com/releases/plugins/pulumi-resource-${plug}-v${version}-${1}-${2}.tar.gz" genSrc "${url}" "${plug}" "${tmpdir}" & - ((++i)) done wait From 42ff489d5393629b3ac06f865adc3e5c87c8a33b Mon Sep 17 00:00:00 2001 From: Sandro Date: Sun, 19 Jun 2022 11:30:48 +0200 Subject: [PATCH 311/336] pokete: drop default platform --- pkgs/games/pokete/default.nix | 1 - 1 file changed, 1 deletion(-) diff --git a/pkgs/games/pokete/default.nix b/pkgs/games/pokete/default.nix index 8ddea5cbbcea..9d4469e1705c 100644 --- a/pkgs/games/pokete/default.nix +++ b/pkgs/games/pokete/default.nix @@ -50,6 +50,5 @@ python3.pkgs.buildPythonApplication rec { homepage = "https://lxgr-linux.github.io/pokete"; license = licenses.gpl3Only; maintainers = with maintainers; [ fgaz ]; - platforms = platforms.unix; }; } From c61afdfeb15451f999173b1097b375ae261f37aa Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Sun, 19 Jun 2022 09:39:42 +0000 Subject: [PATCH 312/336] python310Packages.gidgethub: 5.1.0 -> 5.2.0 --- pkgs/development/python-modules/gidgethub/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/gidgethub/default.nix b/pkgs/development/python-modules/gidgethub/default.nix index 327672bad1bd..144a48f59324 100644 --- a/pkgs/development/python-modules/gidgethub/default.nix +++ b/pkgs/development/python-modules/gidgethub/default.nix @@ -14,14 +14,14 @@ buildPythonPackage rec { pname = "gidgethub"; - version = "5.1.0"; + version = "5.2.0"; format = "flit"; disabled = pythonOlder "3.6"; src = fetchPypi { inherit pname version; - sha256 = "sha256-kNGTb6mA2XBaljYvpOWaKFEks3NigsiPgmdIgSMKTiU="; + sha256 = "sha256-w1m3aRlOcvmE0uMo3g7o64G3AjQrCkTcXOuskhBOz0s="; }; propagatedBuildInputs = [ From e339c5a0416bd87d35dc0c4aa1d1b4cd18cd2682 Mon Sep 17 00:00:00 2001 From: Pavol Rusnak Date: Sun, 19 Jun 2022 11:44:46 +0200 Subject: [PATCH 313/336] tor: 0.4.7.7 -> 0.4.7.8 --- pkgs/tools/security/tor/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/tools/security/tor/default.nix b/pkgs/tools/security/tor/default.nix index 90485ae817ed..75492e877386 100644 --- a/pkgs/tools/security/tor/default.nix +++ b/pkgs/tools/security/tor/default.nix @@ -30,11 +30,11 @@ let in stdenv.mkDerivation rec { pname = "tor"; - version = "0.4.7.7"; + version = "0.4.7.8"; src = fetchurl { url = "https://dist.torproject.org/${pname}-${version}.tar.gz"; - sha256 = "sha256-PhMRWLUrlDXX5D0cR+8oi5bQBTQsxEuMlQu0A4UaW0Q="; + sha256 = "sha256-nppcZ60qzdXw+L4U7Vkf7QdrFwir+DRAZpkKD6Zv4ZU="; }; outputs = [ "out" "geoip" ]; From 2cca676e6962cb3618c91ba4103b6a03ff66d9e8 Mon Sep 17 00:00:00 2001 From: Florian Klink Date: Sun, 19 Jun 2022 11:26:55 +0200 Subject: [PATCH 314/336] nixos/grafana-agent: replace `settings.prometheus` with `settings.metrics` According to https://github.com/grafana/agent/pull/1540, -prometheus.* flages were deprecated in 0.19.0 in favor of the -metrics.* counterparts. Same applies to `loki` being renamed to `logs`. I'm not sure if the config file format is still supported (it could be), but we shouldn't use deprecated configs. --- nixos/modules/services/monitoring/grafana-agent.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nixos/modules/services/monitoring/grafana-agent.nix b/nixos/modules/services/monitoring/grafana-agent.nix index 021ddaa8ee0d..c8d45c37b4d2 100644 --- a/nixos/modules/services/monitoring/grafana-agent.nix +++ b/nixos/modules/services/monitoring/grafana-agent.nix @@ -56,7 +56,7 @@ in # Don't bind on the default port 80 http_listen_port = 9090; }; - prometheus = { + metrics = { wal_directory = "\${STATE_DIRECTORY}"; global.scrape_interval = "5s"; }; @@ -69,7 +69,7 @@ in }; example = { - loki.configs = [{ + logs.configs = [{ name = "default"; scrape_configs = [ { From e578b4d3ed8068b85a27c5c7b9e135f2af2d7f21 Mon Sep 17 00:00:00 2001 From: Florian Klink Date: Sun, 19 Jun 2022 11:33:19 +0200 Subject: [PATCH 315/336] nixos/grafana-agent: drop server.{grpc,http}_listen_address,http_listen_port According to https://grafana.com/docs/agent/latest/upgrade-guide/#v0240, this has been deprecated/moved to -server.http.address and -server.grpc.address (accepting ip and port) config options in v0.24.0, and already listens on localhost and not port 80 by default. --- nixos/modules/services/monitoring/grafana-agent.nix | 7 ------- 1 file changed, 7 deletions(-) diff --git a/nixos/modules/services/monitoring/grafana-agent.nix b/nixos/modules/services/monitoring/grafana-agent.nix index c8d45c37b4d2..887dce0113a3 100644 --- a/nixos/modules/services/monitoring/grafana-agent.nix +++ b/nixos/modules/services/monitoring/grafana-agent.nix @@ -49,13 +49,6 @@ in }; default = { - server = { - # Don't bind on 0.0.0.0 - grpc_listen_address = "127.0.0.1"; - http_listen_address = "127.0.0.1"; - # Don't bind on the default port 80 - http_listen_port = 9090; - }; metrics = { wal_directory = "\${STATE_DIRECTORY}"; global.scrape_interval = "5s"; From b09836593ede3de62cf2caf0351501a9575bbd06 Mon Sep 17 00:00:00 2001 From: Florian Klink Date: Sun, 19 Jun 2022 11:41:44 +0200 Subject: [PATCH 316/336] nixos/grafana-agent: move remote write config from integrations.prometheus_remote_write to metrics.global.remote_write remote_write config in integrations.prometheus_remote_write is only applied for integrations, so static configurations won't get written anywhere. --- nixos/modules/services/monitoring/grafana-agent.nix | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/nixos/modules/services/monitoring/grafana-agent.nix b/nixos/modules/services/monitoring/grafana-agent.nix index 887dce0113a3..fcc028b1b9c4 100644 --- a/nixos/modules/services/monitoring/grafana-agent.nix +++ b/nixos/modules/services/monitoring/grafana-agent.nix @@ -62,6 +62,11 @@ in }; example = { + metrics.global.remote_write = [{ + url = "\${METRICS_REMOTE_WRITE_URL}"; + basic_auth.username = "\${METRICS_REMOTE_WRITE_USERNAME}"; + basic_auth.password_file = "\${CREDENTIALS_DIRECTORY}/metrics_remote_write_password"; + }]; logs.configs = [{ name = "default"; scrape_configs = [ @@ -94,13 +99,6 @@ in basic_auth.password_file = "\${CREDENTIALS_DIRECTORY}/logs_remote_write_password"; }]; }]; - integrations = { - prometheus_remote_write = [{ - url = "\${METRICS_REMOTE_WRITE_URL}"; - basic_auth.username = "\${METRICS_REMOTE_WRITE_USERNAME}"; - basic_auth.password_file = "\${CREDENTIALS_DIRECTORY}/metrics_remote_write_password"; - }]; - }; }; }; }; From 5f297c164eed6f4b72ca0337698037a003354d28 Mon Sep 17 00:00:00 2001 From: Florian Klink Date: Sun, 19 Jun 2022 11:49:34 +0200 Subject: [PATCH 317/336] nixos/grafana-agent: add myself as maintainer --- nixos/modules/services/monitoring/grafana-agent.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/modules/services/monitoring/grafana-agent.nix b/nixos/modules/services/monitoring/grafana-agent.nix index fcc028b1b9c4..bbeda1846470 100644 --- a/nixos/modules/services/monitoring/grafana-agent.nix +++ b/nixos/modules/services/monitoring/grafana-agent.nix @@ -7,7 +7,7 @@ let in { meta = { - maintainers = with maintainers; [ zimbatm ]; + maintainers = with maintainers; [ flokli zimbatm ]; }; options.services.grafana-agent = { From 07d6e3fa99e4d8d8cd808599769572a9e18a6d07 Mon Sep 17 00:00:00 2001 From: colin Date: Sat, 18 Jun 2022 16:16:40 -0700 Subject: [PATCH 318/336] maintainers: add colinsane --- maintainers/maintainer-list.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix index 8240f18ce1b6..87bba9e271b9 100644 --- a/maintainers/maintainer-list.nix +++ b/maintainers/maintainer-list.nix @@ -2523,6 +2523,13 @@ fingerprint = "68B8 0D57 B2E5 4AC3 EC1F 49B0 B37E 0F23 7101 6A4C"; }]; }; + colinsane = { + name = "Colin Sane"; + email = "colin@uninsane.org"; + matrix = "@colin:uninsane.org"; + github = "uninsane"; + githubId = 106709944; + }; collares = { email = "mauricio@collares.org"; github = "collares"; From b5ad148a637e03e02bec67208766d75f55d31707 Mon Sep 17 00:00:00 2001 From: colin Date: Fri, 3 Jun 2022 20:16:39 -0700 Subject: [PATCH 319/336] whalebird: 4.5.4 -> 4.6.0; add aarch64 support Whalebird distributes debs only for x86_64. but it distributes compiled .tar.bz2's for x86_64 and aarch64. aarch64 support requires us to change the build script to use these tarballs instead of the debs. --- pkgs/applications/misc/whalebird/default.nix | 60 ++++++++++++++------ 1 file changed, 44 insertions(+), 16 deletions(-) diff --git a/pkgs/applications/misc/whalebird/default.nix b/pkgs/applications/misc/whalebird/default.nix index 9b8a7f0a348a..f49b14e8fc48 100644 --- a/pkgs/applications/misc/whalebird/default.nix +++ b/pkgs/applications/misc/whalebird/default.nix @@ -1,28 +1,51 @@ -{ lib, stdenv, fetchurl, dpkg, autoPatchelfHook, makeWrapper, electron +{ lib, stdenv, fetchurl, autoPatchelfHook, makeDesktopItem, copyDesktopItems, makeWrapper, electron , nodePackages, alsa-lib, gtk3, libdbusmenu, libxshmfence, mesa, nss }: stdenv.mkDerivation rec { pname = "whalebird"; - version = "4.5.4"; + version = "4.6.0"; - src = fetchurl { - url = "https://github.com/h3poteto/whalebird-desktop/releases/download/${version}/Whalebird-${version}-linux-x64.deb"; - sha256 = "048c2hpnlzjli8r1lcm7hd32qfsq4p9vkimrgc049yw9f15ndjpr"; - }; + src = let + downloads = "https://github.com/h3poteto/whalebird-desktop/releases/download/${version}"; + in + if stdenv.system == "x86_64-linux" then + fetchurl { + url = downloads + "/Whalebird-${version}-linux-x64.tar.bz2"; + sha256 = "02f2f4b7184494926ef58523174acfa23738d5f27b4956d094836a485047c2f8"; + } + else if stdenv.system == "aarch64-linux" then + fetchurl { + url = downloads + "/Whalebird-${version}-linux-arm64.tar.bz2"; + sha256 = "de0cdf7cbd6f0305100a2440e2559ddce0a5e4ad73a341874d6774e23dc76974"; + } + else + throw "Whalebird is not supported for ${stdenv.system}"; nativeBuildInputs = [ - dpkg autoPatchelfHook makeWrapper + copyDesktopItems nodePackages.asar ]; buildInputs = [ alsa-lib gtk3 libdbusmenu libxshmfence mesa nss ]; - dontConfigure = true; + desktopItems = [ + (makeDesktopItem { + desktopName = "Whalebird"; + comment = meta.description; + categories = [ "Network" ]; + exec = "whalebird"; + icon = "whalebird"; + name = "whalebird"; + }) + ]; unpackPhase = '' - dpkg-deb -x ${src} ./ + mkdir -p opt + tar -xf ${src} -C opt + # remove the version/target suffix from the untar'd directory + mv opt/Whalebird-* opt/Whalebird ''; buildPhase = '' @@ -31,7 +54,7 @@ stdenv.mkDerivation rec { # Necessary steps to find the tray icon asar extract opt/Whalebird/resources/app.asar "$TMP/work" substituteInPlace $TMP/work/dist/electron/main.js \ - --replace "jo,\"tray_icon.png\"" "\"$out/opt/Whalebird/resources/build/icons/tray_icon.png\"" + --replace "Do,\"tray_icon.png\"" "\"$out/opt/Whalebird/resources/build/icons/tray_icon.png\"" asar pack --unpack='{*.node,*.ftz,rect-overlay}' "$TMP/work" opt/Whalebird/resources/app.asar runHook postBuild @@ -41,12 +64,17 @@ stdenv.mkDerivation rec { runHook preInstall mkdir $out - mv usr/share opt $out + mv opt $out + + # install icons + for icon in $out/opt/Whalebird/resources/build/icons/*.png; do + mkdir -p "$out/share/icons/hicolor/$(basename $icon .png)/apps" + ln -s "$icon" "$out/share/icons/hicolor/$(basename $icon .png)/apps/whalebird.png" + done - substituteInPlace $out/share/applications/whalebird.desktop \ - --replace '/opt/Whalebird' $out/bin makeWrapper ${electron}/bin/electron $out/bin/whalebird \ - --add-flags $out/opt/Whalebird/resources/app.asar + --add-flags $out/opt/Whalebird/resources/app.asar \ + --add-flags "\''${NIXOS_OZONE_WL:+\''${WAYLAND_DISPLAY:+--enable-features=UseOzonePlatform --ozone-platform=wayland}}" runHook postInstall ''; @@ -55,7 +83,7 @@ stdenv.mkDerivation rec { description = "Electron based Mastodon, Pleroma and Misskey client for Windows, Mac and Linux"; homepage = "https://whalebird.social"; license = licenses.mit; - maintainers = with maintainers; [ wolfangaukang ]; - platforms = [ "x86_64-linux" ]; + maintainers = with maintainers; [ wolfangaukang colinsane ]; + platforms = [ "x86_64-linux" "aarch64-linux" ]; }; } From cdbc6e64e4d988184b83c25d46387f11d274b991 Mon Sep 17 00:00:00 2001 From: Maximilian Bosch Date: Sun, 19 Jun 2022 12:07:43 +0200 Subject: [PATCH 320/336] treewide: reduce maintenance workload for ma27 Note: I DO NOT resign from nixpkgs, not at all! However, I like a clean notification inbox and I get a lot of stuff for packages where I'm only an end-user or don't use them anymore and thus can't help out that much. So please consider it a measure to reduce the mental load for me when going through my notifications ;-) --- pkgs/applications/editors/jetbrains/default.nix | 2 +- pkgs/applications/editors/neovim/default.nix | 2 +- pkgs/applications/misc/dmenu/wayland.nix | 2 +- pkgs/applications/window-managers/sway/default.nix | 2 +- pkgs/applications/window-managers/sway/lock-fancy.nix | 2 +- pkgs/development/mobile/adb-sync/default.nix | 2 +- pkgs/development/python-modules/face_recognition/default.nix | 2 +- .../python-modules/face_recognition_models/default.nix | 2 +- pkgs/development/python-modules/pytesseract/default.nix | 2 +- pkgs/development/tools/rust/cargo-make/default.nix | 2 +- pkgs/development/tools/wasm-bindgen-cli/default.nix | 2 +- pkgs/servers/documize-community/default.nix | 2 +- pkgs/servers/monitoring/prometheus/dnsmasq-exporter.nix | 2 +- pkgs/servers/web-apps/hedgedoc/default.nix | 2 +- pkgs/tools/misc/diffoscope/default.nix | 2 +- pkgs/tools/misc/docker-ls/default.nix | 2 +- pkgs/tools/misc/termtosvg/default.nix | 2 +- pkgs/tools/misc/youtube-dl/default.nix | 2 +- pkgs/tools/networking/bandwhich/default.nix | 2 +- 19 files changed, 19 insertions(+), 19 deletions(-) diff --git a/pkgs/applications/editors/jetbrains/default.nix b/pkgs/applications/editors/jetbrains/default.nix index 41c92a6d24e8..b06cb4d86245 100644 --- a/pkgs/applications/editors/jetbrains/default.nix +++ b/pkgs/applications/editors/jetbrains/default.nix @@ -162,7 +162,7 @@ let with on-the-fly code analysis, error prevention and automated refactorings for PHP and JavaScript code. ''; - maintainers = with maintainers; [ schristo ma27 ]; + maintainers = with maintainers; [ schristo ]; }; }); diff --git a/pkgs/applications/editors/neovim/default.nix b/pkgs/applications/editors/neovim/default.nix index cd046b1871fa..022916c388dc 100644 --- a/pkgs/applications/editors/neovim/default.nix +++ b/pkgs/applications/editors/neovim/default.nix @@ -133,7 +133,7 @@ in # those contributions were copied from Vim (identified in the commit logs # by the vim-patch token). See LICENSE for details." license = with licenses; [ asl20 vim ]; - maintainers = with maintainers; [ manveru rvolosatovs ma27 ]; + maintainers = with maintainers; [ manveru rvolosatovs ]; platforms = platforms.unix; }; } diff --git a/pkgs/applications/misc/dmenu/wayland.nix b/pkgs/applications/misc/dmenu/wayland.nix index 6b8f92ddb1c2..8e4a98af1381 100644 --- a/pkgs/applications/misc/dmenu/wayland.nix +++ b/pkgs/applications/misc/dmenu/wayland.nix @@ -39,6 +39,6 @@ stdenv.mkDerivation rec { platforms = platforms.linux; description = "dmenu for wayland-compositors"; homepage = "https://github.com/nyyManni/dmenu-wayland"; - maintainers = with maintainers; [ ma27 ]; + maintainers = with maintainers; [ ]; }; } diff --git a/pkgs/applications/window-managers/sway/default.nix b/pkgs/applications/window-managers/sway/default.nix index 1b6625751345..61925e4ed0be 100644 --- a/pkgs/applications/window-managers/sway/default.nix +++ b/pkgs/applications/window-managers/sway/default.nix @@ -90,6 +90,6 @@ stdenv.mkDerivation rec { changelog = "https://github.com/swaywm/sway/releases/tag/${version}"; license = licenses.mit; platforms = platforms.linux; - maintainers = with maintainers; [ primeos synthetica ma27 ]; + maintainers = with maintainers; [ primeos synthetica ]; }; } diff --git a/pkgs/applications/window-managers/sway/lock-fancy.nix b/pkgs/applications/window-managers/sway/lock-fancy.nix index 8ca1dd778775..2eb817b9b1f8 100644 --- a/pkgs/applications/window-managers/sway/lock-fancy.nix +++ b/pkgs/applications/window-managers/sway/lock-fancy.nix @@ -46,6 +46,6 @@ in stdenv.mkDerivation rec { homepage = "https://github.com/Big-B/swaylock-fancy"; license = licenses.mit; platforms = platforms.linux; - maintainers = with maintainers; [ ma27 ]; + maintainers = with maintainers; [ ]; }; } diff --git a/pkgs/development/mobile/adb-sync/default.nix b/pkgs/development/mobile/adb-sync/default.nix index c88ac5dbca5e..90087c48ddda 100644 --- a/pkgs/development/mobile/adb-sync/default.nix +++ b/pkgs/development/mobile/adb-sync/default.nix @@ -38,6 +38,6 @@ stdenv.mkDerivation { license = licenses.asl20; platforms = platforms.unix; hydraPlatforms = []; - maintainers = with maintainers; [ scolobb ma27 ]; + maintainers = with maintainers; [ scolobb ]; }; } diff --git a/pkgs/development/python-modules/face_recognition/default.nix b/pkgs/development/python-modules/face_recognition/default.nix index 6b2c6411aa1f..b0c5266d6fb1 100644 --- a/pkgs/development/python-modules/face_recognition/default.nix +++ b/pkgs/development/python-modules/face_recognition/default.nix @@ -36,7 +36,7 @@ buildPythonPackage rec { meta = with lib; { license = licenses.mit; homepage = "https://github.com/ageitgey/face_recognition"; - maintainers = with maintainers; [ ma27 ]; + maintainers = with maintainers; [ ]; description = "The world's simplest facial recognition api for Python and the command line"; }; } diff --git a/pkgs/development/python-modules/face_recognition_models/default.nix b/pkgs/development/python-modules/face_recognition_models/default.nix index 6ec2634029b3..ccf20f494998 100644 --- a/pkgs/development/python-modules/face_recognition_models/default.nix +++ b/pkgs/development/python-modules/face_recognition_models/default.nix @@ -17,7 +17,7 @@ buildPythonPackage rec { meta = with lib; { homepage = "https://github.com/ageitgey/face_recognition_models"; license = licenses.cc0; - maintainers = with maintainers; [ ma27 ]; + maintainers = with maintainers; [ ]; description = "Trained models for the face_recognition python library"; }; } diff --git a/pkgs/development/python-modules/pytesseract/default.nix b/pkgs/development/python-modules/pytesseract/default.nix index c99e6acbfbfe..a2fa23834a6e 100644 --- a/pkgs/development/python-modules/pytesseract/default.nix +++ b/pkgs/development/python-modules/pytesseract/default.nix @@ -36,6 +36,6 @@ buildPythonPackage rec { homepage = "https://pypi.org/project/pytesseract/"; license = licenses.asl20; description = "A Python wrapper for Google Tesseract"; - maintainers = with maintainers; [ ma27 ]; + maintainers = with maintainers; [ ]; }; } diff --git a/pkgs/development/tools/rust/cargo-make/default.nix b/pkgs/development/tools/rust/cargo-make/default.nix index 92439d2a572b..d099bf5f8765 100644 --- a/pkgs/development/tools/rust/cargo-make/default.nix +++ b/pkgs/development/tools/rust/cargo-make/default.nix @@ -37,6 +37,6 @@ rustPlatform.buildRustPackage rec { description = "A Rust task runner and build tool"; homepage = "https://github.com/sagiegurari/cargo-make"; license = licenses.asl20; - maintainers = with maintainers; [ xrelkd ma27 ]; + maintainers = with maintainers; [ xrelkd ]; }; } diff --git a/pkgs/development/tools/wasm-bindgen-cli/default.nix b/pkgs/development/tools/wasm-bindgen-cli/default.nix index e239de15b24f..14e140229dfd 100644 --- a/pkgs/development/tools/wasm-bindgen-cli/default.nix +++ b/pkgs/development/tools/wasm-bindgen-cli/default.nix @@ -34,7 +34,7 @@ rustPlatform.buildRustPackage rec { homepage = "https://rustwasm.github.io/docs/wasm-bindgen/"; license = with licenses; [ asl20 /* or */ mit ]; description = "Facilitating high-level interactions between wasm modules and JavaScript"; - maintainers = with maintainers; [ ma27 nitsky rizary ]; + maintainers = with maintainers; [ nitsky rizary ]; mainProgram = "wasm-bindgen"; }; } diff --git a/pkgs/servers/documize-community/default.nix b/pkgs/servers/documize-community/default.nix index 66ba25f8bf4b..3a49ad012ff5 100644 --- a/pkgs/servers/documize-community/default.nix +++ b/pkgs/servers/documize-community/default.nix @@ -33,7 +33,7 @@ buildGoModule rec { meta = with lib; { description = "Open source Confluence alternative for internal & external docs built with Golang + EmberJS"; license = licenses.agpl3; - maintainers = with maintainers; [ ma27 elseym ]; + maintainers = with maintainers; [ elseym ]; mainProgram = "documize"; homepage = "https://www.documize.com/"; }; diff --git a/pkgs/servers/monitoring/prometheus/dnsmasq-exporter.nix b/pkgs/servers/monitoring/prometheus/dnsmasq-exporter.nix index 875db1777fba..a171051223bc 100644 --- a/pkgs/servers/monitoring/prometheus/dnsmasq-exporter.nix +++ b/pkgs/servers/monitoring/prometheus/dnsmasq-exporter.nix @@ -21,6 +21,6 @@ buildGoModule rec { inherit (src.meta) homepage; description = "A dnsmasq exporter for Prometheus"; license = licenses.asl20; - maintainers = with maintainers; [ willibutz globin ma27 ]; + maintainers = with maintainers; [ willibutz globin ]; }; } diff --git a/pkgs/servers/web-apps/hedgedoc/default.nix b/pkgs/servers/web-apps/hedgedoc/default.nix index c38aac202d21..92f1713372ff 100644 --- a/pkgs/servers/web-apps/hedgedoc/default.nix +++ b/pkgs/servers/web-apps/hedgedoc/default.nix @@ -116,7 +116,7 @@ mkYarnPackage rec { description = "Realtime collaborative markdown notes on all platforms"; license = licenses.agpl3; homepage = "https://hedgedoc.org"; - maintainers = with maintainers; [ willibutz ma27 globin ]; + maintainers = with maintainers; [ willibutz globin ]; platforms = platforms.linux; }; } diff --git a/pkgs/tools/misc/diffoscope/default.nix b/pkgs/tools/misc/diffoscope/default.nix index 9d046e7aff48..ae0a38b6d316 100644 --- a/pkgs/tools/misc/diffoscope/default.nix +++ b/pkgs/tools/misc/diffoscope/default.nix @@ -125,7 +125,7 @@ python3Packages.buildPythonApplication rec { ''; homepage = "https://diffoscope.org/"; license = licenses.gpl3Plus; - maintainers = with maintainers; [ dezgeg ma27 danielfullmer ]; + maintainers = with maintainers; [ dezgeg danielfullmer ]; platforms = platforms.unix; }; } diff --git a/pkgs/tools/misc/docker-ls/default.nix b/pkgs/tools/misc/docker-ls/default.nix index a56107ebce13..230887ffd09f 100644 --- a/pkgs/tools/misc/docker-ls/default.nix +++ b/pkgs/tools/misc/docker-ls/default.nix @@ -22,7 +22,7 @@ buildGoModule rec { ''; homepage = "https://github.com/mayflower/docker-ls"; - maintainers = with maintainers; [ ma27 ]; + maintainers = with maintainers; [ ]; platforms = docker.meta.platforms; license = licenses.mit; }; diff --git a/pkgs/tools/misc/termtosvg/default.nix b/pkgs/tools/misc/termtosvg/default.nix index a89ed808c8b1..a4e624f18f31 100644 --- a/pkgs/tools/misc/termtosvg/default.nix +++ b/pkgs/tools/misc/termtosvg/default.nix @@ -15,6 +15,6 @@ python3Packages.buildPythonApplication rec { homepage = "https://nbedos.github.io/termtosvg/"; description = "Record terminal sessions as SVG animations"; license = licenses.bsd3; - maintainers = with maintainers; [ ma27 ]; + maintainers = with maintainers; [ ]; }; } diff --git a/pkgs/tools/misc/youtube-dl/default.nix b/pkgs/tools/misc/youtube-dl/default.nix index faf4b558ad64..fd038d7acb12 100644 --- a/pkgs/tools/misc/youtube-dl/default.nix +++ b/pkgs/tools/misc/youtube-dl/default.nix @@ -75,7 +75,7 @@ buildPythonPackage rec { it however you like. ''; license = licenses.publicDomain; - maintainers = with maintainers; [ bluescreen303 fpletz ma27 ]; + maintainers = with maintainers; [ bluescreen303 fpletz ]; platforms = with platforms; linux ++ darwin; }; } diff --git a/pkgs/tools/networking/bandwhich/default.nix b/pkgs/tools/networking/bandwhich/default.nix index 35d342beb1a9..07483f24e226 100644 --- a/pkgs/tools/networking/bandwhich/default.nix +++ b/pkgs/tools/networking/bandwhich/default.nix @@ -37,7 +37,7 @@ rustPlatform.buildRustPackage rec { ''; homepage = "https://github.com/imsnif/bandwhich"; license = licenses.mit; - maintainers = with maintainers; [ Br1ght0ne ma27 SuperSandro2000 ]; + maintainers = with maintainers; [ Br1ght0ne SuperSandro2000 ]; platforms = platforms.unix; }; } From 8b926cad93f2b5a6d265312d415918cd80bed3f6 Mon Sep 17 00:00:00 2001 From: Florian Klink Date: Sun, 19 Jun 2022 12:23:06 +0200 Subject: [PATCH 321/336] nixos/tests/grafana-agent: update port We now don't explicitly configure a self-chosen port, but use the default port choosen by grafana, 12345. --- nixos/tests/grafana-agent.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nixos/tests/grafana-agent.nix b/nixos/tests/grafana-agent.nix index 97f752b350b0..a9f34d8cea31 100644 --- a/nixos/tests/grafana-agent.nix +++ b/nixos/tests/grafana-agent.nix @@ -23,9 +23,9 @@ import ./make-test-python.nix ({ lib, pkgs, ... }: with subtest("Grafana-agent is running"): machine.wait_for_unit("grafana-agent.service") - machine.wait_for_open_port(9090) + machine.wait_for_open_port(12345) machine.succeed( - "curl -sSfN http://127.0.0.1:9090/-/healthy" + "curl -sSfN http://127.0.0.1:12345/-/healthy" ) machine.shutdown() ''; From 0725c07445a66204279941761cd89b49b4acbdfe Mon Sep 17 00:00:00 2001 From: zowoq <59103226+zowoq@users.noreply.github.com> Date: Sat, 18 Jun 2022 20:31:43 +1000 Subject: [PATCH 322/336] editorconfig-checker: 2.4.0 -> 2.5.0 https://github.com/editorconfig-checker/editorconfig-checker/releases/tag/2.5.0 --- pkgs/development/tools/misc/editorconfig-checker/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/tools/misc/editorconfig-checker/default.nix b/pkgs/development/tools/misc/editorconfig-checker/default.nix index 13377334cce4..ff9593532642 100644 --- a/pkgs/development/tools/misc/editorconfig-checker/default.nix +++ b/pkgs/development/tools/misc/editorconfig-checker/default.nix @@ -2,13 +2,13 @@ buildGoModule rec { pname = "editorconfig-checker"; - version = "2.4.0"; + version = "2.5.0"; src = fetchFromGitHub { owner = "editorconfig-checker"; repo = "editorconfig-checker"; rev = version; - sha256 = "sha256-uP+AgQO1k9fic7r0pOKqO5lUHKEf7Pwaw2U2a6ghzz0="; + sha256 = "sha256-zbE/je5ZxCX83hxl88c8/FoZzOLatrSEjSAI+eIOVQQ="; }; vendorSha256 = "sha256-SrBrYyExeDHXhezvtfGLtm8NM1eX4/8kzwUICQLZDjo="; From 90bb71296939da76cc530322ef50b9d52e606ce9 Mon Sep 17 00:00:00 2001 From: Astro Date: Sun, 19 Jun 2022 12:11:11 +0200 Subject: [PATCH 323/336] deadnix: 0.1.5 -> 0.1.6 --- pkgs/development/tools/deadnix/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/development/tools/deadnix/default.nix b/pkgs/development/tools/deadnix/default.nix index 3de058fb70c3..53f30595cef6 100644 --- a/pkgs/development/tools/deadnix/default.nix +++ b/pkgs/development/tools/deadnix/default.nix @@ -5,16 +5,16 @@ rustPlatform.buildRustPackage rec { pname = "deadnix"; - version = "0.1.5"; + version = "0.1.6"; src = fetchFromGitHub { owner = "astro"; repo = "deadnix"; rev = "v${version}"; - sha256 = "1fyagp6m6adwfcisi1zvs5dflcvrmpx4q1fr8pqzb93zv4m3ar84"; + sha256 = "sha256-a3zEPblkvj9cjGEQB6LKqB+h8C2df7p+IgkwqsUptmY="; }; - cargoSha256 = "102akpvs2hvf5hl9rh5cspxzqly68wk7qhx0g1zhfp1ka58gnr4p"; + cargoSha256 = "sha256-zMVXl7kJEavv5zfSm0bTYtd8J3j/LtY3ikPUK2hod+E="; meta = with lib; { description = "Find and remove unused code in .nix source files"; From 970cd2643dea85034ad8e658e16fa946439f345b Mon Sep 17 00:00:00 2001 From: kilianar Date: Sat, 18 Jun 2022 05:34:18 +0200 Subject: [PATCH 324/336] statix: 0.5.4 -> 0.5.6 --- pkgs/tools/nix/statix/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/tools/nix/statix/default.nix b/pkgs/tools/nix/statix/default.nix index d25f51ae5aa2..e4e3cb857503 100644 --- a/pkgs/tools/nix/statix/default.nix +++ b/pkgs/tools/nix/statix/default.nix @@ -5,16 +5,16 @@ rustPlatform.buildRustPackage rec { # also update version of the vim plugin in # pkgs/applications/editors/vim/plugins/overrides.nix # the version can be found in flake.nix of the source code - version = "0.5.4"; + version = "0.5.6"; src = fetchFromGitHub { owner = "nerdypepper"; repo = pname; rev = "v${version}"; - sha256 = "sha256-9208bR3awxXR1MSh9HbsKeen5V4r4hPuJFkK/CMJRfg="; + sha256 = "sha256-OQk80eTUufVUbYvZ38el2lmkgkU+5gr0hLTrBvzIp4A="; }; - cargoSha256 = "sha256-f1/PMbXUiqjFI8Y0mvgEyNqGGYqGq3nV094mg1aZIHM="; + cargoSha256 = "sha256-j+FcV5JtO66Aa0ncIUfjuWtqnMmFb7zW7rNXttYBUU4="; buildFeatures = lib.optional withJson "json"; From ce505a39845b93e48f125ededeaaec6f597df43f Mon Sep 17 00:00:00 2001 From: Matthieu Coudron Date: Sun, 19 Jun 2022 14:18:16 +0200 Subject: [PATCH 325/336] vimPlugins: use lua derivation if it exists (#178180) Neovim plugins are now more often than not written in lua. One advantage of the lua ecosystem over vim's is the existence of luarocks and the rockspec format, which allows to specify a package dependencies formally. I would like more neovim plugins to have a formal description, "rockspec" being the current candidate. This MR allows to use nix lua packages as neovim plugins, so as to enjoy every benefit that rockspecs bring: - dependdency discovery - ability to run test suite - luarocks versioning - rockspec metadata the vim update.py script will check if an attribute with the vim plugin pname exists in lua51Packages. If it does, it uses buildNeovimPluginFrom2Nix on it, which modifies the luarocks config to do an almost flat install (luarocks will install the package in the lua folder instead of share/5.1/lua etc). It also calls toVimPlugin on it to get all the vim plugin niceties. The list of packages that could benefit from this is available at https://luarocks.org/labels/neovim but I hope it grows. --- .../editors/neovim/build-neovim-plugin.nix | 35 ++++++++++++++++++ pkgs/applications/editors/neovim/utils.nix | 7 ++++ .../editors/vim/plugins/build-vim-plugin.nix | 10 ++--- .../editors/vim/plugins/default.nix | 22 +++-------- .../editors/vim/plugins/generated.nix | 8 ++-- .../editors/vim/plugins/vim-utils.nix | 37 ++++++++++++------- .../interpreters/lua-5/hooks/default.nix | 8 ++++ .../lua-5/hooks/luarocks-move-data.sh | 15 ++++++++ pkgs/top-level/all-packages.nix | 4 +- pkgs/top-level/lua-packages.nix | 2 +- 10 files changed, 105 insertions(+), 43 deletions(-) create mode 100644 pkgs/applications/editors/neovim/build-neovim-plugin.nix create mode 100644 pkgs/development/interpreters/lua-5/hooks/luarocks-move-data.sh diff --git a/pkgs/applications/editors/neovim/build-neovim-plugin.nix b/pkgs/applications/editors/neovim/build-neovim-plugin.nix new file mode 100644 index 000000000000..cb69b5ecacdb --- /dev/null +++ b/pkgs/applications/editors/neovim/build-neovim-plugin.nix @@ -0,0 +1,35 @@ +{ lib +, stdenv +, buildVimPluginFrom2Nix +, buildLuarocksPackage +, lua51Packages +, toVimPlugin +}: +let + # sanitizeDerivationName + normalizeName = lib.replaceStrings [ "." ] [ "-" ]; +in + + # function to create vim plugin from lua packages that are already packaged in + # luaPackages + { + # the lua attribute name that matches this vim plugin. Both should be equal + # in the majority of cases but we make it possible to have different attribute names + luaAttr ? (normalizeName attrs.pname) + , ... + }@attrs: + let + originalLuaDrv = lua51Packages.${luaAttr}; + luaDrv = lua51Packages.lib.overrideLuarocks originalLuaDrv (drv: { + extraConfig = '' + -- to create a flat hierarchy + lua_modules_path = "lua" + ''; + }); + finalDrv = toVimPlugin (luaDrv.overrideAttrs(oa: { + nativeBuildInputs = oa.nativeBuildInputs or [] ++ [ + lua51Packages.luarocksMoveDataFolder + ]; + })); + in + finalDrv diff --git a/pkgs/applications/editors/neovim/utils.nix b/pkgs/applications/editors/neovim/utils.nix index ee0abb582891..16b19f63d2d3 100644 --- a/pkgs/applications/editors/neovim/utils.nix +++ b/pkgs/applications/editors/neovim/utils.nix @@ -1,4 +1,6 @@ { lib +, buildLuarocksPackage +, callPackage , vimUtils , nodejs , neovim-unwrapped @@ -184,4 +186,9 @@ in { inherit makeNeovimConfig; inherit legacyWrapper; + + buildNeovimPluginFrom2Nix = callPackage ./build-neovim-plugin.nix { + inherit (vimUtils) buildVimPluginFrom2Nix toVimPlugin; + inherit buildLuarocksPackage; + }; } diff --git a/pkgs/applications/editors/vim/plugins/build-vim-plugin.nix b/pkgs/applications/editors/vim/plugins/build-vim-plugin.nix index 6b4cf674ac5a..9e7bb1be2d5c 100644 --- a/pkgs/applications/editors/vim/plugins/build-vim-plugin.nix +++ b/pkgs/applications/editors/vim/plugins/build-vim-plugin.nix @@ -4,6 +4,7 @@ , vimCommandCheckHook , vimGenDocHook , neovimRequireCheckHook +, toVimPlugin }: rec { @@ -23,11 +24,6 @@ rec { let drv = stdenv.mkDerivation (attrs // { name = namePrefix + name; - # dont move the doc folder since vim expects it - forceShare= [ "man" "info" ]; - - nativeBuildInputs = attrs.nativeBuildInputs or [] - ++ lib.optionals (stdenv.hostPlatform == stdenv.buildPlatform) [ vimCommandCheckHook vimGenDocHook ]; inherit unpackPhase configurePhase buildPhase addonInfo preInstall postInstall; installPhase = '' @@ -40,9 +36,9 @@ rec { runHook postInstall ''; }); - in drv.overrideAttrs(oa: { + in toVimPlugin(drv.overrideAttrs(oa: { rtp = "${drv}"; - }); + })); buildVimPluginFrom2Nix = attrs: buildVimPlugin ({ # vim plugins may override this diff --git a/pkgs/applications/editors/vim/plugins/default.nix b/pkgs/applications/editors/vim/plugins/default.nix index c6ef409d637b..17e03b7dd76d 100644 --- a/pkgs/applications/editors/vim/plugins/default.nix +++ b/pkgs/applications/editors/vim/plugins/default.nix @@ -1,5 +1,8 @@ # TODO check that no license information gets lost -{ callPackage, config, lib, vimUtils, vim, darwin, llvmPackages, luaPackages }: +{ callPackage, config, lib, vimUtils, vim, darwin, llvmPackages +, neovimUtils +, luaPackages +}: let @@ -8,24 +11,11 @@ let inherit (lib) extends; - initialPackages = self: { - # Convert derivation to a vim plugin. - toVimPlugin = drv: - drv.overrideAttrs(oldAttrs: { - - nativeBuildInputs = oldAttrs.nativeBuildInputs or [] ++ [ - vimGenDocHook - vimCommandCheckHook - ]; - passthru = (oldAttrs.passthru or {}) // { - vimPlugin = true; - }; - }); - }; + initialPackages = self: { }; plugins = callPackage ./generated.nix { inherit buildVimPluginFrom2Nix; - inherit (vimUtils) buildNeovimPluginFrom2Nix; + inherit (neovimUtils) buildNeovimPluginFrom2Nix; }; # TL;DR diff --git a/pkgs/applications/editors/vim/plugins/generated.nix b/pkgs/applications/editors/vim/plugins/generated.nix index dac92940b6de..b11d09063f8a 100644 --- a/pkgs/applications/editors/vim/plugins/generated.nix +++ b/pkgs/applications/editors/vim/plugins/generated.nix @@ -2527,7 +2527,7 @@ final: prev: meta.homepage = "https://github.com/nvim-lua/diagnostic-nvim/"; }; - diffview-nvim = buildNeovimPluginFrom2Nix { + diffview-nvim = buildVimPluginFrom2Nix { pname = "diffview.nvim"; version = "2022-06-09"; src = fetchFromGitHub { @@ -3154,7 +3154,7 @@ final: prev: meta.homepage = "https://github.com/ruifm/gitlinker.nvim/"; }; - gitsigns-nvim = buildNeovimPluginFrom2Nix { + gitsigns-nvim = buildVimPluginFrom2Nix { pname = "gitsigns.nvim"; version = "2022-05-26"; src = fetchFromGitHub { @@ -4282,7 +4282,7 @@ final: prev: meta.homepage = "https://github.com/iamcco/markdown-preview.nvim/"; }; - marks-nvim = buildNeovimPluginFrom2Nix { + marks-nvim = buildVimPluginFrom2Nix { pname = "marks.nvim"; version = "2022-05-13"; src = fetchFromGitHub { @@ -5110,7 +5110,7 @@ final: prev: meta.homepage = "https://github.com/RRethy/nvim-base16/"; }; - nvim-biscuits = buildNeovimPluginFrom2Nix { + nvim-biscuits = buildVimPluginFrom2Nix { pname = "nvim-biscuits"; version = "2022-05-31"; src = fetchFromGitHub { diff --git a/pkgs/applications/editors/vim/plugins/vim-utils.nix b/pkgs/applications/editors/vim/plugins/vim-utils.nix index 1170771c62a1..4c6bb5d0da0f 100644 --- a/pkgs/applications/editors/vim/plugins/vim-utils.nix +++ b/pkgs/applications/editors/vim/plugins/vim-utils.nix @@ -205,9 +205,6 @@ let ln -sf ${plugin}/${rtpPath} $out/pack/${packageName}/${dir}/${lib.getName plugin} ''; - link = pluginPath: if hasLuaModule pluginPath - then linkLuaPlugin pluginPath - else linkVimlPlugin pluginPath; packageLinks = packageName: {start ? [], opt ? []}: let @@ -225,9 +222,9 @@ let [ "mkdir -p $out/pack/${packageName}/start" ] # To avoid confusion, even dependencies of optional plugins are added # to `start` (except if they are explicitly listed as optional plugins). - ++ (builtins.map (x: link x packageName "start") allPlugins) + ++ (builtins.map (x: linkVimlPlugin x packageName "start") allPlugins) ++ ["mkdir -p $out/pack/${packageName}/opt"] - ++ (builtins.map (x: link x packageName "opt") opt) + ++ (builtins.map (x: linkVimlPlugin x packageName "opt") opt) # Assemble all python3 dependencies into a single `site-packages` to avoid doing recursive dependency collection # for each plugin. # This directory is only for python import search path, and will not slow down the startup time. @@ -290,14 +287,14 @@ let /* vim-plug is an extremely popular vim plugin manager. */ plugImpl = - ('' + '' source ${vimPlugins.vim-plug.rtp}/plug.vim silent! call plug#begin('/dev/null') '' + (lib.concatMapStringsSep "\n" (pkg: "Plug '${pkg.rtp}'") plug.plugins) + '' call plug#end() - ''); + ''; /* vim-addon-manager = VAM @@ -533,16 +530,11 @@ rec { } ./neovim-require-check-hook.sh) {}; inherit (import ./build-vim-plugin.nix { - inherit lib stdenv rtpPath vim vimGenDocHook vimCommandCheckHook neovimRequireCheckHook; + inherit lib stdenv rtpPath vim vimGenDocHook + toVimPlugin vimCommandCheckHook neovimRequireCheckHook; }) buildVimPlugin buildVimPluginFrom2Nix; - # TODO placeholder to ease working on automatic plugin detection - # this should be a luarocks "flat" install with appropriate vim hooks - buildNeovimPluginFrom2Nix = attrs: let drv = (buildVimPluginFrom2Nix attrs); in drv.overrideAttrs(oa: { - nativeBuildInputs = oa.nativeBuildInputs ++ [ neovimRequireCheckHook ]; - }); - # used to figure out which python dependencies etc. neovim needs requiredPlugins = { packages ? {}, @@ -566,4 +558,21 @@ rec { nativePlugins = lib.concatMap ({start?[], opt?[], knownPlugins?vimPlugins}: start++opt) nativePluginsConfigs; in nativePlugins ++ nonNativePlugins; + + toVimPlugin = drv: + drv.overrideAttrs(oldAttrs: { + # dont move the "doc" folder since vim expects it + forceShare = [ "man" "info" ]; + + nativeBuildInputs = oldAttrs.nativeBuildInputs or [] + ++ lib.optionals (stdenv.hostPlatform == stdenv.buildPlatform) [ + vimCommandCheckHook vimGenDocHook + # many neovim plugins keep using buildVimPlugin + neovimRequireCheckHook + ]; + + passthru = (oldAttrs.passthru or {}) // { + vimPlugin = true; + }; + }); } diff --git a/pkgs/development/interpreters/lua-5/hooks/default.nix b/pkgs/development/interpreters/lua-5/hooks/default.nix index 61261ca3d046..fc92c59bb910 100644 --- a/pkgs/development/interpreters/lua-5/hooks/default.nix +++ b/pkgs/development/interpreters/lua-5/hooks/default.nix @@ -29,4 +29,12 @@ in { name = "luarocks-check-hook"; deps = [ luarocks ]; } ./luarocks-check-hook.sh) {}; + + # luarocks installs data in a non-overridable location. Until a proper luarocks patch, + # we move the files around ourselves + luarocksMoveDataFolder = callPackage ({ }: + makeSetupHook { + name = "luarocks-move-rock"; + deps = [ ]; + } ./luarocks-move-data.sh) {}; } diff --git a/pkgs/development/interpreters/lua-5/hooks/luarocks-move-data.sh b/pkgs/development/interpreters/lua-5/hooks/luarocks-move-data.sh new file mode 100644 index 000000000000..f0b56178f01e --- /dev/null +++ b/pkgs/development/interpreters/lua-5/hooks/luarocks-move-data.sh @@ -0,0 +1,15 @@ +# luarocks installs data in a non-overridable location. Until a proper luarocks patch, +# we move the files around ourselves +echo "Sourcing luarocks-move-data-hook.sh" + +luarocksMoveDataHook () { + echo "Executing luarocksMoveDataHook" + if [ -d "$out/$rocksSubdir" ]; then + cp -rfv "$out/$rocksSubdir/$pname/$version/." "$out" + fi + + echo "Finished executing luarocksMoveDataHook" +} + +echo "Using luarocksMoveDataHook" +preDistPhases+=" luarocksMoveDataHook" diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 943f7f9025cf..1089bee58a97 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -30449,7 +30449,9 @@ with pkgs; lua = luajit; }; - neovimUtils = callPackage ../applications/editors/neovim/utils.nix { }; + neovimUtils = callPackage ../applications/editors/neovim/utils.nix { + inherit (lua51Packages) buildLuarocksPackage; + }; neovim = wrapNeovim neovim-unwrapped { }; neovim-qt-unwrapped = libsForQt5.callPackage ../applications/editors/neovim/neovim-qt.nix { }; diff --git a/pkgs/top-level/lua-packages.nix b/pkgs/top-level/lua-packages.nix index 385aef164c2d..cb963bb1b177 100644 --- a/pkgs/top-level/lua-packages.nix +++ b/pkgs/top-level/lua-packages.nix @@ -50,7 +50,7 @@ in getLuaCPath = drv: getPath drv luaLib.luaCPathList; inherit (callPackage ../development/interpreters/lua-5/hooks { inherit (args) lib;}) - luarocksCheckHook lua-setup-hook; + luarocksMoveDataFolder luarocksCheckHook lua-setup-hook; inherit lua callPackage; inherit buildLuaPackage buildLuarocksPackage buildLuaApplication; From 6bd1025a28f7dddf18d1bc22ac3a185471ab1cd9 Mon Sep 17 00:00:00 2001 From: Han Verstraete Date: Mon, 4 Apr 2022 14:22:59 +0200 Subject: [PATCH 326/336] nixos-shell: 0.2.2 -> 1.0.0 --- pkgs/tools/virtualization/nixos-shell/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/tools/virtualization/nixos-shell/default.nix b/pkgs/tools/virtualization/nixos-shell/default.nix index 4e54a8db6bf4..1847dc42147a 100644 --- a/pkgs/tools/virtualization/nixos-shell/default.nix +++ b/pkgs/tools/virtualization/nixos-shell/default.nix @@ -2,13 +2,13 @@ stdenv.mkDerivation rec { pname = "nixos-shell"; - version = "0.2.2"; + version = "1.0.0"; src = fetchFromGitHub { owner = "Mic92"; repo = "nixos-shell"; rev = version; - sha256 = "sha256-a3NJJv7MscAXhIdr07gEAQDYX0Qgb6ax5E8zSdCIgE8="; + sha256 = "sha256-whHBBcthLhEIy2VTaioRZOSZoZR7pk4Qr4DVxwU0r9Y="; }; nativeBuildInputs = [ makeWrapper ]; From 1580cb15d8bcf632746e731402428266ff535dce Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Sun, 19 Jun 2022 13:27:31 +0000 Subject: [PATCH 327/336] python310Packages.weconnect-mqtt: 0.34.0 -> 0.35.0 --- pkgs/development/python-modules/weconnect-mqtt/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/development/python-modules/weconnect-mqtt/default.nix b/pkgs/development/python-modules/weconnect-mqtt/default.nix index 0016fa76bf4f..5cfc12b5225b 100644 --- a/pkgs/development/python-modules/weconnect-mqtt/default.nix +++ b/pkgs/development/python-modules/weconnect-mqtt/default.nix @@ -10,7 +10,7 @@ buildPythonPackage rec { pname = "weconnect-mqtt"; - version = "0.34.0"; + version = "0.35.0"; format = "setuptools"; disabled = pythonOlder "3.7"; @@ -18,8 +18,8 @@ buildPythonPackage rec { src = fetchFromGitHub { owner = "tillsteinbach"; repo = "WeConnect-mqtt"; - rev = "v${version}"; - hash = "sha256-Gj+hXgGkOqKnZ4W2iZ9P6JN3lYMoREMSF/wfGwLL/tc="; + rev = "refs/tags/v${version}"; + hash = "sha256-3WFD99ujaQzJrsKCc9i0zwNEzRjgkGCwUXSip+6/158="; }; propagatedBuildInputs = [ From 2cfa8c207dcd71e0c65ab05cc0c60f6b77dd7e20 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Sun, 19 Jun 2022 13:44:48 +0000 Subject: [PATCH 328/336] python310Packages.duckdb-engine: 0.1.8 -> 0.1.10 --- pkgs/development/python-modules/duckdb-engine/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/development/python-modules/duckdb-engine/default.nix b/pkgs/development/python-modules/duckdb-engine/default.nix index fe7a95aba9bf..ef5e039cd28d 100644 --- a/pkgs/development/python-modules/duckdb-engine/default.nix +++ b/pkgs/development/python-modules/duckdb-engine/default.nix @@ -11,7 +11,7 @@ }: buildPythonPackage rec { pname = "duckdb-engine"; - version = "0.1.8"; + version = "0.1.10"; format = "pyproject"; disabled = pythonOlder "3.7"; @@ -19,8 +19,8 @@ buildPythonPackage rec { src = fetchFromGitHub { repo = "duckdb_engine"; owner = "Mause"; - rev = version; - hash = "sha256-dnm1nveCjrXFjDRykHp39AeVx7sk7Q/XwGn6hxdydT4="; + rev = "refs/tags/${version}"; + hash = "sha256-KyRBtl6lCBlgnlh+iblmG6t6brYduosBF6NK3KQQ9OM="; }; nativeBuildInputs = [ poetry-core ]; From 045cadf22b8c6984ce5170f540f1c457c048ae15 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sun, 19 Jun 2022 17:25:33 +0200 Subject: [PATCH 329/336] python3Packages.deal-solver: update disabled --- pkgs/development/python-modules/deal-solver/default.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkgs/development/python-modules/deal-solver/default.nix b/pkgs/development/python-modules/deal-solver/default.nix index cba2cf89d173..f762ec0ca0ec 100644 --- a/pkgs/development/python-modules/deal-solver/default.nix +++ b/pkgs/development/python-modules/deal-solver/default.nix @@ -13,7 +13,8 @@ buildPythonPackage rec { pname = "deal-solver"; version = "0.1.1"; format = "pyproject"; - disabled = pythonOlder "3.6"; + + disabled = pythonOlder "3.7"; src = fetchFromGitHub { owner = "life4"; From 766aabd410bd455d5ad6e9e42fc4dc24a9f97b0a Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Sun, 19 Jun 2022 15:48:25 +0000 Subject: [PATCH 330/336] python310Packages.google-cloud-spanner: 3.15.0 -> 3.15.1 --- .../python-modules/google-cloud-spanner/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/google-cloud-spanner/default.nix b/pkgs/development/python-modules/google-cloud-spanner/default.nix index b7074e65aa1b..74537b37d011 100644 --- a/pkgs/development/python-modules/google-cloud-spanner/default.nix +++ b/pkgs/development/python-modules/google-cloud-spanner/default.nix @@ -14,11 +14,11 @@ buildPythonPackage rec { pname = "google-cloud-spanner"; - version = "3.15.0"; + version = "3.15.1"; src = fetchPypi { inherit pname version; - sha256 = "sha256-NiHLaxYV3+40Dbs8miru6qG5vYlTToGTi8QRdLy5rZs="; + sha256 = "sha256-VmHmje3fJfiCT2CeJgk98qdFhZnxGZudfHP1MgW6Mtw="; }; propagatedBuildInputs = [ From b4706074bac9f7d9ceee868d8a2a0f88883555fd Mon Sep 17 00:00:00 2001 From: Joshua Gilman Date: Sun, 19 Jun 2022 09:50:42 -0700 Subject: [PATCH 331/336] lefthook: 0.8.0 -> 1.0.0 --- .../version-management/git-and-tools/lefthook/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/applications/version-management/git-and-tools/lefthook/default.nix b/pkgs/applications/version-management/git-and-tools/lefthook/default.nix index a1d1448928b9..f745f399f39e 100644 --- a/pkgs/applications/version-management/git-and-tools/lefthook/default.nix +++ b/pkgs/applications/version-management/git-and-tools/lefthook/default.nix @@ -2,16 +2,16 @@ buildGoModule rec { pname = "lefthook"; - version = "0.8.0"; + version = "1.0.0"; src = fetchFromGitHub { rev = "v${version}"; owner = "evilmartians"; repo = "lefthook"; - sha256 = "sha256-ahkTxuBjMbvBzPuLtW7AhM2OUtL9Rw+ZqgnGGTkeCQQ="; + sha256 = "sha256-UpMzqp4NVvj/Y3OdtI5nGhJHgPIfSlopmyv7jDDpWdM="; }; - vendorSha256 = "sha256-Rp67FnFU27u85t02MIs7wZQoOa8oGsHVVPQ9OdIyTJg="; + vendorSha256 = "sha256-LCBQyVSkUywceIlioYRNuRc6FrbPKuhgfw5OocR3NvI="; doCheck = false; From 183d434b87dd44277fc3490f722ba8ba2f91f625 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Sun, 19 Jun 2022 17:31:46 +0000 Subject: [PATCH 332/336] python310Packages.ibm-cloud-sdk-core: 3.15.1 -> 3.15.3 --- .../development/python-modules/ibm-cloud-sdk-core/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/ibm-cloud-sdk-core/default.nix b/pkgs/development/python-modules/ibm-cloud-sdk-core/default.nix index b505182b4fb5..525167241424 100644 --- a/pkgs/development/python-modules/ibm-cloud-sdk-core/default.nix +++ b/pkgs/development/python-modules/ibm-cloud-sdk-core/default.nix @@ -11,11 +11,11 @@ buildPythonPackage rec { pname = "ibm-cloud-sdk-core"; - version = "3.15.1"; + version = "3.15.3"; src = fetchPypi { inherit pname version; - sha256 = "sha256-bGTr8Qf7ywlbsl6/FEJEjFB/bqyyMwfmjVVAsrgmkTg="; + sha256 = "sha256-CuVem9b7NhDsC2tXCg/+1DWZAqSHqJ0GuWZCmA/kesE="; }; propagatedBuildInputs = [ From beda5e6dbad36dfb64f48da691800edc3b6f9830 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sun, 19 Jun 2022 21:02:44 +0200 Subject: [PATCH 333/336] python310Packages.ibm-cloud-sdk-core: disable on older Python releases --- .../python-modules/ibm-cloud-sdk-core/default.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pkgs/development/python-modules/ibm-cloud-sdk-core/default.nix b/pkgs/development/python-modules/ibm-cloud-sdk-core/default.nix index 525167241424..fd98979cdace 100644 --- a/pkgs/development/python-modules/ibm-cloud-sdk-core/default.nix +++ b/pkgs/development/python-modules/ibm-cloud-sdk-core/default.nix @@ -4,6 +4,7 @@ , pyjwt , pytestCheckHook , python-dateutil +, pythonOlder , requests , responses , tox @@ -12,10 +13,13 @@ buildPythonPackage rec { pname = "ibm-cloud-sdk-core"; version = "3.15.3"; + format = "setuptools"; + + disabled = pythonOlder "3.7"; src = fetchPypi { inherit pname version; - sha256 = "sha256-CuVem9b7NhDsC2tXCg/+1DWZAqSHqJ0GuWZCmA/kesE="; + hash = "sha256-CuVem9b7NhDsC2tXCg/+1DWZAqSHqJ0GuWZCmA/kesE="; }; propagatedBuildInputs = [ From 2b74ba3ed7c7c38893d1dccf0ca4db5be3f0f738 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Fri, 17 Jun 2022 13:23:31 +0200 Subject: [PATCH 334/336] vimPlugins.vim-go: move comment to right place --- pkgs/applications/editors/vim/plugins/overrides.nix | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pkgs/applications/editors/vim/plugins/overrides.nix b/pkgs/applications/editors/vim/plugins/overrides.nix index 54a32de66409..5977a2d6ece0 100644 --- a/pkgs/applications/editors/vim/plugins/overrides.nix +++ b/pkgs/applications/editors/vim/plugins/overrides.nix @@ -1031,7 +1031,7 @@ self: super: { delve errcheck go-motion - go-tools + go-tools # contains staticcheck gocode gocode-gomod godef @@ -1041,7 +1041,8 @@ self: super: { gomodifytags gopls # gorename - gotools # contains staticcheck + # gotags + gotools # guru iferr impl From 8a2e36cc53fc1e6de663bfd4cfcf3dc9f1b3a21a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Fri, 17 Jun 2022 13:28:45 +0200 Subject: [PATCH 335/336] vimPlugins.vim-go: simplify postPatch gnused is part of the stdenv --- pkgs/applications/editors/vim/plugins/overrides.nix | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/pkgs/applications/editors/vim/plugins/overrides.nix b/pkgs/applications/editors/vim/plugins/overrides.nix index 5977a2d6ece0..a9d89a4f1ed6 100644 --- a/pkgs/applications/editors/vim/plugins/overrides.nix +++ b/pkgs/applications/editors/vim/plugins/overrides.nix @@ -1053,9 +1053,7 @@ self: super: { in { postPatch = '' - ${gnused}/bin/sed \ - -Ee 's@"go_bin_path", ""@"go_bin_path", "${binPath}"@g' \ - -i autoload/go/config.vim + sed -i autoload/go/config.vim -Ee 's@"go_bin_path", ""@"go_bin_path", "${binPath}"@g' ''; }); From 31f02117dac480c9c9b1899b1ed9fe879d2d1f17 Mon Sep 17 00:00:00 2001 From: zowoq <59103226+zowoq@users.noreply.github.com> Date: Sun, 19 Jun 2022 16:23:08 +1000 Subject: [PATCH 336/336] lima: 0.11.0 -> 0.11.1 https://github.com/lima-vm/lima/releases/tag/v0.11.1 --- pkgs/applications/virtualization/lima/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/applications/virtualization/lima/default.nix b/pkgs/applications/virtualization/lima/default.nix index 0ced37bb40f6..c6b9b4149fea 100644 --- a/pkgs/applications/virtualization/lima/default.nix +++ b/pkgs/applications/virtualization/lima/default.nix @@ -8,16 +8,16 @@ buildGoModule rec { pname = "lima"; - version = "0.11.0"; + version = "0.11.1"; src = fetchFromGitHub { owner = "lima-vm"; repo = pname; rev = "v${version}"; - sha256 = "sha256-OqsLHxY7dZKN/zazeDASBt5UsQGieU5laIUeshtS55w="; + sha256 = "sha256-tTa/FQiF2qZ36OGORr5fqvKR5i6qo7OTBJFGWJMShQ0="; }; - vendorSha256 = "sha256-0Z+SAEHFJio+N7ATiviBkLPn6cNFlhE3Dsj8CxVtf7c="; + vendorSha256 = "sha256-wvb592mmxOeRSX8Rxx2m7tZ2S8wQTcQkL3b6z0F6OEQ="; nativeBuildInputs = [ makeWrapper installShellFiles ];