From dcfe06f55da70fc613f18344402a620544c09bed Mon Sep 17 00:00:00 2001 From: Ryan Horiguchi Date: Thu, 14 Jan 2021 05:25:20 +0100 Subject: gnomeExtensions.clock-override: init at 12 --- .../gnome-3/extensions/clock-override/default.nix | 37 ++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 1 + 2 files changed, 38 insertions(+) create mode 100644 pkgs/desktops/gnome-3/extensions/clock-override/default.nix diff --git a/pkgs/desktops/gnome-3/extensions/clock-override/default.nix b/pkgs/desktops/gnome-3/extensions/clock-override/default.nix new file mode 100644 index 000000000000..49df36327555 --- /dev/null +++ b/pkgs/desktops/gnome-3/extensions/clock-override/default.nix @@ -0,0 +1,37 @@ +{ stdenv, fetchzip, gnome3, gettext, glib }: + +stdenv.mkDerivation rec { + pname = "gnome-shell-extension-clock-override"; + version = "12"; + + src = fetchzip { + url = "https://extensions.gnome.org/extension-data/clock-overridegnomeshell.kryogenix.org.v${version}.shell-extension.zip"; + sha256 = "1cyaszks6bwnbgacqsl1pmr24mbj05mad59d4253la9am8ibb4m6"; + stripRoot = false; + }; + + uuid = "clock-override@gnomeshell.kryogenix.org"; + + nativeBuildInputs = [ gettext glib ]; + + buildPhase = '' + runHook preBuild + glib-compile-schemas --strict --targetdir=schemas schemas + runHook postBuild + ''; + + installPhase = '' + runHook preInstall + mkdir -p $out/share/gnome-shell/extensions/${uuid} + cp -r {convenience.js,extension.js,format.js,locale,metadata.json,prefs.js,schemas} $out/share/gnome-shell/extensions/${uuid} + runHook postInstall + ''; + + meta = with stdenv.lib; { + description = "Customize the date and time format displayed in clock in the top bar in GNOME Shell"; + license = licenses.mit; + maintainers = with maintainers; [ rhoriguchi ]; + homepage = "https://github.com/stuartlangridge/gnome-shell-clock-override"; + broken = versionOlder gnome3.gnome-shell.version "3.18"; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 9b4e7b7b3f1e..81d8bb53f6f4 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -26977,6 +26977,7 @@ in arc-menu = callPackage ../desktops/gnome-3/extensions/arc-menu { }; caffeine = callPackage ../desktops/gnome-3/extensions/caffeine { }; clipboard-indicator = callPackage ../desktops/gnome-3/extensions/clipboard-indicator { }; + clock-override = callPackage ../desktops/gnome-3/extensions/clock-override { }; dash-to-dock = callPackage ../desktops/gnome-3/extensions/dash-to-dock { }; dash-to-panel = callPackage ../desktops/gnome-3/extensions/dash-to-panel { }; draw-on-your-screen = callPackage ../desktops/gnome-3/extensions/draw-on-your-screen { }; -- cgit 1.4.1 From 4171cd53d699c7adc7548d0062d7766d93dc3d63 Mon Sep 17 00:00:00 2001 From: Milan Date: Fri, 15 Jan 2021 03:21:27 +0100 Subject: redis: make masterAuth option optional (#109417) --- nixos/modules/services/databases/redis.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/modules/services/databases/redis.nix b/nixos/modules/services/databases/redis.nix index 1b90e59b1663..117e63662258 100644 --- a/nixos/modules/services/databases/redis.nix +++ b/nixos/modules/services/databases/redis.nix @@ -144,7 +144,7 @@ in }; masterAuth = mkOption { - type = types.str; + type = with types; nullOr str; default = null; description = ''If the master is password protected (using the requirePass configuration) it is possible to tell the slave to authenticate before starting the replication synchronization -- cgit 1.4.1 From f634c149e47982845ec23de7ebe94efd7744e47c Mon Sep 17 00:00:00 2001 From: Milan Date: Fri, 15 Jan 2021 03:38:15 +0100 Subject: nixos/tests/docker: wait for docker service (#109418) Previously the Docker daemon was started by systemd socket activation. Thus, the Docker test waited for the sockets.target unit. But when the docker module was changed to start the Docker daemon at boot instead of by socket activation, the test was left untouched. With the Docker 20.10 update this lead to a timing issue, where the docker command is run before the Docker daemon has started and hangs. Fixes #109416 --- nixos/tests/docker-tools.nix | 2 +- nixos/tests/docker.nix | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/nixos/tests/docker-tools.nix b/nixos/tests/docker-tools.nix index 6638ec4927ce..e2bd9ddf6470 100644 --- a/nixos/tests/docker-tools.nix +++ b/nixos/tests/docker-tools.nix @@ -18,7 +18,7 @@ import ./make-test-python.nix ({ pkgs, ... }: { testScript = with pkgs.dockerTools; '' unix_time_second1 = "1970-01-01T00:00:01Z" - docker.wait_for_unit("sockets.target") + docker.wait_for_unit("docker.service") with subtest("Ensure Docker images use a stable date by default"): docker.succeed( diff --git a/nixos/tests/docker.nix b/nixos/tests/docker.nix index 58e33535ed31..a0f328af775c 100644 --- a/nixos/tests/docker.nix +++ b/nixos/tests/docker.nix @@ -33,7 +33,7 @@ import ./make-test-python.nix ({ pkgs, ...} : { testScript = '' start_all() - docker.wait_for_unit("sockets.target") + docker.wait_for_unit("docker.service") docker.succeed("tar cv --files-from /dev/null | docker import - scratchimg") docker.succeed( "docker run -d --name=sleeping -v /nix/store:/nix/store -v /run/current-system/sw/bin:/bin scratchimg /bin/sleep 10" -- cgit 1.4.1 From 0d724ba2fc6ba21d014c19bc5b1edcb6a3e1880c Mon Sep 17 00:00:00 2001 From: Milan Date: Fri, 15 Jan 2021 03:56:38 +0100 Subject: dockerTools: fix build (#109420) --- pkgs/build-support/docker/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/build-support/docker/default.nix b/pkgs/build-support/docker/default.nix index ae97d5691331..2ce034134d06 100644 --- a/pkgs/build-support/docker/default.nix +++ b/pkgs/build-support/docker/default.nix @@ -120,7 +120,7 @@ rec { export GOPATH=$(pwd) export GOCACHE="$TMPDIR/go-cache" mkdir -p src/github.com/docker/docker/pkg - ln -sT ${docker.src}/components/engine/pkg/tarsum src/github.com/docker/docker/pkg/tarsum + ln -sT ${docker.moby.src}/pkg/tarsum src/github.com/docker/docker/pkg/tarsum go build mkdir -p $out/bin -- cgit 1.4.1 From 93e5d99592cea45837867ca2a379093aaec3fbe8 Mon Sep 17 00:00:00 2001 From: zowoq <59103226+zowoq@users.noreply.github.com> Date: Fri, 15 Jan 2021 06:28:57 +1000 Subject: conmon: 2.0.22 -> 2.0.24 https://github.com/containers/conmon/releases/tag/v2.0.24 --- pkgs/applications/virtualization/conmon/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/applications/virtualization/conmon/default.nix b/pkgs/applications/virtualization/conmon/default.nix index 2afb1e7874fd..ac0313a4e336 100644 --- a/pkgs/applications/virtualization/conmon/default.nix +++ b/pkgs/applications/virtualization/conmon/default.nix @@ -9,13 +9,13 @@ stdenv.mkDerivation rec { pname = "conmon"; - version = "2.0.22"; + version = "2.0.24"; src = fetchFromGitHub { owner = "containers"; repo = pname; rev = "v${version}"; - sha256 = "07wd3pns6x25dcnc1r84cwmrzg8xgzsfmidkclcpcagf97ad7jmc"; + sha256 = "1z6z1bz2rgj15xbqx10kvwn8s64nx5hmn1x52k4z4r20p4f95hkg"; }; nativeBuildInputs = [ pkg-config ]; -- cgit 1.4.1 From 03a818a6f8b86f66bf0264b5cf25eb08c852e1e2 Mon Sep 17 00:00:00 2001 From: Milan Date: Fri, 15 Jan 2021 05:12:41 +0100 Subject: openjdk: build with empty pre-version (#108994) Some applications, like the Jetbrains IDEs, check for a suffix to determine if a stable JDK is used. This flag was already passed for older versions, but it got lost for OpenJDK 14+. --- pkgs/development/compilers/openjdk/14.nix | 1 + pkgs/development/compilers/openjdk/default.nix | 1 + 2 files changed, 2 insertions(+) diff --git a/pkgs/development/compilers/openjdk/14.nix b/pkgs/development/compilers/openjdk/14.nix index e851a5bf4b90..6faff92c5088 100644 --- a/pkgs/development/compilers/openjdk/14.nix +++ b/pkgs/development/compilers/openjdk/14.nix @@ -55,6 +55,7 @@ let configureFlags = [ "--with-boot-jdk=${openjdk14-bootstrap.home}" + "--with-version-pre=" "--enable-unlimited-crypto" "--with-native-debug-symbols=internal" "--with-libjpeg=system" diff --git a/pkgs/development/compilers/openjdk/default.nix b/pkgs/development/compilers/openjdk/default.nix index ec0042809c66..3888d6d69828 100644 --- a/pkgs/development/compilers/openjdk/default.nix +++ b/pkgs/development/compilers/openjdk/default.nix @@ -55,6 +55,7 @@ let configureFlags = [ "--with-boot-jdk=${openjdk15-bootstrap.home}" + "--with-version-pre=" "--enable-unlimited-crypto" "--with-native-debug-symbols=internal" "--with-libjpeg=system" -- cgit 1.4.1 From 6b14b6cfa89851230f43efd0670b5740707c1169 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Thu, 14 Jan 2021 23:30:19 +0100 Subject: python3Packages.aioswitcher: init at 1.2.2 --- .../python-modules/aioswitcher/default.nix | 45 ++++++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 47 insertions(+) create mode 100644 pkgs/development/python-modules/aioswitcher/default.nix diff --git a/pkgs/development/python-modules/aioswitcher/default.nix b/pkgs/development/python-modules/aioswitcher/default.nix new file mode 100644 index 000000000000..115da7dfca40 --- /dev/null +++ b/pkgs/development/python-modules/aioswitcher/default.nix @@ -0,0 +1,45 @@ +{ lib +, aiohttp +, asynctest +, buildPythonPackage +, fetchFromGitHub +, poetry +, pytest-aiohttp +, pytest-asyncio +, pytest-sugar +, pytestCheckHook +}: + +buildPythonPackage rec { + pname = "aioswitcher"; + version = "1.2.2"; + format = "pyproject"; + + src = fetchFromGitHub { + owner = "TomerFi"; + repo = pname; + rev = version; + sha256 = "0wvca1jbyj4bwrpkpklbxnkvdp9zs7mrvg5b9vkx2hpyr81vyxam"; + }; + + nativeBuildInputs = [ poetry ]; + + propagatedBuildInputs = [ aiohttp ]; + + checkInputs = [ + asynctest + pytest-aiohttp + pytest-asyncio + pytest-sugar + pytestCheckHook + ]; + + pythonImportsCheck = [ "aioswitcher" ]; + + meta = with lib; { + description = "Python module to interact with Switcher water heater"; + homepage = "https://github.com/TomerFi/aioswitcher"; + license = with licenses; [ mit ]; + maintainers = with maintainers; [ fab ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 4ca774dcd461..873bb8381d67 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -272,6 +272,8 @@ in { aiostream = callPackage ../development/python-modules/aiostream { }; + aioswitcher = callPackage ../development/python-modules/aioswitcher { }; + aiounifi = callPackage ../development/python-modules/aiounifi { }; aiounittest = callPackage ../development/python-modules/aiounittest { }; -- cgit 1.4.1 From e8f6e9f040b4cc9f5d1e8488708a429a34cf4306 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Thu, 14 Jan 2021 23:30:47 +0100 Subject: home-assistant: update component-packages --- pkgs/servers/home-assistant/component-packages.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/servers/home-assistant/component-packages.nix b/pkgs/servers/home-assistant/component-packages.nix index 60c9506f9982..992e295ece99 100644 --- a/pkgs/servers/home-assistant/component-packages.nix +++ b/pkgs/servers/home-assistant/component-packages.nix @@ -799,7 +799,7 @@ "swisscom" = ps: with ps; [ ]; "switch" = ps: with ps; [ ]; "switchbot" = ps: with ps; [ ]; # missing inputs: PySwitchbot - "switcher_kis" = ps: with ps; [ ]; # missing inputs: aioswitcher + "switcher_kis" = ps: with ps; [ aioswitcher ]; "switchmate" = ps: with ps; [ ]; # missing inputs: pySwitchmate "syncthru" = ps: with ps; [ ]; # missing inputs: pysyncthru url-normalize "synology" = ps: with ps; [ ]; # missing inputs: py-synology -- cgit 1.4.1 From d6bc890fb437e124bb55f457b11dee3718f36d11 Mon Sep 17 00:00:00 2001 From: Alyssa Ross Date: Thu, 14 Jan 2021 22:55:42 +0000 Subject: python3Packages.aiohttp-remotes: 0.1.2 -> 1.0.0 --- pkgs/development/python-modules/aiohttp-remotes/default.nix | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/pkgs/development/python-modules/aiohttp-remotes/default.nix b/pkgs/development/python-modules/aiohttp-remotes/default.nix index 861dbb9bf071..8a8f7c4b3132 100644 --- a/pkgs/development/python-modules/aiohttp-remotes/default.nix +++ b/pkgs/development/python-modules/aiohttp-remotes/default.nix @@ -4,20 +4,13 @@ buildPythonPackage rec { pname = "aiohttp_remotes"; - version = "0.1.2"; + version = "1.0.0"; src = fetchPypi { inherit pname version; - sha256 = "43c3f7e1c5ba27f29fb4dbde5d43b900b5b5fc7e37bf7e35e6eaedabaec4a3fc"; + sha256 = "1vv2ancxsaxlls9sinigjnrqyx95n7cphq37m8nwifkhvs0idv6a"; }; - patches = [ - (fetchpatch { - url = "https://github.com/aio-libs/aiohttp-remotes/commit/188772abcea038c31dae7d607e487eeed44391bc.patch"; - sha256 = "0pb1y4jb8ar1szhnjiyj2sdmdk6z9h6c3wrxw59nv9kr3if5igvs"; - }) - ]; - propagatedBuildInputs = [ aiohttp ]; checkInputs = [ pytest pytestcov pytest-aiohttp ]; -- cgit 1.4.1 From 6e65bf6da60e7bcf0afd39705e969de3becdfe7c Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Thu, 14 Jan 2021 20:40:47 +0100 Subject: python3Packages.orvibo: init at 1.1.1 --- pkgs/development/python-modules/orvibo/default.nix | 33 ++++++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 ++ 2 files changed, 35 insertions(+) create mode 100644 pkgs/development/python-modules/orvibo/default.nix diff --git a/pkgs/development/python-modules/orvibo/default.nix b/pkgs/development/python-modules/orvibo/default.nix new file mode 100644 index 000000000000..6209baa144bb --- /dev/null +++ b/pkgs/development/python-modules/orvibo/default.nix @@ -0,0 +1,33 @@ +{ lib +, buildPythonPackage +, click +, fetchFromGitHub +, mock +, pytest-runner +, pytestCheckHook +, requests +, websocket_client +}: + +buildPythonPackage rec { + pname = "orvibo"; + version = "1.1.1"; + + src = fetchFromGitHub { + owner = "happyleavesaoc"; + repo = "python-orvibo"; + rev = version; + sha256 = "042prd5yxqvlfija7ii1xn424iv1p7ndhxv6m67ij8cbvspwx356"; + }; + + # Project as no tests + doCheck = false; + pythonImportsCheck = [ "orvibo" ]; + + meta = with lib; { + description = "Python client to work with Orvibo devices"; + homepage = "https://github.com/happyleavesaoc/python-orvibo"; + license = with licenses; [ mit ]; + maintainers = with maintainers; [ fab ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 873bb8381d67..7868413f5094 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -4507,6 +4507,8 @@ in { ortools = (toPythonModule (pkgs.or-tools.override { inherit (self) python; })).python; + orvibo = callPackage ../development/python-modules/orvibo { }; + osc = callPackage ../development/python-modules/osc { }; oscrypto = callPackage ../development/python-modules/oscrypto { }; -- cgit 1.4.1 From e4ddf1ef3a034789eabfcdfee95eaa4fe16c906b Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Thu, 14 Jan 2021 20:43:11 +0100 Subject: home-assistant: update component-packages --- pkgs/servers/home-assistant/component-packages.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/servers/home-assistant/component-packages.nix b/pkgs/servers/home-assistant/component-packages.nix index 992e295ece99..49798208a3b5 100644 --- a/pkgs/servers/home-assistant/component-packages.nix +++ b/pkgs/servers/home-assistant/component-packages.nix @@ -594,7 +594,7 @@ "opple" = ps: with ps; [ ]; # missing inputs: pyoppleio "orangepi_gpio" = ps: with ps; [ ]; # missing inputs: OPi.GPIO "oru" = ps: with ps; [ ]; # missing inputs: oru - "orvibo" = ps: with ps; [ ]; # missing inputs: orvibo + "orvibo" = ps: with ps; [ orvibo ]; "osramlightify" = ps: with ps; [ ]; # missing inputs: lightify "otp" = ps: with ps; [ pyotp ]; "ovo_energy" = ps: with ps; [ ]; # missing inputs: ovoenergy -- cgit 1.4.1 From 728de3979f65a7ac67ae53695a107156bdb72107 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Thu, 14 Jan 2021 21:31:32 +0100 Subject: python3Packages.pyvlx: init at 0.2.19 --- pkgs/development/python-modules/pyvlx/default.nix | 35 +++++++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 ++ 2 files changed, 37 insertions(+) create mode 100644 pkgs/development/python-modules/pyvlx/default.nix diff --git a/pkgs/development/python-modules/pyvlx/default.nix b/pkgs/development/python-modules/pyvlx/default.nix new file mode 100644 index 000000000000..1a78aefa6daf --- /dev/null +++ b/pkgs/development/python-modules/pyvlx/default.nix @@ -0,0 +1,35 @@ +{ lib +, buildPythonPackage +, fetchFromGitHub +, pytestCheckHook +, pyyaml +}: + +buildPythonPackage rec { + pname = "pyvlx"; + version = "0.2.19"; + + src = fetchFromGitHub { + owner = "Julius2342"; + repo = pname; + rev = version; + sha256 = "031gp3sjagvmgdhfpdqlawva425ja1n3bmxk6jyn4zx54szj9zwf"; + }; + + propagatedBuildInputs = [ pyyaml ]; + + checkInputs = [ pytestCheckHook ]; + + pythonImportsCheck = [ "pyvlx" ]; + + meta = with lib; { + description = "Python client to work with Velux units"; + longDescription = '' + PyVLX uses the Velux KLF 200 interface to control io-Homecontrol + devices, e.g. Velux Windows. + ''; + homepage = "https://github.com/Julius2342/pyvlx"; + license = with licenses; [ lgpl2Only ]; + maintainers = with maintainers; [ fab ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 7868413f5094..f902e97dbc39 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -6382,6 +6382,8 @@ in { inherit (pkgs) pkg-config vips glib; }; + pyvlx = callPackage ../development/python-modules/pyvlx { }; + pyvmomi = callPackage ../development/python-modules/pyvmomi { }; pyvoro = callPackage ../development/python-modules/pyvoro { }; -- cgit 1.4.1 From 1d2a903fd232efade925382bae5af8d777d2f23c Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Thu, 14 Jan 2021 21:32:10 +0100 Subject: home-assistant: update component-packages --- pkgs/servers/home-assistant/component-packages.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/servers/home-assistant/component-packages.nix b/pkgs/servers/home-assistant/component-packages.nix index 49798208a3b5..4487da38c4c4 100644 --- a/pkgs/servers/home-assistant/component-packages.nix +++ b/pkgs/servers/home-assistant/component-packages.nix @@ -892,7 +892,7 @@ "vallox" = ps: with ps; [ ]; # missing inputs: vallox-websocket-api "vasttrafik" = ps: with ps; [ ]; # missing inputs: vtjp "velbus" = ps: with ps; [ ]; # missing inputs: python-velbus - "velux" = ps: with ps; [ ]; # missing inputs: pyvlx + "velux" = ps: with ps; [ pyvlx ]; "venstar" = ps: with ps; [ ]; # missing inputs: venstarcolortouch "vera" = ps: with ps; [ pyvera ]; "verisure" = ps: with ps; [ jsonpath ]; # missing inputs: vsure -- cgit 1.4.1 From 5fae0b941aed842791ea74092c71a88c940bb42c Mon Sep 17 00:00:00 2001 From: Jonathan Ringer Date: Thu, 14 Jan 2021 07:46:36 -0800 Subject: python3Packages.azure-identity: mark as enabled --- pkgs/development/python-modules/azure-identity/default.nix | 6 ------ 1 file changed, 6 deletions(-) diff --git a/pkgs/development/python-modules/azure-identity/default.nix b/pkgs/development/python-modules/azure-identity/default.nix index e7d2d5c83ac0..a0120ae35060 100644 --- a/pkgs/development/python-modules/azure-identity/default.nix +++ b/pkgs/development/python-modules/azure-identity/default.nix @@ -18,7 +18,6 @@ buildPythonPackage rec { pname = "azure-identity"; version = "1.5.0"; - disabled = isPy38; src = fetchPypi { inherit pname version; @@ -38,11 +37,6 @@ buildPythonPackage rec { msrestazure ]; - prePatch = '' - substituteInPlace setup.py \ - --replace msal-extensions~=0.1.3 msal-extensions - ''; - pythonImportsCheck = [ "azure.identity" ]; # Requires checkout from mono-repo and a mock account: -- cgit 1.4.1