Skip to content

Commit

Permalink
Merge staging-next-24.05 into staging-24.05
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] authored Dec 13, 2024
2 parents 47a224e + 46cce66 commit dda26a2
Show file tree
Hide file tree
Showing 10 changed files with 118 additions and 37 deletions.
10 changes: 5 additions & 5 deletions lib/tests/modules.sh
Original file line number Diff line number Diff line change
Expand Up @@ -497,21 +497,21 @@ checkConfigOutput '^"pear\\npear"$' config.twice.raw ./merge-module-with-key.nix

# Declaration positions
# Line should be present for direct options
checkConfigOutput '^10$' options.imported.line10.declarationPositions.0.line ./declaration-positions.nix
checkConfigOutput '^14$' options.imported.line10.declarationPositions.0.line ./declaration-positions.nix
checkConfigOutput '/declaration-positions.nix"$' options.imported.line10.declarationPositions.0.file ./declaration-positions.nix
# Generated options may not have line numbers but they will at least get the
# right file
checkConfigOutput '/declaration-positions.nix"$' options.generated.line18.declarationPositions.0.file ./declaration-positions.nix
checkConfigOutput '^null$' options.generated.line18.declarationPositions.0.line ./declaration-positions.nix
# Submodules don't break it
checkConfigOutput '^39$' config.submoduleLine34.submodDeclLine39.0.line ./declaration-positions.nix
checkConfigOutput '^45$' config.submoduleLine34.submodDeclLine39.0.line ./declaration-positions.nix
checkConfigOutput '/declaration-positions.nix"$' config.submoduleLine34.submodDeclLine39.0.file ./declaration-positions.nix
# New options under freeform submodules get collected into the parent submodule
# (consistent with .declarations behaviour, but weird; notably appears in system.build)
checkConfigOutput '^34|23$' options.submoduleLine34.declarationPositions.0.line ./declaration-positions.nix
checkConfigOutput '^34|23$' options.submoduleLine34.declarationPositions.1.line ./declaration-positions.nix
checkConfigOutput '^38|27$' options.submoduleLine34.declarationPositions.0.line ./declaration-positions.nix
checkConfigOutput '^38|27$' options.submoduleLine34.declarationPositions.1.line ./declaration-positions.nix
# nested options work
checkConfigOutput '^30$' options.nested.nestedLine30.declarationPositions.0.line ./declaration-positions.nix
checkConfigOutput '^34$' options.nested.nestedLine30.declarationPositions.0.line ./declaration-positions.nix

cat <<EOF
====== module tests ======
Expand Down
4 changes: 2 additions & 2 deletions pkgs/applications/misc/gallery-dl/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@

