From 31fada653bf0976e51cba33556438459f8bf1410 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Mon, 12 Feb 2024 20:59:01 +0100 Subject: [PATCH] python312Packages.livereload: fix build by swapping nose with pytest nose does not work with python 3.12. Also added meta.maintainers for completeness --- .../development/python-modules/livereload/default.nix | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/pkgs/development/python-modules/livereload/default.nix b/pkgs/development/python-modules/livereload/default.nix index 2b99995f91cc..5943671d6fc2 100644 --- a/pkgs/development/python-modules/livereload/default.nix +++ b/pkgs/development/python-modules/livereload/default.nix @@ -1,8 +1,8 @@ { lib , buildPythonPackage , fetchFromGitHub -, nose , django +, pytestCheckHook , tornado , six }: @@ -23,13 +23,16 @@ buildPythonPackage rec { propagatedBuildInputs = [ tornado six ]; - nativeCheckInputs = [ nose ]; - # TODO: retry running all tests after v2.6.1 - checkPhase = "NOSE_EXCLUDE=test_watch_multiple_dirs nosetests -s"; + nativeCheckInputs = [ pytestCheckHook ]; + + disabledTests = [ + "test_watch_multiple_dirs" + ]; meta = { description = "Runs a local server that reloads as you develop"; homepage = "https://github.com/lepture/python-livereload"; license = lib.licenses.bsd3; + maintainers = with lib; [ ]; }; }