Skip to content

Commit

Permalink
Merge staging-next into staging
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] authored Feb 3, 2024
2 parents 0658c54 + 24ac0b4 commit 95ffc37
Show file tree
Hide file tree
Showing 22 changed files with 142 additions and 64 deletions.
1 change: 1 addition & 0 deletions nixos/modules/services/home-automation/zigbee2mqtt.nix
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ in
after = [ "network.target" ];
environment.ZIGBEE2MQTT_DATA = cfg.dataDir;
serviceConfig = {
Type = "notify";
ExecStart = "${cfg.package}/bin/zigbee2mqtt";
User = "zigbee2mqtt";
Group = "zigbee2mqtt";
Expand Down
1 change: 1 addition & 0 deletions nixos/tests/all-tests.nix
Original file line number Diff line number Diff line change
Expand Up @@ -627,6 +627,7 @@ in {
ntfy-sh = handleTest ./ntfy-sh.nix {};
ntfy-sh-migration = handleTest ./ntfy-sh-migration.nix {};
ntpd-rs = handleTest ./ntpd-rs.nix {};
nvmetcfg = handleTest ./nvmetcfg.nix {};
nzbget = handleTest ./nzbget.nix {};
nzbhydra2 = handleTest ./nzbhydra2.nix {};
oh-my-zsh = handleTest ./oh-my-zsh.nix {};
Expand Down
43 changes: 43 additions & 0 deletions nixos/tests/nvmetcfg.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
import ./make-test-python.nix ({ lib, ... }: {
name = "nvmetcfg";

meta = {
maintainers = with lib.maintainers; [ nickcao ];
};

nodes = {
server = { pkgs, ... }: {
boot.kernelModules = [ "nvmet" ];
environment.systemPackages = [ pkgs.nvmetcfg ];
networking.firewall.allowedTCPPorts = [ 4420 ];
virtualisation.emptyDiskImages = [ 512 ];
};
client = { pkgs, ... }: {
boot.kernelModules = [ "nvme-fabrics" ];
environment.systemPackages = [ pkgs.nvme-cli ];
};
};

testScript = let subsystem = "nqn.2014-08.org.nixos:server"; in ''
import json
with subtest("Create subsystem and namespace"):
server.succeed("nvmet subsystem add ${subsystem}")
server.succeed("nvmet namespace add ${subsystem} 1 /dev/vdb")
with subtest("Bind subsystem to port"):
server.wait_for_unit("network-online.target")
server.succeed("nvmet port add 1 tcp 0.0.0.0:4420")
server.succeed("nvmet port add-subsystem 1 ${subsystem}")
with subtest("Discover and connect to available subsystems"):
client.wait_for_unit("network-online.target")
assert "subnqn: ${subsystem}" in client.succeed("nvme discover --transport=tcp --traddr=server --trsvcid=4420")
client.succeed("nvme connect-all --transport=tcp --traddr=server --trsvcid=4420")
with subtest("Write to the connected subsystem"):
devices = json.loads(client.succeed("lsblk --nvme --paths --json"))["blockdevices"]
assert len(devices) == 1
client.succeed(f"dd if=/dev/zero of={devices[0]['name']} bs=1M count=64")
'';
})
13 changes: 11 additions & 2 deletions nixos/tests/zigbee2mqtt.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,15 @@ import ./make-test-python.nix ({ pkgs, lib, ... }:
name = "zigbee2mqtt";
nodes.machine = { pkgs, ... }:
{
systemd.services.dummy-serial = {
wantedBy = [
"multi-user.target"
];
serviceConfig = {
ExecStart = "${pkgs.socat}/bin/socat pty,link=/dev/ttyACM0,mode=666 pty,link=/dev/ttyACM1";
};
};

services.zigbee2mqtt = {
enable = true;
};
Expand All @@ -11,10 +20,10 @@ import ./make-test-python.nix ({ pkgs, lib, ... }:
};

testScript = ''
machine.wait_for_unit("zigbee2mqtt.service")
machine.wait_for_unit("multi-user.target")
machine.wait_until_fails("systemctl status zigbee2mqtt.service")
machine.succeed(
"journalctl -eu zigbee2mqtt | grep \"Error: Error while opening serialport 'Error: Error: No such file or directory, cannot open /dev/ttyACM0'\""
"journalctl -eu zigbee2mqtt | grep 'Failed to connect to the adapter'"
)
machine.log(machine.succeed("systemd-analyze security zigbee2mqtt.service"))
Expand Down
4 changes: 2 additions & 2 deletions pkgs/applications/virtualization/docker-slim/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@

buildGoModule rec {
pname = "docker-slim";
version = "1.40.10";
version = "1.40.11";

src = fetchFromGitHub {
owner = "slimtoolkit";
repo = "slim";
rev = version;
hash = "sha256-NpQyIOR8FkOgPHi3UwBAEpouJF/eaSAWD2zQ5dj+gAg=";
hash = "sha256-X+1euWp4W53axbiBpL82bUPfod/JNhGVGWgOqKyhz6A=";
};

vendorHash = null;
Expand Down
5 changes: 5 additions & 0 deletions pkgs/by-name/nv/nvmetcfg/package.nix
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{ lib
, rustPlatform
, fetchFromGitHub
, nixosTests
}:

rustPlatform.buildRustPackage rec {
Expand All @@ -16,6 +17,10 @@ rustPlatform.buildRustPackage rec {

cargoHash = "sha256-yZ4UAx95f/cjeObBtzpiYtwDjgOgkKnD64yGe6ouVGw=";

passthru.tests = {
inherit (nixosTests) nvmetcfg;
};

meta = with lib; {
description = "NVMe-oF Target Configuration Utility for Linux";
homepage = "https://github.com/vifino/nvmetcfg";
Expand Down
4 changes: 2 additions & 2 deletions pkgs/desktops/budgie/budgie-desktop/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,14 @@

stdenv.mkDerivation (finalAttrs: {
pname = "budgie-desktop";
version = "10.9";
version = "10.9.1";

src = fetchFromGitHub {
owner = "BuddiesOfBudgie";
repo = "budgie-desktop";
rev = "v${finalAttrs.version}";
fetchSubmodules = true;
hash = "sha256-yyuLBzTDEQH7rBOWTYBvS+3x2mlbF34f7U7oOUO8BeA=";
hash = "sha256-H+J/zFUjiXbr5ynDkkjrRsEbyO4LPOhqe8DdG60ikRw=";
};

patches = [
Expand Down
12 changes: 6 additions & 6 deletions pkgs/development/cuda-modules/generic-builders/multiplex.nix
Original file line number Diff line number Diff line change
Expand Up @@ -83,13 +83,13 @@ let
# perSystemReleases :: List Package
allReleases = lib.pipe releaseSets
[
(builtins.attrValues)
(lib.attrValues)
(lists.flatten)
(builtins.groupBy (p: lib.versions.majorMinor p.version))
(builtins.mapAttrs (_: builtins.sort preferable))
(builtins.mapAttrs (_: lib.take 1))
(builtins.attrValues)
(builtins.concatMap lib.trivial.id)
(lib.groupBy (p: lib.versions.majorMinor p.version))
(lib.mapAttrs (_: builtins.sort preferable))
(lib.mapAttrs (_: lib.take 1))
(lib.attrValues)
(lib.concatMap lib.trivial.id)
];

newest = builtins.head (builtins.sort preferable allReleases);
Expand Down
4 changes: 2 additions & 2 deletions pkgs/development/python-modules/comm/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

let
pname = "comm";
version = "0.2.0";
version = "0.2.1";
in
buildPythonPackage {
inherit pname version;
Expand All @@ -18,7 +18,7 @@ buildPythonPackage {
owner = "ipython";
repo = "comm";
rev = "refs/tags/v${version}";
hash = "sha256-bErZNTm0spO0A/Lc8kq5u7sB0FMXm/WMWtFbCNGJVXE=";
hash = "sha256-iyO3q9E2lYU1rMYTnsa+ZJYh+Hq72LEvE9ynebFIBUk=";
};

nativeBuildInputs = [
Expand Down
4 changes: 2 additions & 2 deletions pkgs/development/python-modules/ipykernel/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,14 @@

buildPythonPackage rec {
pname = "ipykernel";
version = "6.28.0";
version = "6.29.0";
pyproject = true;

disabled = pythonOlder "3.8";

src = fetchPypi {
inherit pname version;
hash = "sha256-acEUA9Jt5p3wIiWRb5FrN+pLmvQX2gqMgn+EMo2I5fM=";
hash = "sha256-td0wE8q3szDfcSiRyWzRq4aMJ6cVnmBvdiAV6b+M6z8=";
};

# debugpy is optional, see https://github.com/ipython/ipykernel/pull/767
Expand Down
36 changes: 12 additions & 24 deletions pkgs/development/python-modules/ipython-sql/default.nix
Original file line number Diff line number Diff line change
@@ -1,32 +1,29 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, fetchPypi
, pythonOlder
, setuptools
, ipython
, ipython-genutils
, pandas
, prettytable
, pytest
, sqlalchemy
, sqlparse
}:
buildPythonPackage rec {
pname = "ipython-sql";
version = "0.4.0";
format = "setuptools";
version = "0.5.0";
pyproject = true;

disabled = pythonOlder "3.7";

src = fetchFromGitHub {
owner = "catherinedevlin";
repo = "ipython-sql";
rev = "117764caf099d80100ed4b09fc004b55eed6f121";
hash = "sha256-ScQihsvRSnC7VIgy8Tzi1z4x6KIZo0SAeLPvHAVdrfA=";
src = fetchPypi {
inherit pname version;
hash = "sha256-PbPOf5qV369Dh2+oCxa9u5oE3guhIELKsT6fWW/P/b4=";
};

postPatch = ''
substituteInPlace setup.py --replace 'prettytable<1' prettytable
'';
nativeBuildInputs = [
setuptools
];

propagatedBuildInputs = [
ipython
Expand All @@ -36,17 +33,8 @@ buildPythonPackage rec {
sqlparse
];

nativeCheckInputs = [ ipython pandas pytest ];

checkPhase = ''
runHook preCheck
# running with ipython is required because the tests use objects available
# only inside of ipython, for example the global `get_ipython()` function
ipython -c 'import pytest; pytest.main()'
runHook postCheck
'';
# pypi tarball has no tests
doCheck = false;

pythonImportsCheck = [ "sql" ];

Expand Down
4 changes: 2 additions & 2 deletions pkgs/development/python-modules/jupyter-lsp/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@

buildPythonPackage rec {
pname = "jupyter-lsp";
version = "2.2.1";
version = "2.2.2";
pyproject = true;

src = fetchPypi {
inherit pname version;
hash = "sha256-sX+rbXD+g8iJawz/WSN2QAOCR8GWBWtDaEoJArap4Ps=";
hash = "sha256-JW0kYgVCrku6BKUPwfb/4ggJOgfY5pf+oKjRuMobfls=";
};

nativeBuildInputs = [
Expand Down
4 changes: 2 additions & 2 deletions pkgs/development/python-modules/jupyter-server/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,14 @@

buildPythonPackage rec {
pname = "jupyter-server";
version = "2.12.4";
version = "2.12.5";
pyproject = true;
disabled = pythonOlder "3.8";

src = fetchPypi {
pname = "jupyter_server";
inherit version;
hash = "sha256-QfSh5rkSzCSnxsaUhRs309hBKxgPQ9cjFf5CLLK4XMI=";
hash = "sha256-DttibJS6oigJvhMj+XcM8cAKlSsXCXWS5A0D5qOVFok=";
};

nativeBuildInputs = [
Expand Down
4 changes: 2 additions & 2 deletions pkgs/development/python-modules/nbconvert/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,14 @@ let
};
in buildPythonPackage rec {
pname = "nbconvert";
version = "7.14.1";
version = "7.14.2";
pyproject = true;

disabled = pythonOlder "3.8";

src = fetchPypi {
inherit pname version;
hash = "sha256-IMuhDgRI3Hazvr/hrfkjZj47mDONr3e5e0JRHvWohhg=";
hash = "sha256-p/iAj9TggkMWc6xThAAhjdRe/QdvvrB8xuWqWjpOlJ4=";
};

# Add $out/share/jupyter to the list of paths that are used to search for
Expand Down
4 changes: 2 additions & 2 deletions pkgs/development/python-modules/notebook/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@

buildPythonPackage rec {
pname = "notebook";
version = "7.0.6";
version = "7.0.7";
disabled = pythonOlder "3.8";

format = "pyproject";

src = fetchPypi {
inherit pname version;
hash = "sha256-7GETsGUpAZ9/KHgZrwbJeiuvepWsIaj24yGSiY6fmlg=";
hash = "sha256-O8/wDBezrBQu9fQ21QY32TaydM+gtB9qwBdTY96bTgk=";
};

postPatch = ''
Expand Down
4 changes: 2 additions & 2 deletions pkgs/development/tools/database/atlas/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@

buildGoModule rec {
pname = "atlas";
version = "0.18.0";
version = "0.19.0";

src = fetchFromGitHub {
owner = "ariga";
repo = "atlas";
rev = "v${version}";
hash = "sha256-xbQ5ZhyCQY/IosBPMD8MKQ1KnIymPD8IhUKaIdXHAok=";
hash = "sha256-aTmEQFE+W8qRn7NlMYNr1yXYHLfmvg9Wrd8fzEeaYAo=";
};

modRoot = "cmd/atlas";
Expand Down
6 changes: 4 additions & 2 deletions pkgs/development/tools/language-servers/nixd/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
, bison
, boost182
, flex
, fmt
, gtest
, libbacktrace
, lit
Expand All @@ -18,13 +19,13 @@

stdenv.mkDerivation rec {
pname = "nixd";
version = "1.2.2";
version = "1.2.3";

src = fetchFromGitHub {
owner = "nix-community";
repo = "nixd";
rev = version;
hash = "sha256-W44orkPZQ9gDUTogb8YVIaw4WHzUA+ExOXhTnZlJ6yY=";
hash = "sha256-i/z5VnsWPWloQfdk48i+a4XaGnTMPJ6QougChkT9IWw=";
};

mesonBuildType = "release";
Expand All @@ -45,6 +46,7 @@ stdenv.mkDerivation rec {
buildInputs = [
libbacktrace
nix
fmt
gtest
boost182
llvmPackages.llvm
Expand Down
Loading

0 comments on commit 95ffc37

Please sign in to comment.