about summary refs log tree commit diff
path: root/pkgs/applications/networking/dyndns
diff options
context:
space:
mode:
authorFabian Affolter <mail@fabian-affolter.ch>2024-05-23 10:32:35 +0200
committerFabian Affolter <mail@fabian-affolter.ch>2024-05-23 10:32:35 +0200
commita3b69628898f5389f57142b4343ed8e602029c8b (patch)
tree0873e11dfe92cb9f688669ad8c6545b0540b3890 /pkgs/applications/networking/dyndns
parented907ddac82fceb5701ee82eb36835de44dddfa8 (diff)
dyndnsc: format with nixfmt
Diffstat (limited to 'pkgs/applications/networking/dyndns')
-rw-r--r--pkgs/applications/networking/dyndns/dyndnsc/default.nix53
1 files changed, 25 insertions, 28 deletions
diff --git a/pkgs/applications/networking/dyndns/dyndnsc/default.nix b/pkgs/applications/networking/dyndns/dyndnsc/default.nix
index 1e4e3fde1e392..930fc34603192 100644
--- a/pkgs/applications/networking/dyndns/dyndnsc/default.nix
+++ b/pkgs/applications/networking/dyndns/dyndnsc/default.nix
@@ -1,7 +1,8 @@
-{ lib
-, stdenv
-, python3Packages
-, fetchPypi
+{
+  lib,
+  stdenv,
+  python3Packages,
+  fetchPypi,
 }:
 
 python3Packages.buildPythonApplication rec {
@@ -19,17 +20,11 @@ python3Packages.buildPythonApplication rec {
       --replace-fail '"pytest-runner"' ""
   '';
 
-  pythonRelaxDeps = [
-    "bottle"
-  ];
+  pythonRelaxDeps = [ "bottle" ];
 
-  build-system = with python3Packages; [
-    setuptools
-  ];
+  build-system = with python3Packages; [ setuptools ];
 
-  nativeBuildInputs = with python3Packages; [
-    pythonRelaxDepsHook
-  ];
+  nativeBuildInputs = with python3Packages; [ pythonRelaxDepsHook ];
 
   dependencies = with python3Packages; [
     daemonocle
@@ -46,21 +41,23 @@ python3Packages.buildPythonApplication rec {
     pytestCheckHook
   ];
 
-  disabledTests = [
-    # dnswanip connects to an external server to discover the
-    # machine's IP address.
-    "dnswanip"
-    # AssertionError
-    "test_null_dummy"
-  ] ++ lib.optionals stdenv.isDarwin [
-    # The tests that spawn a server using Bottle cannot be run on
-    # macOS or Windows as the default multiprocessing start method
-    # on those platforms is 'spawn', which requires the code to be
-    # run to be picklable, which this code isn't.
-    # Additionaly, other start methods are unsafe and prone to failure
-    # on macOS; see https://bugs.python.org/issue33725.
-    "BottleServer"
-  ];
+  disabledTests =
+    [
+      # dnswanip connects to an external server to discover the
+      # machine's IP address.
+      "dnswanip"
+      # AssertionError
+      "test_null_dummy"
+    ]
+    ++ lib.optionals stdenv.isDarwin [
+      # The tests that spawn a server using Bottle cannot be run on
+      # macOS or Windows as the default multiprocessing start method
+      # on those platforms is 'spawn', which requires the code to be
+      # run to be picklable, which this code isn't.
+      # Additionaly, other start methods are unsafe and prone to failure
+      # on macOS; see https://bugs.python.org/issue33725.
+      "BottleServer"
+    ];
   # Allow tests that bind or connect to localhost on macOS.
   __darwinAllowLocalNetworking = true;