buildPythonApplication rec {
pname = "gallery-dl";
version = "1.27.7";
version = "1.28.1";
format = "setuptools";

src = fetchPypi {
inherit version;
pname = "gallery_dl";
hash = "sha256-9YcxD7AH4U2dOhAiUnknwwGFy9pplFFQ7Rn4cOvDdEc=";
hash = "sha256-1UxLZZoDJsaiPqb+zaiWb9TyQIknKlrz6RN21B0sNe4=";
};

propagatedBuildInputs = [
Expand Down
50 changes: 36 additions & 14 deletions pkgs/applications/misc/toot/default.nix
Original file line number Diff line number Diff line change
@@ -1,36 +1,58 @@
{ lib, fetchFromGitHub, python3Packages, nixosTests }:
{
lib,
fetchFromGitHub,
python3Packages,
nixosTests,
}:

python3Packages.buildPythonApplication rec {
pname = "toot";
version = "0.42.0";
version = "0.47.0";
pyproject = true;

src = fetchFromGitHub {
owner = "ihabunek";
repo = "toot";
owner = "ihabunek";
repo = "toot";
rev = "refs/tags/${version}";
sha256 = "sha256-FxA/loJzb/DBI1vWC71IFqdFcwjwIezhBJCGNeBzRoU=";
hash = "sha256-TG98e/3X+bcNsx8ZR0Nv0VWlR/cJ7tzz46K7tYyoKsM=";
};

nativeCheckInputs = with python3Packages; [ pytest ];

propagatedBuildInputs = with python3Packages;
[
requests beautifulsoup4 future wcwidth
urwid urwidgets psycopg2 tomlkit click
build-system = with python3Packages; [
setuptools
setuptools-scm
];

dependencies = with python3Packages; [
requests
beautifulsoup4
wcwidth
urwid
urwidgets
tomlkit
click
pillow
term-image
];

checkPhase = ''
runHook preCheck
py.test
runHook postCheck
'';

passthru.tests.toot = nixosTests.pleroma;

meta = with lib; {
meta = {
description = "Mastodon CLI interface";
mainProgram = "toot";
homepage = "https://github.com/ihabunek/toot";
license = licenses.gpl3;
maintainers = [ maintainers.matthiasbeyer ];
homepage = "https://github.com/ihabunek/toot";
changelog = "https://github.com/ihabunek/toot/blob/refs/tags/${version}/CHANGELOG.md";
license = lib.licenses.gpl3Only;
maintainers = with lib.maintainers; [
matthiasbeyer
aleksana
];
};

}
18 changes: 9 additions & 9 deletions pkgs/applications/networking/browsers/chromium/info.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"chromium": {
"version": "131.0.6778.108",
"version": "131.0.6778.139",
"chromedriver": {
"hash_darwin": "sha256-X0kzihCQsICn5SRdU+THdthov0EPxsmMcrm6YJ6hMhs=",
"hash_darwin_aarch64": "sha256-3Qdj44cZD4wQTzkBx47ZCfqHE2HckkLuqYKpJxxfESk="
"hash_darwin": "sha256-QLYUD5SDHoPdiPHX46ps/oBhzDjwxBuQEh0hzbEY73Q=",
"hash_darwin_aarch64": "sha256-VZ4nS9H1J1R6OXqqOaFLHM2rD8dyUTTWur5X1CNm4sU="
},
"deps": {
"depot_tools": {
Expand All @@ -19,8 +19,8 @@
"DEPS": {
"src": {
"url": "https://chromium.googlesource.com/chromium/src.git",
"rev": "3b014839fbc4fb688b2f5af512d6ce312ad208b1",
"hash": "sha256-ypzu3LveMFcOFm7+JlaERjzs3SK/n9+sfm5wOKB8/zw=",
"rev": "c35bbcbd7c2775a12a3f320e05ac0022939b1a8a",
"hash": "sha256-oJ4y9W51RMiUk40Uz8b3LJH0kMD5GMDG2V//Tng4/4A=",
"recompress": true
},
"src/third_party/clang-format/script": {
Expand Down Expand Up @@ -360,8 +360,8 @@
},
"src/third_party/icu": {
"url": "https://chromium.googlesource.com/chromium/deps/icu.git",
"rev": "4239b1559d11d4fa66c100543eda4161e060311e",
"hash": "sha256-7568UHNDOzyTCLy3TAwxZLUrKfB6A1yKA0wVZQJjKoI="
"rev": "ba7ed88cc5ffa428a82a0f787dd61031aa5ef4ca",
"hash": "sha256-WtCoxcbEkkZayB6kXdQEhZ7/ue+ka6cguhFbpeWUBJA="
},
"src/third_party/jsoncpp/source": {
"url": "https://chromium.googlesource.com/external/github.com/open-source-parsers/jsoncpp.git",
Expand Down Expand Up @@ -760,8 +760,8 @@
},
"src/v8": {
"url": "https://chromium.googlesource.com/v8/v8.git",
"rev": "e38771cb283b9689683c5ac0b5831dd89f8ec690",
"hash": "sha256-csSDnepYxil0R3PD/LVxW7JBcasOKG4l6q6vj8zHV/I="
"rev": "b97fcc24b3523da5e389d2a6d76857f134be09c5",
"hash": "sha256-5Es9Zot/DH+UKq3+aCgeQC+Llgj7/lmPXUYvar/hX7I="
}
}
},
Expand Down
1 change: 1 addition & 0 deletions pkgs/applications/version-management/gitlab/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,7 @@ let
FOSS_ONLY = !gitlabEnterprise;

SKIP_YARN_INSTALL = 1;
NODE_OPTIONS = "--max-old-space-size=8192";

configurePhase = ''
runHook preConfigure
Expand Down
56 changes: 56 additions & 0 deletions pkgs/development/python-modules/term-image/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
{
lib,
buildPythonPackage,
fetchFromGitHub,
pythonOlder,
setuptools,
pillow,
requests,
urwid,
pytestCheckHook,
}:

buildPythonPackage rec {
pname = "term-image";
version = "0.7.2";
pyproject = true;

src = fetchFromGitHub {
owner = "AnonymouX47";
repo = "term-image";
rev = "refs/tags/v${version}";
hash = "sha256-uA04KHKLXW0lx1y5brpCDARLac4/C8VmVinVMkEtTdM=";
};

build-system = [
setuptools
];

dependencies = [
requests
pillow
];

optional-dependencies = {
urwid = [ urwid ];
};

nativeCheckInputs = [
pytestCheckHook
] ++ optional-dependencies.urwid;

disabledTestPaths = [
# test_url needs online access
"tests/test_image/test_url.py"
];

pythonImportsCheck = [ "term_image" ];

meta = {
description = "Display images in the terminal with python";
homepage = "https://github.com/AnonymouX47/term-image";
changelog = "https://github.com/AnonymouX47/term-image/releases/tag/v${version}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ liff ];
};
}
4 changes: 2 additions & 2 deletions pkgs/servers/web-apps/moodle/default.nix
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{ lib, stdenv, fetchurl, writeText, plugins ? [ ], nixosTests }:

let
version = "4.4";
version = "4.4.4";

versionParts = lib.take 2 (lib.splitVersion version);
# 4.2 -> 402, 3.11 -> 311
Expand All @@ -15,7 +15,7 @@ in stdenv.mkDerivation rec {

src = fetchurl {
url = "https://download.moodle.org/download.php/direct/stable${stableVersion}/${pname}-${version}.tgz";
hash = "sha256-IW47IWtdbkBk8gw6eEQb/C9/BRwDbJpirXncGGDy3+s=";
hash = "sha256-9ZMQvv0fL6JwUD5ZJnzfzZkiGOfOV9zMc0hX3PKttBw=";
};

phpConfig = writeText "config.php" ''
Expand Down
4 changes: 2 additions & 2 deletions pkgs/tools/networking/nebula/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@

buildGoModule rec {
pname = "nebula";
version = "1.9.4";
version = "1.9.5";

src = fetchFromGitHub {
owner = "slackhq";
repo = pname;
rev = "refs/tags/v${version}";
hash = "sha256-Y8BTbvdSJ+xlxHuy0TzQEGiymJzAqlHe3PiXAlUddPs=";
hash = "sha256-IJMmVKdgYCXCaRndlcoozFBr+RsUhzC1Eqo427K1k+o=";
};

vendorHash = "sha256-oXhq+s5gDKPVClZpOzYi7BaYwcDqbCLBEO5BNGy9LJA=";
Expand Down
6 changes: 3 additions & 3 deletions pkgs/tools/typesetting/htmldoc/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@

stdenv.mkDerivation rec {
pname = "htmldoc";
version = "1.9.19";
version = "1.9.20";
src = fetchFromGitHub {
owner = "michaelrsweet";
repo = "htmldoc";
rev = "v${version}";
sha256 = "sha256-JNZoPAXriaYpeiwO9GaxGPwiGohwIK1skhq/Ot/UUvI=";
hash = "sha256-nEDvG2Q6uMYWyb49EKOZimkOfEavCjvfFgucwi3u64k=";
};

nativeBuildInputs = [ pkg-config ];
Expand All @@ -17,7 +17,7 @@ stdenv.mkDerivation rec {
# do not generate universal binary on Darwin
# because it is not supported by Nix's clang
postPatch = ''
substituteInPlace configure --replace "-arch x86_64 -arch arm64" ""
substituteInPlace configure --replace-fail "-arch x86_64 -arch arm64" ""
'';

passthru.tests = testers.testVersion {
Expand Down
2 changes: 2 additions & 0 deletions pkgs/top-level/python-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -15010,6 +15010,8 @@ self: super: with self; {

tellduslive = callPackage ../development/python-modules/tellduslive { };

term-image = callPackage ../development/python-modules/term-image { };

termcolor = callPackage ../development/python-modules/termcolor { };

termgraph = callPackage ../development/python-modules/termgraph { };
Expand Down

0 comments on commit dda26a2

Please sign in to comment.