dyndnsc: format with nixfmt
This commit is contained in:
parent
ed907ddac8
commit
a3b6962889
@ -1,7 +1,8 @@
|
|||||||
{ lib
|
{
|
||||||
, stdenv
|
lib,
|
||||||
, python3Packages
|
stdenv,
|
||||||
, fetchPypi
|
python3Packages,
|
||||||
|
fetchPypi,
|
||||||
}:
|
}:
|
||||||
|
|
||||||
python3Packages.buildPythonApplication rec {
|
python3Packages.buildPythonApplication rec {
|
||||||
@ -19,17 +20,11 @@ python3Packages.buildPythonApplication rec {
|
|||||||
--replace-fail '"pytest-runner"' ""
|
--replace-fail '"pytest-runner"' ""
|
||||||
'';
|
'';
|
||||||
|
|
||||||
pythonRelaxDeps = [
|
pythonRelaxDeps = [ "bottle" ];
|
||||||
"bottle"
|
|
||||||
];
|
|
||||||
|
|
||||||
build-system = with python3Packages; [
|
build-system = with python3Packages; [ setuptools ];
|
||||||
setuptools
|
|
||||||
];
|
|
||||||
|
|
||||||
nativeBuildInputs = with python3Packages; [
|
nativeBuildInputs = with python3Packages; [ pythonRelaxDepsHook ];
|
||||||
pythonRelaxDepsHook
|
|
||||||
];
|
|
||||||
|
|
||||||
dependencies = with python3Packages; [
|
dependencies = with python3Packages; [
|
||||||
daemonocle
|
daemonocle
|
||||||
@ -46,21 +41,23 @@ python3Packages.buildPythonApplication rec {
|
|||||||
pytestCheckHook
|
pytestCheckHook
|
||||||
];
|
];
|
||||||
|
|
||||||
disabledTests = [
|
disabledTests =
|
||||||
# dnswanip connects to an external server to discover the
|
[
|
||||||
# machine's IP address.
|
# dnswanip connects to an external server to discover the
|
||||||
"dnswanip"
|
# machine's IP address.
|
||||||
# AssertionError
|
"dnswanip"
|
||||||
"test_null_dummy"
|
# AssertionError
|
||||||
] ++ lib.optionals stdenv.isDarwin [
|
"test_null_dummy"
|
||||||
# The tests that spawn a server using Bottle cannot be run on
|
]
|
||||||
# macOS or Windows as the default multiprocessing start method
|
++ lib.optionals stdenv.isDarwin [
|
||||||
# on those platforms is 'spawn', which requires the code to be
|
# The tests that spawn a server using Bottle cannot be run on
|
||||||
# run to be picklable, which this code isn't.
|
# macOS or Windows as the default multiprocessing start method
|
||||||
# Additionaly, other start methods are unsafe and prone to failure
|
# on those platforms is 'spawn', which requires the code to be
|
||||||
# on macOS; see https://bugs.python.org/issue33725.
|
# run to be picklable, which this code isn't.
|
||||||
"BottleServer"
|
# 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.
|
# Allow tests that bind or connect to localhost on macOS.
|
||||||
__darwinAllowLocalNetworking = true;
|
__darwinAllowLocalNetworking = true;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user