Last active
March 9, 2022 01:41
-
-
Save peterhoeg/7533042e681287dbebb1434bdaf5644e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/pkgs/applications/audio/puddletag/default.nix b/pkgs/applications/audio/puddletag/default.nix | |
index efa1d943610..e57d86cf233 100644 | |
--- a/pkgs/applications/audio/puddletag/default.nix | |
+++ b/pkgs/applications/audio/puddletag/default.nix | |
@@ -1,26 +1,58 @@ | |
{ lib, fetchFromGitHub, python3Packages, wrapQtAppsHook, chromaprint }: | |
+let | |
+ # we technically run the risk of breaking something by ignoring the pinned versions | |
+ overrideVersions = [ | |
+ "pyparsing" | |
+ "pyqt5" | |
+ ]; | |
+ | |
+ chromaprint' = python3Packages.buildPythonPackage rec { | |
+ pname = "chromaprint"; | |
+ version = "0.5"; | |
+ src = python3Packages.fetchPypi { | |
+ inherit pname version; | |
+ sha256 = "sha256-d4M+ieNQpIXcnEH1WyIWnTYZe3P+Y58W0uz1uYPwLQE="; | |
+ }; | |
+ buildInputs = with python3Packages; [ m2r ]; | |
+ }; | |
+ | |
+in | |
python3Packages.buildPythonApplication rec { | |
pname = "puddletag"; | |
- version = "2.0.1"; | |
+ version = "2.1.1"; | |
src = fetchFromGitHub { | |
owner = "keithgg"; | |
repo = "puddletag"; | |
rev = version; | |
- sha256 = "sha256-9l8Pc77MX5zFkOqU00HFS8//3Bzd2OMnVV1brmWsNAQ="; | |
+ sha256 = "sha256-eilETaFvvPMopIbccV1uLbpD55kHX9KGTCcGVXaHPgM="; | |
}; | |
- sourceRoot = "source/source"; | |
+ postPatch = '' | |
+ substituteInPlace setup.py \ | |
+ --replace share/pixmaps share/icons | |
+ | |
+ cp requirements.in requirements.txt | |
+ '' + lib.concatMapStringsSep "\n" | |
+ (e: '' | |
+ sed -i requirements.txt -e 's/^${e}.*/${e}/' | |
+ '') | |
+ overrideVersions; | |
nativeBuildInputs = [ wrapQtAppsHook ]; | |
- propagatedBuildInputs = [ chromaprint ] ++ (with python3Packages; [ | |
+ propagatedBuildInputs = with python3Packages; [ | |
+ pyacoustid | |
+ chromaprint' | |
configobj | |
+ levenshtein | |
+ lxml | |
mutagen | |
pyparsing | |
pyqt5 | |
- ]); | |
+ rapidfuzz | |
+ ]; | |
preFixup = '' | |
makeWrapperArgs+=("''${qtWrapperArgs[@]}") | |
@@ -33,7 +65,7 @@ python3Packages.buildPythonApplication rec { | |
meta = with lib; { | |
description = "An audio tag editor similar to the Windows program, Mp3tag"; | |
homepage = "https://docs.puddletag.net"; | |
- license = licenses.gpl3; | |
+ license = licenses.gpl3Plus; | |
maintainers = with maintainers; [ peterhoeg ]; | |
platforms = platforms.linux; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment