@@ -0,0 +1,49 @@
1+{ stdenv, lib, fetchFromGitHub, pythonPackages, makeWrapper, chromaprint }:
2+
3+with lib;
4+with pythonPackages;
5+
6+buildPythonApplication rec {
7+ version = "1.1.1";
8+ name = "puddletag-${version}";
9+ namePrefix = "";
10+
11+ src = fetchFromGitHub {
12+ owner = "keithgg";
13+ repo = "puddletag";
14+ rev = "1.1.1";
15+ sha256 = "0zmhc01qg64fb825b3kj0mb0r0d9hms30nqvhdks0qnv7ahahqrx";
16+ };
17+
18+ sourceRoot = "${name}-src/source";
19+
20+ disabled = isPy3k;
21+
22+ outputs = [ "out" ];
23+
24+ propagatedBuildInputs = [
25+ chromaprint
26+ configobj
27+ mutagen
28+ pyparsing
29+ pyqt4
30+ ];
31+
32+ doCheck = false; # there are no tests
33+ dontStrip = true; # we are not generating any binaries
34+
35+ installPhase = ''
36+ siteDir=$(toPythonPath $out)
37+ mkdir -p $siteDir
38+ PYTHONPATH=$PYTHONPATH:$siteDir
39+ ${python.interpreter} setup.py install --prefix $out
40+ '';
41+
42+ meta = with stdenv.lib; {
43+ homepage = https://puddletag.net;
44+ description = "An audio tag editor similar to the Windows program, Mp3tag";
45+ license = licenses.gpl3;
46+ platforms = platforms.linux;
47+ maintainers = with maintainers; [ peterhoeg ];
48+ };
49+}