From c76bb0d58e85f555067547d7ca487dc733549863 Mon Sep 17 00:00:00 2001 From: Acid Bong Date: Sat, 12 Aug 2023 20:22:58 +0300 Subject: [PATCH 01/37] nixos/zsh: add enableLsColors Borrowed from nixos/bash/ls-colors module --- nixos/modules/programs/zsh/zsh.nix | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/nixos/modules/programs/zsh/zsh.nix b/nixos/modules/programs/zsh/zsh.nix index 6bb21cb3ef6..cad639f299c 100644 --- a/nixos/modules/programs/zsh/zsh.nix +++ b/nixos/modules/programs/zsh/zsh.nix @@ -159,6 +159,14 @@ in type = types.bool; }; + enableLsColors = mkOption { + default = true; + description = lib.mdDoc '' + Enable extra colors in directory listings (used by `ls` and `tree`). + ''; + type = types.bool; + }; + }; }; @@ -263,6 +271,11 @@ in ${cfg.interactiveShellInit} + ${optionalString cfg.enableLsColors '' + # Extra colors for directory listings. + eval "$(${pkgs.coreutils}/bin/dircolors -b)" + ''} + # Setup aliases. ${zshAliases} From 5a6a5dc43c36d4a94ada54aa0d9c9e43ca2c6d13 Mon Sep 17 00:00:00 2001 From: figsoda Date: Mon, 21 Aug 2023 15:18:35 -0400 Subject: [PATCH 02/37] rune-languageserver: init at 0.12.4 https://crates.io/crates/rune-languageserver --- .../rune-languageserver/default.nix | 35 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 37 insertions(+) create mode 100644 pkgs/development/tools/language-servers/rune-languageserver/default.nix diff --git a/pkgs/development/tools/language-servers/rune-languageserver/default.nix b/pkgs/development/tools/language-servers/rune-languageserver/default.nix new file mode 100644 index 00000000000..32bec82979e --- /dev/null +++ b/pkgs/development/tools/language-servers/rune-languageserver/default.nix @@ -0,0 +1,35 @@ +{ lib +, rustPlatform +, fetchCrate +, stdenv +, darwin +}: + +rustPlatform.buildRustPackage rec { + pname = "rune-languageserver"; + version = "0.12.4"; + + src = fetchCrate { + inherit pname version; + hash = "sha256-KVNof5s3hiCabsoypwS22FMyJIPF9aU8HNqVKPNo7Fk="; + }; + + cargoHash = "sha256-HiydWqOHz4LJJwJTclRlQfOphE1W03HTMjCtqr1XnJs="; + + buildInputs = lib.optionals stdenv.isDarwin [ + darwin.apple_sdk.frameworks.Security + ]; + + env = { + RUNE_VERSION = version; + }; + + meta = with lib; { + description = "A language server for the Rune Language, an embeddable dynamic programming language for Rust"; + homepage = "https://crates.io/crates/rune-languageserver"; + changelog = "https://github.com/rune-rs/rune/releases/tag/${version}"; + license = with licenses; [ asl20 mit ]; + maintainers = with maintainers; [ figsoda ]; + mainProgram = "rune-languageserver"; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 51315795c27..75136c3ae9c 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -18442,6 +18442,8 @@ with pkgs; ruff-lsp = python3Packages.callPackage ../development/tools/language-servers/ruff-lsp { }; + rune-languageserver = callPackage ../development/tools/language-servers/rune-languageserver { }; + svls = callPackage ../development/tools/language-servers/svls { }; typst-lsp = callPackage ../development/tools/language-servers/typst-lsp { }; From 2a71e7815eb30dc82b4d22166f5660706802075b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gutyina=20Gerg=C5=91?= Date: Tue, 22 Aug 2023 12:56:59 +0200 Subject: [PATCH 03/37] dwm: add _JAVA_AWT_WM_NONREPARENTING=1 dwm is not in Java's internal list of non-reparrenting window managers. Running Java GUI programs without this variable on window managers (eg. jd-gui) causes the window to be blank. --- nixos/modules/services/x11/window-managers/dwm.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/nixos/modules/services/x11/window-managers/dwm.nix b/nixos/modules/services/x11/window-managers/dwm.nix index e114f2e26b1..82900fd3054 100644 --- a/nixos/modules/services/x11/window-managers/dwm.nix +++ b/nixos/modules/services/x11/window-managers/dwm.nix @@ -45,6 +45,7 @@ in { name = "dwm"; start = '' + export _JAVA_AWT_WM_NONREPARENTING=1 dwm & waitPID=$! ''; From 5f30c5130985893108d47aa398eb12a357eb9dbc Mon Sep 17 00:00:00 2001 From: Dominik Honnef Date: Tue, 22 Aug 2023 15:32:17 +0200 Subject: [PATCH 04/37] acpica-tools: 20230331 -> 20230628 Closes #250764 --- pkgs/tools/system/acpica-tools/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/tools/system/acpica-tools/default.nix b/pkgs/tools/system/acpica-tools/default.nix index 1fee07c0803..65f7b71d145 100644 --- a/pkgs/tools/system/acpica-tools/default.nix +++ b/pkgs/tools/system/acpica-tools/default.nix @@ -7,11 +7,11 @@ stdenv.mkDerivation rec { pname = "acpica-tools"; - version = "20230331"; + version = "20230628"; src = fetchurl { - url = "https://acpica.org/sites/acpica/files/acpica-unix-${version}.tar.gz"; - hash = "sha256-DF1pXWBaqmFwnzxj9XoambiQIpFyOZhEawgTtXrDEOI="; + url = "https://downloadmirror.intel.com/783534/acpica-unix-${version}.tar.gz"; + hash = "sha256-hodqdF49Ik3P0iLtPeRltHVZ6FgR3y25gg7wmp3/XM4="; }; nativeBuildInputs = [ bison flex ]; From ebcc9d17c2219ffc3d9cdea5ae3f888abaac3bdc Mon Sep 17 00:00:00 2001 From: figsoda Date: Tue, 22 Aug 2023 20:15:28 -0400 Subject: [PATCH 05/37] safecloset: init at 1.3.0 https://github.com/Canop/safecloset --- pkgs/applications/misc/safecloset/default.nix | 41 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 + 2 files changed, 43 insertions(+) create mode 100644 pkgs/applications/misc/safecloset/default.nix diff --git a/pkgs/applications/misc/safecloset/default.nix b/pkgs/applications/misc/safecloset/default.nix new file mode 100644 index 00000000000..17be18f6585 --- /dev/null +++ b/pkgs/applications/misc/safecloset/default.nix @@ -0,0 +1,41 @@ +{ lib +, rustPlatform +, fetchFromGitHub +, stdenv +, darwin +, xorg +}: + +rustPlatform.buildRustPackage rec { + pname = "safecloset"; + version = "1.3.0"; + + src = fetchFromGitHub { + owner = "Canop"; + repo = "safecloset"; + rev = "v${version}"; + hash = "sha256-HY8HaWGsqKUsqNLFpxrGJvAcVD68fqKX2v7xCiEKuDM="; + }; + + cargoHash = "sha256-geZoqfPgYUd4X903EM7+gq/VPvIClAmlC0nkqWriB0M="; + + buildInputs = lib.optionals stdenv.isDarwin [ + darwin.apple_sdk.frameworks.AppKit + ] ++ lib.optionals stdenv.isLinux [ + xorg.libxcb + ]; + + checkFlags = [ + # skip flaky test + "--skip=timer::timer_tests::test_timer_reset" + ]; + + meta = with lib; { + description = "Cross-platform secure TUI secret locker"; + homepage = "https://github.com/Canop/safecloset"; + changelog = "https://github.com/Canop/safecloset/blob/${src.rev}/CHANGELOG.md"; + license = licenses.agpl3Only; + maintainers = with maintainers; [ figsoda ]; + mainProgram = "safecloset"; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index eb0deb3b59e..1ca630c981a 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -12809,6 +12809,8 @@ with pkgs; safe-rm = callPackage ../tools/system/safe-rm { }; + safecloset = callPackage ../applications/misc/safecloset { }; + safeeyes = callPackage ../applications/misc/safeeyes { }; sagoin = callPackage ../tools/misc/sagoin { }; From 19c6e178669046ecddeb59689b191f84d0331b5f Mon Sep 17 00:00:00 2001 From: Sophie Dawson Date: Tue, 22 Aug 2023 19:03:47 -0700 Subject: [PATCH 06/37] lego: 4.13.2 -> 4.14.0 https://github.com/go-acme/lego/releases/tag/v4.14.0 --- pkgs/tools/admin/lego/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/tools/admin/lego/default.nix b/pkgs/tools/admin/lego/default.nix index b80aa878232..6fa7b3a8a25 100644 --- a/pkgs/tools/admin/lego/default.nix +++ b/pkgs/tools/admin/lego/default.nix @@ -2,16 +2,16 @@ buildGoModule rec { pname = "lego"; - version = "4.13.2"; + version = "4.14.0"; src = fetchFromGitHub { owner = "go-acme"; repo = pname; rev = "v${version}"; - sha256 = "sha256-nFRDA0EHV1i9mcl1i5WpfhTNseU9E9jmlPd1xFbkCaM="; + sha256 = "sha256-dIHyorypyaKIv0Jo+iAK25j7NabgmPtNC6eJVwCl0LQ="; }; - vendorHash = "sha256-mjCxe4hCCIcjVDWVizqqqo6/kn8iS8s32urMtDD5yq4="; + vendorHash = "sha256-nAEPkikm98xbGQJzsB6YNXgpZVgR4AK/uCPwiQ25OYU="; doCheck = false; From 6e980e645823095c83c12eea43691e7a407bd6b4 Mon Sep 17 00:00:00 2001 From: Alyssa Ross Date: Thu, 24 Aug 2023 07:48:17 +0000 Subject: [PATCH 07/37] qemu_kvm.tests: use finalPackage MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This makes qemu_kvm.tests do the right thing — building qemu_kvm with tests enabled. Previously, it would always build qemu, so all targets would be enabled, even if accessed through qemu_kvm.tests. --- pkgs/applications/virtualization/qemu/default.nix | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/pkgs/applications/virtualization/qemu/default.nix b/pkgs/applications/virtualization/qemu/default.nix index 16f9d1a2499..8da8d12cb5f 100644 --- a/pkgs/applications/virtualization/qemu/default.nix +++ b/pkgs/applications/virtualization/qemu/default.nix @@ -35,8 +35,6 @@ ++ ["${stdenv.hostPlatform.qemuArch}-softmmu"]) else null) , nixosTestRunner ? false -, doCheck ? false -, qemu # for passthru.tests , gitUpdater }: @@ -44,7 +42,7 @@ let hexagonSupport = hostCpuTargets == null || lib.elem "hexagon" hostCpuTargets; in -stdenv.mkDerivation rec { +stdenv.mkDerivation (finalAttrs: { pname = "qemu" + lib.optionalString xenSupport "-xen" + lib.optionalString hostCpuOnly "-host-cpu-only" @@ -52,7 +50,7 @@ stdenv.mkDerivation rec { version = "8.0.4"; src = fetchurl { - url = "https://download.qemu.org/qemu-${version}.tar.xz"; + url = "https://download.qemu.org/qemu-${finalAttrs.version}.tar.xz"; hash = "sha256-gcgX3aOK+Vi+W+8abPVbZYuy0/uHwealcd5reyxEUWw="; }; @@ -207,7 +205,7 @@ stdenv.mkDerivation rec { preBuild = "cd build"; # tests can still timeout on slower systems - inherit doCheck; + doCheck = false; nativeCheckInputs = [ socat ]; preCheck = '' # time limits are a little meagre for a build machine that's @@ -248,7 +246,7 @@ stdenv.mkDerivation rec { passthru = { qemu-system-i386 = "bin/qemu-system-i386"; tests = { - qemu-tests = qemu.override { doCheck = true; }; + qemu-tests = finalAttrs.finalPackage.overrideAttrs (_: { doCheck = true; }); }; updateScript = gitUpdater { # No nicer place to find latest release. @@ -269,4 +267,4 @@ stdenv.mkDerivation rec { maintainers = with maintainers; [ eelco qyliss ]; platforms = platforms.unix; }; -} +}) From 655d72d49ad57300ea00dd9709a516d0d5d4d62e Mon Sep 17 00:00:00 2001 From: Raito Bezarius Date: Thu, 24 Aug 2023 12:01:47 +0200 Subject: [PATCH 08/37] linux_testing: 6.5-rc5 -> 6.5-rc7 rc7: https://lwn.net/Articles/942249/ rc6: https://lwn.net/Articles/941403/ --- pkgs/os-specific/linux/kernel/linux-testing.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/os-specific/linux/kernel/linux-testing.nix b/pkgs/os-specific/linux/kernel/linux-testing.nix index ab57c908581..1f03029d902 100644 --- a/pkgs/os-specific/linux/kernel/linux-testing.nix +++ b/pkgs/os-specific/linux/kernel/linux-testing.nix @@ -3,7 +3,7 @@ with lib; buildLinux (args // rec { - version = "6.5-rc5"; + version = "6.5-rc7"; extraMeta.branch = lib.versions.majorMinor version; # modDirVersion needs to be x.y.z, will always add .0 @@ -11,7 +11,7 @@ buildLinux (args // rec { src = fetchzip { url = "https://git.kernel.org/torvalds/t/linux-${version}.tar.gz"; - hash = "sha256-7QNXBuk1jMCdUFWeu5P0j1nwL5PQgBFhlFYbKzj/k6E="; + hash = "sha256-5rIcyXN54o9P+RxHZkI/BTO2Ox6uJ0Fi9NVcrN1HczQ="; }; # Should the testing kernels ever be built on Hydra? From 2976d9fbf0bbbf3adfe9db6cbcbfae671af8a24a Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Thu, 24 Aug 2023 15:34:42 +0200 Subject: [PATCH 09/37] python310Packages.whitenoise: 6.4.0 -> 6.5.0 https://github.com/evansd/whitenoise/blob/6.5.0/docs/changelog.rst --- pkgs/development/python-modules/whitenoise/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/whitenoise/default.nix b/pkgs/development/python-modules/whitenoise/default.nix index 9a6d1958345..1ed3cdd7f1a 100644 --- a/pkgs/development/python-modules/whitenoise/default.nix +++ b/pkgs/development/python-modules/whitenoise/default.nix @@ -11,7 +11,7 @@ buildPythonPackage rec { pname = "whitenoise"; - version = "6.4.0"; + version = "6.5.0"; format = "pyproject"; disabled = pythonOlder "3.7"; @@ -22,7 +22,7 @@ buildPythonPackage rec { owner = "evansd"; repo = pname; rev = "refs/tags/${version}"; - hash = "sha256-ouEoqMcNh3Vwahwaq6bGQuVUFViVN14CDJosDXC5ozI="; + hash = "sha256-g1D0tjGsAP3y1fWvODWwNvxnTSZJuTpyZ0Otk83Oq9E="; }; nativeBuildInputs = [ From c7e99a323ba83db715989f043585ea04733875de Mon Sep 17 00:00:00 2001 From: lucasew Date: Sat, 8 Jul 2023 14:46:53 -0300 Subject: [PATCH 10/37] python3Packages.baycomp: init at 1.0.2 Signed-off-by: lucasew --- .../python-modules/baycomp/default.nix | 35 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 ++ 2 files changed, 37 insertions(+) create mode 100644 pkgs/development/python-modules/baycomp/default.nix diff --git a/pkgs/development/python-modules/baycomp/default.nix b/pkgs/development/python-modules/baycomp/default.nix new file mode 100644 index 00000000000..a9167a4c0ac --- /dev/null +++ b/pkgs/development/python-modules/baycomp/default.nix @@ -0,0 +1,35 @@ +{ lib +, buildPythonPackage +, fetchPypi +, numpy +, scipy +, scikit-learn +, matplotlib +, unittestCheckHook +}: + +buildPythonPackage rec { + pname = "baycomp"; + version = "1.0.2"; + + src = fetchPypi { + inherit pname version; + hash = "sha256-xDRywWvXzfSITdTHPdMH5KPacJf+Scg81eiNdRQpI7A="; + }; + + propagatedBuildInputs = [ + numpy + scipy + matplotlib + ]; + + nativeCheckInputs = [ unittestCheckHook ]; + pythonImportsCheck = [ "baycomp" ]; + + meta = { + description = "A library for Bayesian comparison of classifiers"; + homepage = "https://github.com/janezd/baycomp"; + license = [ lib.licenses.mit ]; + maintainers = [ lib.maintainers.lucasew ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 6b0e50d61dd..404b659ef77 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -1271,6 +1271,8 @@ self: super: with self; { batinfo = callPackage ../development/python-modules/batinfo { }; + baycomp = callPackage ../development/python-modules/baycomp { }; + bayesian-optimization = callPackage ../development/python-modules/bayesian-optimization { }; bayespy = callPackage ../development/python-modules/bayespy { }; From 2132e272405ded1f7285b5fdf7cae72d53259ff4 Mon Sep 17 00:00:00 2001 From: lucasew Date: Sat, 8 Jul 2023 14:47:59 -0300 Subject: [PATCH 11/37] python3Packages.serverfiles: init at 0.3.1 Signed-off-by: lucasew --- .../python-modules/serverfiles/default.nix | 28 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 ++ 2 files changed, 30 insertions(+) create mode 100644 pkgs/development/python-modules/serverfiles/default.nix diff --git a/pkgs/development/python-modules/serverfiles/default.nix b/pkgs/development/python-modules/serverfiles/default.nix new file mode 100644 index 00000000000..955e18e589e --- /dev/null +++ b/pkgs/development/python-modules/serverfiles/default.nix @@ -0,0 +1,28 @@ +{ lib +, buildPythonPackage +, fetchPypi +, requests +, unittestCheckHook +}: + +buildPythonPackage rec { + pname = "serverfiles"; + version = "0.3.1"; + + src = fetchPypi { + inherit pname version; + hash = "sha256-XhD8MudYeR43NbwIvOLtRwKoOx5Fq5bF1ZzIruz76+E="; + }; + + propagatedBuildInputs = [ requests ]; + + pythonImportsCheck = [ "serverfiles" ]; + nativeCheckInputs = [ unittestCheckHook ]; + + meta = { + description = "An utility that accesses files on a HTTP server and stores them locally for reuse"; + homepage = "https://github.com/biolab/serverfiles"; + license = [ lib.licenses.gpl3Plus ]; + maintainers = [ lib.maintainers.lucasew ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 404b659ef77..563b6f7899a 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -11586,6 +11586,8 @@ self: super: with self; { servefile = callPackage ../development/python-modules/servefile { }; + serverfiles = callPackage ../development/python-modules/serverfiles { }; + serverlessrepo = callPackage ../development/python-modules/serverlessrepo { }; service-identity = callPackage ../development/python-modules/service-identity { }; From 0e3349d5486c24809f883efef8571a046d399477 Mon Sep 17 00:00:00 2001 From: lucasew Date: Sat, 8 Jul 2023 14:49:07 -0300 Subject: [PATCH 12/37] python3Packages.qasync: init at 0.24.1 Signed-off-by: lucasew --- .../python-modules/qasync/default.nix | 39 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 41 insertions(+) create mode 100644 pkgs/development/python-modules/qasync/default.nix diff --git a/pkgs/development/python-modules/qasync/default.nix b/pkgs/development/python-modules/qasync/default.nix new file mode 100644 index 00000000000..bdbede92c5d --- /dev/null +++ b/pkgs/development/python-modules/qasync/default.nix @@ -0,0 +1,39 @@ +{ lib +, buildPythonPackage +, fetchFromGitHub +, pyqt5 +, pytestCheckHook +}: + +buildPythonPackage rec { + pname = "qasync"; + version = "0.24.1"; + + src = fetchFromGitHub { + owner = "CabbageDevelopment"; + repo = pname; + rev = "refs/tags/v${version}"; + hash = "sha256-DAzmobw+c29Pt/URGO3bWXHBxgu9bDHhdTUBE9QJDe4="; + }; + + postPatch = '' + rm qasync/_windows.py # Ignoring it is not taking effect and it will not be used on Linux + ''; + + propagatedBuildInputs = [ pyqt5 ]; + + checkInputs = [ pytestCheckHook ]; + + pythonImportsCheck = [ "qasync" ]; + + disabledTestPaths = [ + "tests/test_qeventloop.py" + ]; + + meta = { + description = "Allows coroutines to be used in PyQt/PySide applications by providing an implementation of the PEP 3156 event-loop"; + homepage = "https://github.com/CabbageDevelopment/qasync"; + license = [ lib.licenses.bsd2 ]; + maintainers = [ lib.maintainers.lucasew ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 563b6f7899a..8dd5c0dfecb 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -10762,6 +10762,8 @@ self: super: with self; { qbittorrent-api = callPackage ../development/python-modules/qbittorrent-api { }; + qasync = callPackage ../development/python-modules/qasync { }; + qcelemental = callPackage ../development/python-modules/qcelemental { }; qcengine = callPackage ../development/python-modules/qcengine { }; From 67effe018b80e4eb028072def00d518b1ea3b66a Mon Sep 17 00:00:00 2001 From: lucasew Date: Sat, 8 Jul 2023 14:49:58 -0300 Subject: [PATCH 13/37] python3Packages.opentsne: init at 1.0.0 Signed-off-by: lucasew --- .../python-modules/opentsne/default.nix | 56 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 58 insertions(+) create mode 100644 pkgs/development/python-modules/opentsne/default.nix diff --git a/pkgs/development/python-modules/opentsne/default.nix b/pkgs/development/python-modules/opentsne/default.nix new file mode 100644 index 00000000000..beab3b0d5e6 --- /dev/null +++ b/pkgs/development/python-modules/opentsne/default.nix @@ -0,0 +1,56 @@ +{ lib +, buildPythonPackage +, fetchFromGitHub +, cython +, numpy +, scipy +, scikit-learn +, pytestCheckHook +, nix-update-script +, setuptools +}: + +let + self = buildPythonPackage rec { + pname = "opentsne"; + version = "1.0.0"; + format = "pyproject"; + + src = fetchFromGitHub { + owner = "pavlin-policar"; + repo = "openTSNE"; + rev = "v${version}"; + hash = "sha256-L5Qx6dMJlXF3EaWwlFTQ3dkhGXc5PvQBXYJo+QO+Hxc="; + }; + + propagatedBuildInputs = [ numpy scipy scikit-learn ]; + nativeBuildInputs = [ cython setuptools ]; + + pythonImportsCheck = [ "openTSNE" ]; + doCheck = false; + + passthru = { + updateScript = nix-update-script {}; + tests.pytest = self.overridePythonAttrs (old: { + pname = "${old.pname}-tests"; + format = "other"; + + postPatch = "rm openTSNE -rf"; + + doBuild = false; + doInstall = false; + + doCheck = true; + nativeCheckInputs = [ pytestCheckHook self ]; + }); + }; + + meta = { + description = "Modular Python implementation of t-Distributed Stochasitc Neighbor Embedding"; + homepage = "https://github.com/pavlin-policar/openTSNE"; + changelog = "https://github.com/pavlin-policar/openTSNE/releases/tag/${version}"; + license = [ lib.licenses.bsd3 ]; + maintainers = [ lib.maintainers.lucasew ]; + }; + }; +in self diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 8dd5c0dfecb..179c4286442 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -7544,6 +7544,8 @@ self: super: with self; { opentracing = callPackage ../development/python-modules/opentracing { }; + opentsne = callPackage ../development/python-modules/opentsne { }; + openvino = callPackage ../development/python-modules/openvino { openvino-native = pkgs.openvino.override { inherit python; From 6e14c963974ffd335e22926625db60b4a062fac1 Mon Sep 17 00:00:00 2001 From: lucasew Date: Sat, 8 Jul 2023 14:50:56 -0300 Subject: [PATCH 14/37] python3Packages.anyqt: init at 0.2.0 Signed-off-by: lucasew --- .../python-modules/anyqt/default.nix | 44 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 46 insertions(+) create mode 100644 pkgs/development/python-modules/anyqt/default.nix diff --git a/pkgs/development/python-modules/anyqt/default.nix b/pkgs/development/python-modules/anyqt/default.nix new file mode 100644 index 00000000000..a4fbb041822 --- /dev/null +++ b/pkgs/development/python-modules/anyqt/default.nix @@ -0,0 +1,44 @@ +{ lib +, buildPythonPackage +, fetchFromGitHub +, pyqt5 +, pytestCheckHook +, nix-update-script +}: + +buildPythonPackage rec { + pname = "anyqt"; + version = "0.2.0"; + + src = fetchFromGitHub { + owner = "ales-erjavec"; + repo = "anyqt"; + rev = version; + hash = "sha256-dL2EUAMzWKq/oN3rXiEC6emDJddmg4KclT5ONKA0jfk="; + }; + + nativeCheckInputs = [ pyqt5 pytestCheckHook ]; + + # All of these fail because Qt modules cannot be imported + disabledTestPaths = [ + "tests/test_qabstractitemview.py" + "tests/test_qaction_set_menu.py" + "tests/test_qactionevent_action.py" + "tests/test_qfontdatabase_static.py" + "tests/test_qpainter_draw_pixmap_fragments.py" + "tests/test_qsettings.py" + "tests/test_qstandarditem_insertrow.py" + "tests/test_qtest.py" + ]; + + pythonImportsCheck = [ "AnyQt" ]; + + passthru.updateScript = nix-update-script { }; + + meta = { + description = "PyQt/PySide compatibility layer"; + homepage = "https://github.com/ales-erjavec/anyqt"; + license = [ lib.licenses.gpl3Only ]; + maintainers = [ lib.maintainers.lucasew ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 179c4286442..984ed5d3a47 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -552,6 +552,8 @@ self: super: with self; { anyio = callPackage ../development/python-modules/anyio { }; + anyqt = callPackage ../development/python-modules/anyqt { }; + anytree = callPackage ../development/python-modules/anytree { inherit (pkgs) graphviz; }; From bb83b8f7e1ab699f613247f5bd9788057159e73e Mon Sep 17 00:00:00 2001 From: lucasew Date: Sat, 8 Jul 2023 14:52:26 -0300 Subject: [PATCH 15/37] python3Packages.orange-canvas-core: init at 0.1.31 Signed-off-by: lucasew --- .../orange-canvas-core/default.nix | 64 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 66 insertions(+) create mode 100644 pkgs/development/python-modules/orange-canvas-core/default.nix diff --git a/pkgs/development/python-modules/orange-canvas-core/default.nix b/pkgs/development/python-modules/orange-canvas-core/default.nix new file mode 100644 index 00000000000..2673151654a --- /dev/null +++ b/pkgs/development/python-modules/orange-canvas-core/default.nix @@ -0,0 +1,64 @@ +{ lib +, buildPythonPackage +, fetchPypi +, anyqt +, cachecontrol +, commonmark +, dictdiffer +, docutils +, filelock +, lockfile +, pytest-qt +, pytestCheckHook +, python +, qasync +, qt5 +, writeShellScript +, xvfb-run +}: + +buildPythonPackage rec { + pname = "orange-canvas-core"; + version = "0.1.31"; + + src = fetchPypi { + inherit pname version; + hash = "sha256-kqh/c0pEWFLqf1BMD79li1MqLpH/4xrdTH9+/7YO/tg="; + }; + + propagatedBuildInputs = [ + anyqt + cachecontrol + commonmark + dictdiffer + docutils + filelock + lockfile + qasync + ]; + + pythonImportsCheck = [ "orangecanvas" ]; + + preCheck = '' + export HOME=$(mktemp -d) + export QT_PLUGIN_PATH="${qt5.qtbase.bin}/${qt5.qtbase.qtPluginPrefix}" + export QT_QPA_PLATFORM_PLUGIN_PATH="${qt5.qtbase.bin}/lib/qt-${qt5.qtbase.version}/plugins"; + export QT_QPA_PLATFORM=offscreen + ''; + + nativeCheckInputs = [ + pytest-qt + pytestCheckHook + ]; + + disabledTestPaths = [ + "orangecanvas/canvas/items/tests/test_graphicstextitem.py" + ]; + + meta = { + description = "Orange framework for building graphical user interfaces for editing workflows"; + homepage = "https://github.com/biolab/orange-canvas-core"; + license = [ lib.licenses.gpl3 ]; + maintainers = [ lib.maintainers.lucasew ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 984ed5d3a47..d1c44492d95 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -7580,6 +7580,8 @@ self: super: with self; { oralb-ble = callPackage ../development/python-modules/oralb-ble { }; + orange-canvas-core = callPackage ../development/python-modules/orange-canvas-core { }; + orderedmultidict = callPackage ../development/python-modules/orderedmultidict { }; ordered-set = callPackage ../development/python-modules/ordered-set { }; From da0c5289ccef4da6c7b558cd48c36e9f115c8ceb Mon Sep 17 00:00:00 2001 From: lucasew Date: Sat, 8 Jul 2023 14:53:22 -0300 Subject: [PATCH 16/37] python3Packages.orange-widget-base: init at 4.21.0 Signed-off-by: lucasew --- .../orange-widget-base/default.nix | 62 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 64 insertions(+) create mode 100644 pkgs/development/python-modules/orange-widget-base/default.nix diff --git a/pkgs/development/python-modules/orange-widget-base/default.nix b/pkgs/development/python-modules/orange-widget-base/default.nix new file mode 100644 index 00000000000..ee556ab39f7 --- /dev/null +++ b/pkgs/development/python-modules/orange-widget-base/default.nix @@ -0,0 +1,62 @@ +{ lib +, stdenv +, buildPythonPackage +, fetchPypi +, pyqt5 +, pyqtwebengine +, matplotlib +, orange-canvas-core +, pyqtgraph +, typing-extensions +, qt5 +, pytestCheckHook +, pytest-qt +, appnope +}: + +buildPythonPackage rec { + pname = "orange-widget-base"; + version = "4.21.0"; + + src = fetchPypi { + inherit pname version; + hash = "sha256-43JeEdgEb6WS7PySW1x08fn02yl9Q/HwwKo6ojaqiH0="; + }; + + propagatedBuildInputs = [ + matplotlib + orange-canvas-core + pyqt5 + pyqtgraph + pyqtwebengine + typing-extensions + ] ++ lib.optionals stdenv.isDarwin [ + appnope + ]; + + pythonImportsCheck = [ "orangewidget" ]; + + preCheck = '' + export HOME=$(mktemp -d) + export QT_PLUGIN_PATH="${qt5.qtbase.bin}/${qt5.qtbase.qtPluginPrefix}" + export QT_QPA_PLATFORM_PLUGIN_PATH="${qt5.qtbase.bin}/lib/qt-${qt5.qtbase.version}/plugins"; + export QT_QPA_PLATFORM=offscreen + ''; + + nativeCheckInputs = [ + pytest-qt + pytestCheckHook + ]; + + disabledTestPaths = [ + "orangewidget/report/tests/test_report.py" + "orangewidget/tests/test_widget.py" + ]; + + meta = { + description = "Implementation of the base OWBaseWidget class and utilities for use in Orange Canvas workflows"; + homepage = "https://github.com/biolab/orange-widget-base"; + license = [ lib.licenses.gpl3Plus ]; + maintainers = [ lib.maintainers.lucasew ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index d1c44492d95..3421fcae2d8 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -7582,6 +7582,8 @@ self: super: with self; { orange-canvas-core = callPackage ../development/python-modules/orange-canvas-core { }; + orange-widget-base = callPackage ../development/python-modules/orange-widget-base { }; + orderedmultidict = callPackage ../development/python-modules/orderedmultidict { }; ordered-set = callPackage ../development/python-modules/ordered-set { }; From 42d69013ec6390272265ac67e5abbd6f37ecba9c Mon Sep 17 00:00:00 2001 From: lucasew Date: Sat, 8 Jul 2023 14:54:17 -0300 Subject: [PATCH 17/37] python3Packages.orange3: init at 3.35.0 Signed-off-by: lucasew --- .../python-modules/orange3/default.nix | 164 ++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 166 insertions(+) create mode 100644 pkgs/development/python-modules/orange3/default.nix diff --git a/pkgs/development/python-modules/orange3/default.nix b/pkgs/development/python-modules/orange3/default.nix new file mode 100644 index 00000000000..6c857cc07ac --- /dev/null +++ b/pkgs/development/python-modules/orange3/default.nix @@ -0,0 +1,164 @@ +{ lib +, buildPythonPackage +, copyDesktopItems +, fetchurl +, makeDesktopItem +, fetchFromGitHub +, nix-update-script +, python +, baycomp +, bottleneck +, chardet +, cython +, httpx +, joblib +, keyring +, keyrings-alt +, matplotlib +, numpy +, openpyxl +, opentsne +, orange-canvas-core +, orange-widget-base +, pandas +, pyqtgraph +, pyqtwebengine +, python-louvain +, pyyaml +, qt5 +, qtconsole +, requests +, scikit-learn +, scipy +, sphinx +, serverfiles +, xlrd +, xlsxwriter +}: + +let +self = buildPythonPackage rec { + pname = "orange3"; + version = "3.35.0"; + format = "pyproject"; + + src = fetchFromGitHub { + owner = "biolab"; + repo = "orange3"; + rev = "refs/tags/${version}"; + hash = "sha256-dj/Z4uOjA4nidd45dnHZDyHZP6Fy/MGC8asqOPV7U7A="; + }; + + postPatch = '' + sed -i 's;\(scikit-learn\)[^$]*;\1;g' requirements-core.txt + sed -i 's;pyqtgraph[^$]*;;g' requirements-gui.txt # TODO: remove after bump with a version greater than 0.13.1 + ''; + + nativeBuildInputs = [ + copyDesktopItems + cython + qt5.wrapQtAppsHook + sphinx + ]; + + enableParallelBuilding = true; + + propagatedBuildInputs = [ + numpy + scipy + chardet + openpyxl + opentsne + qtconsole + bottleneck + matplotlib + joblib + requests + keyring + scikit-learn + pandas + pyqtwebengine + serverfiles + orange-canvas-core + python-louvain + xlrd + xlsxwriter + httpx + pyqtgraph + orange-widget-base + keyrings-alt + pyyaml + baycomp + ]; + + # FIXME: ImportError: cannot import name '_variable' from partially initialized module 'Orange.data' (most likely due to a circular import) (/build/source/Orange/data/__init__.py) + doCheck = false; + + pythonImportsCheck = [ "Orange" "Orange.data._variable" ]; + + desktopItems = [ + (makeDesktopItem { + name = "orange"; + exec = "orange-canvas"; + desktopName = "Orange Data Mining"; + genericName = "Data Mining Suite"; + comment = "Explore, analyze, and visualize your data"; + icon = "orange-canvas"; + mimeTypes = [ "application/x-extension-ows" ]; + categories = [ "Science" "Education" "ArtificialIntelligence" "DataVisualization" "NumericalAnalysis" "Qt" ]; + keywords = [ "Machine Learning" "Scientific Visualization" "Statistical Analysis" ]; + }) + ]; + + postInstall = '' + wrapProgram $out/bin/orange-canvas \ + "${"$"}{qtWrapperArgs[@]}" + mkdir -p $out/share/icons/hicolor/{256x256,48x48}/apps + cp distribute/icon-256.png $out/share/icons/hicolor/256x256/apps/orange-canvas.png + cp distribute/icon-48.png $out/share/icons/hicolor/48x48/apps/orange-canvas.png + ''; + + passthru = { + updateScript = nix-update-script { }; + tests.unittests = self.overridePythonAttrs (old: { + pname = "${old.pname}-tests"; + format = "other"; + + preCheck = '' + export HOME=$(mktemp -d) + export QT_PLUGIN_PATH="${qt5.qtbase.bin}/${qt5.qtbase.qtPluginPrefix}" + export QT_QPA_PLATFORM_PLUGIN_PATH="${qt5.qtbase.bin}/lib/qt-${qt5.qtbase.version}/plugins"; + export QT_QPA_PLATFORM=offscreen + + rm Orange -rf + cp -r ${self}/${python.sitePackages}/Orange . + chmod +w -R . + + rm Orange/tests/test_url_reader.py # uses network + rm Orange/tests/test_ada_boost.py # broken: The 'base_estimator' parameter of AdaBoostRegressor must be an object implementing 'fit' and 'predict' or a str among {'deprecated'}. Got None instead. + ''; + + checkPhase = '' + runHook preCheck + ${python.interpreter} -m unittest -b -v ./Orange/**/test*.py + runHook postCheck + ''; + + postInstall = ""; + + doBuild = false; + doInstall = false; + + nativeBuildInputs = [ self ] ++ old.nativeBuildInputs; + }); + }; + + meta = { + mainProgram = "orange-canvas"; + description = "Data mining and visualization toolbox for novice and expert alike"; + homepage = "https://orangedatamining.com/"; + license = [ lib.licenses.gpl3Plus ]; + maintainers = [ lib.maintainers.lucasew ]; + }; + }; +in self diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 3421fcae2d8..1a371f1cc87 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -7580,6 +7580,8 @@ self: super: with self; { oralb-ble = callPackage ../development/python-modules/oralb-ble { }; + orange3 = callPackage ../development/python-modules/orange3 { }; + orange-canvas-core = callPackage ../development/python-modules/orange-canvas-core { }; orange-widget-base = callPackage ../development/python-modules/orange-widget-base { }; From 6d26e3e58f91740f4ce611e05d2e17fbb5ea75e7 Mon Sep 17 00:00:00 2001 From: natsukium Date: Thu, 24 Aug 2023 23:02:55 +0900 Subject: [PATCH 18/37] pylyzer: 0.0.40 -> 0.0.41 Diff: https://github.com/mtshiba/pylyzer/compare/v0.0.40...v0.0.41 Changelog: https://github.com/mtshiba/pylyzer/releases/tag/v0.0.41 --- pkgs/development/tools/language-servers/pylyzer/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/development/tools/language-servers/pylyzer/default.nix b/pkgs/development/tools/language-servers/pylyzer/default.nix index fa9ac75f2f2..2d64bf07a7c 100644 --- a/pkgs/development/tools/language-servers/pylyzer/default.nix +++ b/pkgs/development/tools/language-servers/pylyzer/default.nix @@ -12,16 +12,16 @@ rustPlatform.buildRustPackage rec { pname = "pylyzer"; - version = "0.0.40"; + version = "0.0.41"; src = fetchFromGitHub { owner = "mtshiba"; repo = "pylyzer"; rev = "v${version}"; - hash = "sha256-HMu5DrzlHbNynjKdDxmN7Uzb+grsPQLv2ycOjT7vid0="; + hash = "sha256-8pDHCu0cmBDkMc5epVTT1JSKd9dbLsRk3ZyqBM5QJwc="; }; - cargoHash = "sha256-3q7vNjcrKGE4y+w/9iezJWWHdewWKjRgeP2/Pza8CqM="; + cargoHash = "sha256-1eAxl9eO6SOTVT4e+kinsDPd2LFmF9+SflUJaFEJE6g="; nativeBuildInputs = [ git From 7b7b6396f3c622aba920abdfd3867d515b6e124d Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Thu, 24 Aug 2023 16:24:39 +0200 Subject: [PATCH 19/37] exploitdb: 2023-08-22 -> 2023-08-24 Diff: https://gitlab.com/exploit-database/exploitdb/-/compare/refs/tags/2023-08-22...2023-08-24 --- pkgs/tools/security/exploitdb/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/tools/security/exploitdb/default.nix b/pkgs/tools/security/exploitdb/default.nix index e9cf3e39445..1ab7fba0708 100644 --- a/pkgs/tools/security/exploitdb/default.nix +++ b/pkgs/tools/security/exploitdb/default.nix @@ -6,13 +6,13 @@ stdenv.mkDerivation rec { pname = "exploitdb"; - version = "2023-08-22"; + version = "2023-08-24"; src = fetchFromGitLab { owner = "exploit-database"; repo = pname; rev = "refs/tags/${version}"; - hash = "sha256-FgisC2eOQ0sqy+dkUs9RZ6nJQROidEv15Hf1wUwcUPE="; + hash = "sha256-iL0RfcTOKQ3c3UErfAE0efi4HXJYHUP6RFcgDzeGJqU="; }; nativeBuildInputs = [ From fcf9eb1b5172919314d62dbf0209825c7f9626f8 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Thu, 24 Aug 2023 17:19:43 +0000 Subject: [PATCH 20/37] cryptominisat: 5.11.11 -> 5.11.12 --- pkgs/applications/science/logic/cryptominisat/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/applications/science/logic/cryptominisat/default.nix b/pkgs/applications/science/logic/cryptominisat/default.nix index 1d402573146..c5e263c319e 100644 --- a/pkgs/applications/science/logic/cryptominisat/default.nix +++ b/pkgs/applications/science/logic/cryptominisat/default.nix @@ -8,13 +8,13 @@ stdenv.mkDerivation rec { pname = "cryptominisat"; - version = "5.11.11"; + version = "5.11.12"; src = fetchFromGitHub { owner = "msoos"; repo = "cryptominisat"; rev = version; - hash = "sha256-TYuOgOOs1EsdNz7ctZMsArTlw3QzHjiPZVozuniiPcI="; + hash = "sha256-1AJx8gPf+qDpAp0p4cfCObKZDWKDAKdGopllr2ajpHw="; }; buildInputs = [ python3 boost ]; From 17fa104ac7b1405f22c9ff370021027850e6129f Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Thu, 24 Aug 2023 18:20:31 +0000 Subject: [PATCH 21/37] python310Packages.gensim: 4.3.1 -> 4.3.2 --- pkgs/development/python-modules/gensim/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/gensim/default.nix b/pkgs/development/python-modules/gensim/default.nix index fe3742886eb..f43bfb518cf 100644 --- a/pkgs/development/python-modules/gensim/default.nix +++ b/pkgs/development/python-modules/gensim/default.nix @@ -14,14 +14,14 @@ buildPythonPackage rec { pname = "gensim"; - version = "4.3.1"; + version = "4.3.2"; format = "setuptools"; disabled = pythonOlder "3.8"; src = fetchPypi { inherit pname version; - hash = "sha256-i18RwOalMICGtI6PaEEiOk+ho31RNoRhK37oVLUzAV8="; + hash = "sha256-maxq9v/UBoLnAVXtn5Lsv0OE1Z+1CvEg00PqXuGzCKs="; }; nativeBuildInputs = [ From 94da73acea4412937984467d9d9af42d353388e0 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Thu, 24 Aug 2023 18:30:23 +0000 Subject: [PATCH 22/37] tor: 0.4.7.14 -> 0.4.8.4 --- 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 28e38d6ad1c..0a2074d9843 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.14"; + version = "0.4.8.4"; src = fetchurl { url = "https://dist.torproject.org/${pname}-${version}.tar.gz"; - sha256 = "sha256-paxn9kZjgPwF6AQ9AcWB5Oiisi/glDABNHPnEGXmXfg="; + sha256 = "sha256-CcHOdKJfw7SMgf8UbL0N1TjLu4/k4pZPwvsrGS9qHSs="; }; outputs = [ "out" "geoip" ]; From 1e405fff9794d4a7986b9d16bd8f5582343a53ac Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Thu, 24 Aug 2023 18:52:55 +0000 Subject: [PATCH 23/37] python310Packages.cloup: 3.0.0 -> 3.0.1 --- pkgs/development/python-modules/cloup/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/cloup/default.nix b/pkgs/development/python-modules/cloup/default.nix index d5502d9a9fa..91fe97659be 100644 --- a/pkgs/development/python-modules/cloup/default.nix +++ b/pkgs/development/python-modules/cloup/default.nix @@ -9,14 +9,14 @@ buildPythonPackage rec { pname = "cloup"; - version = "3.0.0"; + version = "3.0.1"; format = "setuptools"; disabled = pythonOlder "3.6"; src = fetchPypi { inherit pname version; - hash = "sha256-ur1L3P0nT4Z3nW0845ueoPbMWrPU7+NbpoQebW0DeJM="; + hash = "sha256-4ItMwje7mlvY/4G6btSUmOIgDaw5InsWSOlXiCAo6ZM="; }; nativeBuildInputs = [ From ea42333fce1ddcc88cf551345e320fa878b07ca5 Mon Sep 17 00:00:00 2001 From: Johan Geluk Date: Sat, 5 Aug 2023 15:51:10 +0200 Subject: [PATCH 24/37] maintainers: add geluk --- maintainers/maintainer-list.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix index 6d1f11d2b32..0b82c9c59f7 100644 --- a/maintainers/maintainer-list.nix +++ b/maintainers/maintainer-list.nix @@ -6113,6 +6113,12 @@ githubId = 313929; name = "Gabriel Ebner"; }; + geluk = { + email = "johan+nix@geluk.io"; + github = "geluk"; + githubId = 1516985; + name = "Johan Geluk"; + }; genericnerdyusername = { name = "GenericNerdyUsername"; email = "genericnerdyusername@proton.me"; From d4889256e34d126068718d3f54e4e96d01f0e1c3 Mon Sep 17 00:00:00 2001 From: figsoda Date: Thu, 24 Aug 2023 13:49:38 -0400 Subject: [PATCH 25/37] nix-index-unwrapped: 0.1.6 -> 0.1.7 Diff: https://github.com/bennofs/nix-index/compare/v0.1.6...v0.1.7 Changelog: https://github.com/nix-community/nix-index/blob/v0.1.7/CHANGELOG.md --- .../package-management/nix-index/default.nix | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/pkgs/tools/package-management/nix-index/default.nix b/pkgs/tools/package-management/nix-index/default.nix index 13e63341670..35df4f9674d 100644 --- a/pkgs/tools/package-management/nix-index/default.nix +++ b/pkgs/tools/package-management/nix-index/default.nix @@ -4,32 +4,32 @@ rustPlatform.buildRustPackage rec { pname = "nix-index"; - version = "0.1.6"; + version = "0.1.7"; src = fetchFromGitHub { - owner = "bennofs"; + owner = "nix-community"; repo = "nix-index"; rev = "v${version}"; - sha256 = "sha256-mdK63qRVvISRbRwfMel4SYucmBxR6RLbM4IFz3K3Pks="; + hash = "sha256-WPWd2aMuP4L17UDFz7SI6lqyrCzrPV8c88vGyO6r6jk="; }; - cargoHash = "sha256-uIGxCaFj4x1Ck/D2xxOlosJaGSVbOKxbXAEAkkBxyaQ="; + cargoHash = "sha256-zZhQ3pOid7BCGzcyCrl6sDm0q6IEVKF7K+d6nVs9flk="; nativeBuildInputs = [ pkg-config ]; buildInputs = [ openssl curl sqlite ] ++ lib.optional stdenv.isDarwin Security; postInstall = '' - mkdir -p $out/etc/profile.d - cp ./command-not-found.sh $out/etc/profile.d/command-not-found.sh - substituteInPlace $out/etc/profile.d/command-not-found.sh \ - --replace "@out@" "$out" + substituteInPlace command-not-found.sh \ + --subst-var out + install -Dm555 command-not-found.sh -t $out/etc/profile.d ''; meta = with lib; { description = "A files database for nixpkgs"; - homepage = "https://github.com/bennofs/nix-index"; + homepage = "https://github.com/nix-community/nix-index"; + changelog = "https://github.com/nix-community/nix-index/blob/${src.rev}/CHANGELOG.md"; license = with licenses; [ bsd3 ]; - maintainers = with maintainers; [ bennofs ncfavier ]; + maintainers = with maintainers; [ bennofs figsoda ncfavier ]; }; } From eee8771175004efc538c01923a12826233dbc0ea Mon Sep 17 00:00:00 2001 From: Johan Geluk Date: Sat, 5 Aug 2023 15:52:43 +0200 Subject: [PATCH 26/37] pythonPackages.expandvars: init at 0.11.0 --- .../python-modules/expandvars/default.nix | 39 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 41 insertions(+) create mode 100644 pkgs/development/python-modules/expandvars/default.nix diff --git a/pkgs/development/python-modules/expandvars/default.nix b/pkgs/development/python-modules/expandvars/default.nix new file mode 100644 index 00000000000..60055c6547b --- /dev/null +++ b/pkgs/development/python-modules/expandvars/default.nix @@ -0,0 +1,39 @@ +{ lib +, buildPythonPackage +, fetchPypi +, pythonOlder +, setuptools +, wheel +}: + +buildPythonPackage rec { + pname = "expandvars"; + version = "0.11.0"; + format = "pyproject"; + + disabled = pythonOlder "3.6"; + + src = fetchPypi { + inherit pname version; + hash = "sha256-Q7Qn9dMnqzYAY98mFR+Y0qbwj+GPKJWjKn9fDxF7W1I="; + }; + + nativeBuildInputs = [ + setuptools + wheel + ]; + + # The PyPi package does not supply any tests + doCheck = false; + + pythonImportsCheck = [ + "expandvars" + ]; + + meta = with lib; { + description = "Expand system variables Unix style"; + homepage = "https://github.com/sayanarijit/expandvars"; + license = licenses.mit; + maintainers = with maintainers; [ geluk ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 06f6e8ae32e..96d0ff2a24e 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -3532,6 +3532,8 @@ self: super: with self; { exifread = callPackage ../development/python-modules/exifread { }; + expandvars = callPackage ../development/python-modules/expandvars { }; + expects = callPackage ../development/python-modules/expects { }; expecttest = callPackage ../development/python-modules/expecttest { }; From aebb003f2f9b40823ea6da62dea6945f92c9722f Mon Sep 17 00:00:00 2001 From: Johan Geluk Date: Sat, 5 Aug 2023 17:13:24 +0200 Subject: [PATCH 27/37] pythonPackages.ansible-pylibssh: init at 1.1.0 This allows usage of pylibssh in Ansible instead of paramiko. --- .../ansible-pylibssh/default.nix | 49 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 51 insertions(+) create mode 100644 pkgs/development/python-modules/ansible-pylibssh/default.nix diff --git a/pkgs/development/python-modules/ansible-pylibssh/default.nix b/pkgs/development/python-modules/ansible-pylibssh/default.nix new file mode 100644 index 00000000000..5eb60419fcf --- /dev/null +++ b/pkgs/development/python-modules/ansible-pylibssh/default.nix @@ -0,0 +1,49 @@ +{ lib +, buildPythonPackage +, fetchPypi +, pythonOlder +, libssh +, cython +, wheel +, setuptools +, setuptools-scm +, toml +, expandvars +}: + +buildPythonPackage rec { + pname = "ansible-pylibssh"; + version = "1.1.0"; + format = "pyproject"; + + disabled = pythonOlder "3.6"; + + src = fetchPypi { + inherit pname version; + hash = "sha256-spaGux6dYvtUtpOdU6oN7SEn8IgBof2NpQSPvr+Zplg="; + }; + + nativeBuildInputs = [ + cython + wheel + setuptools + setuptools-scm + toml + expandvars + ]; + + propagatedBuildInputs = [ + libssh + ]; + + pythonImportsCheck = [ + "pylibsshext" + ]; + + meta = with lib; { + description = "Python bindings to client functionality of libssh specific to Ansible use case"; + homepage = "https://github.com/ansible/pylibssh"; + license = licenses.lgpl21Plus; + maintainers = with maintainers; [ geluk ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 96d0ff2a24e..36c7f74c661 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -522,6 +522,8 @@ self: super: with self; { ansible-kernel = callPackage ../development/python-modules/ansible-kernel { }; + ansible-pylibssh = callPackage ../development/python-modules/ansible-pylibssh { }; + ansible-runner = callPackage ../development/python-modules/ansible-runner { }; ansible-vault-rw = callPackage ../development/python-modules/ansible-vault-rw { }; From 98f5022d678aac2b0c395694bf49c745ece6eacd Mon Sep 17 00:00:00 2001 From: Johan Geluk Date: Sun, 6 Aug 2023 11:49:42 +0200 Subject: [PATCH 28/37] pythonPackages.ansible,pythonPackages.ansible-core: add ansible-pylibssh dependency --- pkgs/development/python-modules/ansible/core.nix | 2 ++ pkgs/development/python-modules/ansible/default.nix | 3 +++ 2 files changed, 5 insertions(+) diff --git a/pkgs/development/python-modules/ansible/core.nix b/pkgs/development/python-modules/ansible/core.nix index 241e9cbd034..17bfb420372 100644 --- a/pkgs/development/python-modules/ansible/core.nix +++ b/pkgs/development/python-modules/ansible/core.nix @@ -13,6 +13,7 @@ , ncclient , packaging , paramiko +, ansible-pylibssh , passlib , pexpect , psutil @@ -63,6 +64,7 @@ buildPythonPackage rec { lxml ncclient paramiko + ansible-pylibssh pexpect psutil pycrypto diff --git a/pkgs/development/python-modules/ansible/default.nix b/pkgs/development/python-modules/ansible/default.nix index f4fed78d620..9da23d3fc09 100644 --- a/pkgs/development/python-modules/ansible/default.nix +++ b/pkgs/development/python-modules/ansible/default.nix @@ -7,6 +7,7 @@ , ncclient , netaddr , paramiko +, ansible-pylibssh , pynetbox , scp , textfsm @@ -45,6 +46,7 @@ buildPythonPackage { ncclient netaddr paramiko + ansible-pylibssh xmltodict # ansible.posix # ansible.utils @@ -62,6 +64,7 @@ buildPythonPackage { jxmlease ncclient paramiko + ansible-pylibssh scp xmltodict ] ++ lib.optionals (withNetbox) [ From e11b2c5a2101467b3014fb6f3b2c2ffabd5009db Mon Sep 17 00:00:00 2001 From: Pierre Bourdon Date: Thu, 24 Aug 2023 21:39:53 +0200 Subject: [PATCH 29/37] acpica-tools: add delroth to maintainers --- pkgs/tools/system/acpica-tools/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/tools/system/acpica-tools/default.nix b/pkgs/tools/system/acpica-tools/default.nix index 65f7b71d145..7c41e7c8a51 100644 --- a/pkgs/tools/system/acpica-tools/default.nix +++ b/pkgs/tools/system/acpica-tools/default.nix @@ -51,7 +51,7 @@ stdenv.mkDerivation rec { homepage = "https://www.acpica.org/"; description = "ACPICA Tools"; license = with licenses; [ iasl gpl2Only bsd3 ]; - maintainers = with maintainers; [ tadfisher ]; + maintainers = with maintainers; [ delroth tadfisher ]; platforms = platforms.linux ++ platforms.darwin; }; } From 71176bd3c88a6a95d874ff46c31d1f696762d5a9 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Thu, 24 Aug 2023 22:49:14 +0200 Subject: [PATCH 30/37] python311Packages.faraday-plugins: 1.12.1 -> 1.13.0 Diff: https://github.com/infobyte/faraday_plugins/compare/refs/tags/1.12.1...1.13.0 Changelog: https://github.com/infobyte/faraday_plugins/releases/tag/1.13.0 --- pkgs/development/python-modules/faraday-plugins/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/faraday-plugins/default.nix b/pkgs/development/python-modules/faraday-plugins/default.nix index 71c700bdfe0..bdee002b5aa 100644 --- a/pkgs/development/python-modules/faraday-plugins/default.nix +++ b/pkgs/development/python-modules/faraday-plugins/default.nix @@ -18,7 +18,7 @@ buildPythonPackage rec { pname = "faraday-plugins"; - version = "1.12.1"; + version = "1.13.0"; format = "setuptools"; disabled = pythonOlder "3.7"; @@ -27,7 +27,7 @@ buildPythonPackage rec { owner = "infobyte"; repo = "faraday_plugins"; rev = "refs/tags/${version}"; - hash = "sha256-sDHqBGRJQuAj2zB7hcIy3u5iNCxBHO1ub0eHxfgd7kI="; + hash = "sha256-t1C9fS0LU46J7y+rp2pTCVma09aFqzuBtslrlU+MS1E="; }; postPatch = '' From b105399bd2dc1973fbb87a3cb8c145c5dbfe36f6 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Thu, 24 Aug 2023 22:50:11 +0200 Subject: [PATCH 31/37] python311Packages.griffe: 0.34.0 -> 0.35.0 Diff: https://github.com/mkdocstrings/griffe/compare/refs/tags/0.34.0...0.35.0 Changelog: https://github.com/mkdocstrings/griffe/blob/0.35.0/CHANGELOG.md --- pkgs/development/python-modules/griffe/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/griffe/default.nix b/pkgs/development/python-modules/griffe/default.nix index 3f4d5514f47..deb3db5f181 100644 --- a/pkgs/development/python-modules/griffe/default.nix +++ b/pkgs/development/python-modules/griffe/default.nix @@ -12,7 +12,7 @@ buildPythonPackage rec { pname = "griffe"; - version = "0.34.0"; + version = "0.35.0"; format = "pyproject"; disabled = pythonOlder "3.8"; @@ -21,7 +21,7 @@ buildPythonPackage rec { owner = "mkdocstrings"; repo = pname; rev = "refs/tags/${version}"; - hash = "sha256-kc+RL5ulV2VfB4ojgv/ZSupPy36kyOqbLBWHPiSpqkk="; + hash = "sha256-PogpRQWeFhBpPlesHBUq9F6QA384/u+wIYsqkjCH3Sk="; }; SETUPTOOLS_SCM_PRETEND_VERSION = version; From 0c41a2b0f08681d8482ba526dad9008a2427bf7a Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Thu, 24 Aug 2023 23:25:52 +0200 Subject: [PATCH 32/37] python311Packages.aiobafi6: 0.8.2 -> 0.9.0 Diff: https://github.com/jfroy/aiobafi6/compare/refs/tags/0.8.2...0.9.0 Changelog: https://github.com/jfroy/aiobafi6/releases/tag/0.8.2 --- pkgs/development/python-modules/aiobafi6/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/aiobafi6/default.nix b/pkgs/development/python-modules/aiobafi6/default.nix index e92fa59d920..9bdd4f9eb42 100644 --- a/pkgs/development/python-modules/aiobafi6/default.nix +++ b/pkgs/development/python-modules/aiobafi6/default.nix @@ -11,7 +11,7 @@ buildPythonPackage rec { pname = "aiobafi6"; - version = "0.8.2"; + version = "0.9.0"; format = "pyproject"; disabled = pythonOlder "3.10"; @@ -20,7 +20,7 @@ buildPythonPackage rec { owner = "jfroy"; repo = "aiobafi6"; rev = "refs/tags/${version}"; - hash = "sha256-ng+WpLhAfsouFA9biomc0V+L9XQHDthJeJLv8ttnYBc="; + hash = "sha256-QxjrspvNrcMcGChjj1B4QF/SnWCsGmPxnI2bWAL6BiI="; }; nativeBuildInputs = [ From 040ed1e20d7b5bc047daf5bd9f4868aa60389fdf Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Thu, 24 Aug 2023 23:28:56 +0200 Subject: [PATCH 33/37] python310Packages.whitenoise: update homepage --- pkgs/development/python-modules/whitenoise/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/development/python-modules/whitenoise/default.nix b/pkgs/development/python-modules/whitenoise/default.nix index 1ed3cdd7f1a..13168c3757e 100644 --- a/pkgs/development/python-modules/whitenoise/default.nix +++ b/pkgs/development/python-modules/whitenoise/default.nix @@ -57,7 +57,7 @@ buildPythonPackage rec { meta = with lib; { description = "Library to serve static file for WSGI applications"; - homepage = "https://whitenoise.evans.io/"; + homepage = "https://whitenoise.readthedocs.io/"; changelog = "https://github.com/evansd/whitenoise/blob/${version}/docs/changelog.rst"; license = licenses.mit; maintainers = with maintainers; [ ]; From 1f4ddaa1d46b07ee537e36f195ced5412c21bc29 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Thu, 24 Aug 2023 23:30:58 +0200 Subject: [PATCH 34/37] python311Packages.model-bakery: 1.14.0 -> 1.15.0 Diff: https://github.com/model-bakers/model_bakery/compare/refs/tags/1.14.0...1.15.0 Changelog: https://github.com/model-bakers/model_bakery/blob/1.15.0/CHANGELOG.md --- pkgs/development/python-modules/model-bakery/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/model-bakery/default.nix b/pkgs/development/python-modules/model-bakery/default.nix index 005efb6c686..12f47a9e80d 100644 --- a/pkgs/development/python-modules/model-bakery/default.nix +++ b/pkgs/development/python-modules/model-bakery/default.nix @@ -10,7 +10,7 @@ buildPythonPackage rec { pname = "model-bakery"; - version = "1.14.0"; + version = "1.15.0"; format = "pyproject"; disabled = pythonOlder "3.8"; @@ -19,7 +19,7 @@ buildPythonPackage rec { owner = "model-bakers"; repo = "model_bakery"; rev = "refs/tags/${version}"; - hash = "sha256-eiCbx15lY8H+xS2HhDCpsqwsuZGxou8aHgaktd/+65U="; + hash = "sha256-gB6lcLymkajRoeOQ70kmZVlBI7oeZgQo1VySfPGeQLQ="; }; nativeBuildInputs = [ From dda4ec6089f605c567416b8c39b339fdeeab712e Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Thu, 24 Aug 2023 23:31:58 +0200 Subject: [PATCH 35/37] python311Packages.pylitterbot: 2023.4.5 -> 2023.4.6 Diff: https://github.com/natekspencer/pylitterbot/compare/refs/tags/v2023.4.5...v2023.4.6 Changelog: https://github.com/natekspencer/pylitterbot/releases/tag/v2023.4.6 --- pkgs/development/python-modules/pylitterbot/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/pylitterbot/default.nix b/pkgs/development/python-modules/pylitterbot/default.nix index eb6a93bc4a7..8b949270205 100644 --- a/pkgs/development/python-modules/pylitterbot/default.nix +++ b/pkgs/development/python-modules/pylitterbot/default.nix @@ -15,7 +15,7 @@ buildPythonPackage rec { pname = "pylitterbot"; - version = "2023.4.5"; + version = "2023.4.6"; format = "pyproject"; disabled = pythonOlder "3.9"; @@ -24,7 +24,7 @@ buildPythonPackage rec { owner = "natekspencer"; repo = pname; rev = "refs/tags/v${version}"; - hash = "sha256-e3k4L/lY8yszqYmJCaZghtv1nrmTi+WyWuzYuHSXM08="; + hash = "sha256-vrdKpdA+GX1DQaNx/hYs+YSy3UQIov0aPCs7eXppi7c="; }; nativeBuildInputs = [ From fca9256161da8589d8163b0ad394e5c6667a47eb Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Thu, 24 Aug 2023 23:34:06 +0200 Subject: [PATCH 36/37] python310Packages.cloup: update disabled --- pkgs/development/python-modules/cloup/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/development/python-modules/cloup/default.nix b/pkgs/development/python-modules/cloup/default.nix index 91fe97659be..23b9bd249a8 100644 --- a/pkgs/development/python-modules/cloup/default.nix +++ b/pkgs/development/python-modules/cloup/default.nix @@ -12,7 +12,7 @@ buildPythonPackage rec { version = "3.0.1"; format = "setuptools"; - disabled = pythonOlder "3.6"; + disabled = pythonOlder "3.7"; src = fetchPypi { inherit pname version; From 3aa2dba593b54e00db11a632001c1da3bd97d88c Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Thu, 24 Aug 2023 23:35:34 +0200 Subject: [PATCH 37/37] python310Packages.cloup: add missing input --- pkgs/development/python-modules/cloup/default.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkgs/development/python-modules/cloup/default.nix b/pkgs/development/python-modules/cloup/default.nix index 23b9bd249a8..d23b27833bf 100644 --- a/pkgs/development/python-modules/cloup/default.nix +++ b/pkgs/development/python-modules/cloup/default.nix @@ -5,6 +5,7 @@ , click , setuptools-scm , pythonOlder +, typing-extensions }: buildPythonPackage rec { @@ -25,6 +26,8 @@ buildPythonPackage rec { propagatedBuildInputs = [ click + ] ++ lib.optionals (pythonOlder "3.8") [ + typing-extensions ]; nativeCheckInputs = [