diff options
author | Fabian Affolter <mail@fabian-affolter.ch> | 2022-04-29 01:15:57 +0200 |
---|---|---|
committer | Fabian Affolter <mail@fabian-affolter.ch> | 2022-04-29 01:15:57 +0200 |
commit | fa0d07bd15d9718e6cf2c859335985be3a0e2352 (patch) | |
tree | 9d8ae2276f0ba00d91e18f3bcdc7b51a9fe0b686 /pkgs/tools/misc/swaglyrics | |
parent | 55991167539480559854f6bf85b8ae2f049b566e (diff) |
swaglyrics: update imput name
Diffstat (limited to 'pkgs/tools/misc/swaglyrics')
-rw-r--r-- | pkgs/tools/misc/swaglyrics/default.nix | 38 |
1 files changed, 30 insertions, 8 deletions
diff --git a/pkgs/tools/misc/swaglyrics/default.nix b/pkgs/tools/misc/swaglyrics/default.nix index cc1835c554983..8fff712c323f2 100644 --- a/pkgs/tools/misc/swaglyrics/default.nix +++ b/pkgs/tools/misc/swaglyrics/default.nix @@ -1,18 +1,38 @@ -{ lib, python3, fetchFromGitHub, ncurses }: +{ lib +, python3 +, fetchFromGitHub +, ncurses +}: python3.pkgs.buildPythonApplication rec { pname = "swaglyrics"; version = "unstable-2021-06-17"; + format = "setuptools"; src = fetchFromGitHub { owner = "SwagLyrics"; repo = "SwagLyrics-For-Spotify"; rev = "99fe764a9e45cac6cb9fcdf724c7d2f8cb4524fb"; - sha256 = "sha256-O48T1WsUIVnNQb8gmzSkFFHTOiFOKVSAEYhF9zUqZz0="; + hash = "sha256-O48T1WsUIVnNQb8gmzSkFFHTOiFOKVSAEYhF9zUqZz0="; }; propagatedBuildInputs = with python3.pkgs; [ - unidecode colorama beautifulsoup4 flask requests swspotify + beautifulsoup4 + colorama + flask + requests + swspotify + unidecode + ]; + + checkInputs = with python3.pkgs; [ + blinker + flask + flask-testing + mock + pytestCheckHook + ] ++ [ + ncurses ]; preConfigure = '' @@ -22,10 +42,12 @@ python3.pkgs.buildPythonApplication rec { --replace 'flask==2.0.1' 'flask>=2.0.1' ''; - preBuild = "export HOME=$NIX_BUILD_TOP"; + preBuild = '' + export HOME=$(mktemp -d) + ''; - # disable tests which touch network disabledTests = [ + # Disable tests which touch network "test_database_for_unsupported_song" "test_that_lyrics_works_for_unsupported_songs" "test_that_get_lyrics_works" @@ -33,9 +55,9 @@ python3.pkgs.buildPythonApplication rec { "test_songchanged_can_raise_songplaying" ]; - checkInputs = with python3.pkgs; - [ blinker swspotify pytestCheckHook flask mock flask_testing ] - ++ [ ncurses ]; + pythonImportsCheck = [ + "swaglyrics" + ]; meta = with lib; { description = "Lyrics fetcher for currently playing Spotify song"; |