From a4ec6f67c41348bc68b0c0d3f78259e8bf8044f6 Mon Sep 17 00:00:00 2001 From: Tyler Langlois Date: Fri, 11 Feb 2022 11:52:32 -0700 Subject: [PATCH 1/2] python3Packages.mopidy-youtube: 3.4 -> 3.5 Unfortunately the test suite fails on the 3.5 revision source, so although I've kept the imports check, I've removed the rest of the tests as they simply fail on 3.5 otherwise. --- pkgs/applications/audio/mopidy/youtube.nix | 19 +++---------------- 1 file changed, 3 insertions(+), 16 deletions(-) diff --git a/pkgs/applications/audio/mopidy/youtube.nix b/pkgs/applications/audio/mopidy/youtube.nix index ecb8128032e5..d983ae8498de 100644 --- a/pkgs/applications/audio/mopidy/youtube.nix +++ b/pkgs/applications/audio/mopidy/youtube.nix @@ -6,7 +6,7 @@ python3.pkgs.buildPythonApplication rec { pname = "mopidy-youtube"; - version = "3.4"; + version = "3.5"; disabled = python3.pythonOlder "3.7"; @@ -14,7 +14,7 @@ python3.pkgs.buildPythonApplication rec { owner = "natumbri"; repo = pname; rev = "v${version}"; - sha256 = "0lm6nn926qkrwzvj64yracdixfrnv5zk243msjskrnlzkhgk01rk"; + sha256 = "0zn645rylr3wj45rg4mqrldibb5b24c85rdpcdc9d0a5q7528nl6"; }; propagatedBuildInputs = with python3.pkgs; [ @@ -28,20 +28,7 @@ python3.pkgs.buildPythonApplication rec { mopidy ]; - checkInputs = with python3.pkgs; [ - vcrpy - pytestCheckHook - ]; - - disabledTests = [ - # Test requires a YouTube API key - "test_get_default_config" - ]; - - disabledTestPaths = [ - # Fails with an import error - "tests/test_backend.py" - ]; + doCheck = false; pythonImportsCheck = [ "mopidy_youtube" From 9f84ed0b43d2886019ff22ec6701242ac9ed1dea Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Thu, 24 Mar 2022 20:55:32 +0100 Subject: [PATCH 2/2] mopidy-youtube: re-enable tests --- pkgs/applications/audio/mopidy/youtube.nix | 22 ++++++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) diff --git a/pkgs/applications/audio/mopidy/youtube.nix b/pkgs/applications/audio/mopidy/youtube.nix index d983ae8498de..386e372d7987 100644 --- a/pkgs/applications/audio/mopidy/youtube.nix +++ b/pkgs/applications/audio/mopidy/youtube.nix @@ -7,14 +7,13 @@ python3.pkgs.buildPythonApplication rec { pname = "mopidy-youtube"; version = "3.5"; - - disabled = python3.pythonOlder "3.7"; + format = "setuptools"; src = fetchFromGitHub { owner = "natumbri"; repo = pname; rev = "v${version}"; - sha256 = "0zn645rylr3wj45rg4mqrldibb5b24c85rdpcdc9d0a5q7528nl6"; + hash = "sha256-hlokysFFgZZYY7flghgRq6wVG824kpcLkXxk6nMhxn4="; }; propagatedBuildInputs = with python3.pkgs; [ @@ -28,7 +27,22 @@ python3.pkgs.buildPythonApplication rec { mopidy ]; - doCheck = false; + checkInputs = with python3.pkgs; [ + vcrpy + pytestCheckHook + ]; + + disabledTests = [ + # Test requires a YouTube API key + "test_get_default_config" + ]; + + disabledTestPaths = [ + # Disable tests which interact with Youtube + "tests/test_api.py" + "tests/test_backend.py" + "tests/test_youtube.py" + ]; pythonImportsCheck = [ "mopidy_youtube"