From 423eaf863daee985c873f411c943be8f6e35af88 Mon Sep 17 00:00:00 2001 From: Patrick Date: Mon, 4 Nov 2024 23:19:11 +0100 Subject: [PATCH] dyndnsc: 0.6.1 -> 0.6.1-unstable-2024-02-25 --- pkgs/by-name/dy/dyndnsc/package.nix | 42 +++++++++++------------------ 1 file changed, 15 insertions(+), 27 deletions(-) diff --git a/pkgs/by-name/dy/dyndnsc/package.nix b/pkgs/by-name/dy/dyndnsc/package.nix index a4c84ee7e76a..262817426bd5 100644 --- a/pkgs/by-name/dy/dyndnsc/package.nix +++ b/pkgs/by-name/dy/dyndnsc/package.nix @@ -1,18 +1,19 @@ { lib, - stdenv, python3Packages, - fetchPypi, + fetchFromGitHub, }: python3Packages.buildPythonApplication rec { pname = "dyndnsc"; - version = "0.6.1"; + version = "0.6.1-unstable-2024-02-25"; pyproject = true; - src = fetchPypi { - inherit pname version; - hash = "sha256-EweNKe6i+aTKAfBWdsMwnq1eNB2rBH4NUcRvI9S3+7Q="; + src = fetchFromGitHub { + owner = "infothrill"; + repo = "python-dyndnsc"; + rev = "75f82ce64a91b9fd25cd362d295095be4dab72b5"; + hash = "sha256-2SWtYQ3TaFbuHxABBUeXSqgfCA/T8lCAB+9mAIyjySU="; }; postPatch = '' @@ -20,11 +21,8 @@ python3Packages.buildPythonApplication rec { --replace-fail '"pytest-runner"' "" ''; - pythonRelaxDeps = [ "bottle" ]; - build-system = with python3Packages; [ setuptools ]; - dependencies = with python3Packages; [ daemonocle dnspython @@ -32,31 +30,21 @@ python3Packages.buildPythonApplication rec { netifaces requests setuptools + responses ]; nativeCheckInputs = with python3Packages; [ - bottle pytest-console-scripts pytestCheckHook ]; - disabledTests = - [ - # dnswanip connects to an external server to discover the - # machine's IP address. - "dnswanip" - # AssertionError - "test_null_dummy" - ] - ++ lib.optionals stdenv.hostPlatform.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" + ]; # Allow tests that bind or connect to localhost on macOS. __darwinAllowLocalNetworking = true;