about summary refs log tree commit diff
path: root/pkgs/tools/misc/swaglyrics
diff options
context:
space:
mode:
authorSandro Jäckel <sandro.jaeckel@sap.com>2022-07-20 14:47:08 +0200
committerMartin Weinelt <hexa@darmstadt.ccc.de>2022-07-21 22:35:28 +0200
commitd6e2f6092cb40d7892078bff912815b7dc24898a (patch)
tree3317500cc28ac49b26626dbe4f77e6c164153c79 /pkgs/tools/misc/swaglyrics
parent4f705210ad9c93992077afec051d45ee0d2317da (diff)
swaglyrics: fix dependencies
Diffstat (limited to 'pkgs/tools/misc/swaglyrics')
-rw-r--r--pkgs/tools/misc/swaglyrics/default.nix13
1 files changed, 5 insertions, 8 deletions
diff --git a/pkgs/tools/misc/swaglyrics/default.nix b/pkgs/tools/misc/swaglyrics/default.nix
index 8fff712c323f2..8c5a3b7e9474b 100644
--- a/pkgs/tools/misc/swaglyrics/default.nix
+++ b/pkgs/tools/misc/swaglyrics/default.nix
@@ -16,6 +16,11 @@ python3.pkgs.buildPythonApplication rec {
     hash = "sha256-O48T1WsUIVnNQb8gmzSkFFHTOiFOKVSAEYhF9zUqZz0=";
   };
 
+  postPatch = ''
+    substituteInPlace setup.py \
+      --replace "==" ">="
+  '';
+
   propagatedBuildInputs = with python3.pkgs; [
     beautifulsoup4
     colorama
@@ -35,13 +40,6 @@ python3.pkgs.buildPythonApplication rec {
     ncurses
   ];
 
-  preConfigure = ''
-    substituteInPlace setup.py \
-      --replace 'beautifulsoup4==4.9.3' 'beautifulsoup4>=4.9.3' \
-      --replace 'unidecode==1.2.0' 'unidecode>=1.2.0' \
-      --replace 'flask==2.0.1' 'flask>=2.0.1'
-  '';
-
   preBuild = ''
     export HOME=$(mktemp -d)
   '';
@@ -64,6 +62,5 @@ python3.pkgs.buildPythonApplication rec {
     homepage = "https://github.com/SwagLyrics/SwagLyrics-For-Spotify";
     license = licenses.mit;
     maintainers = with maintainers; [ siraben ];
-    platforms = platforms.unix;
   };
 }