puddletag: force python2

This commit is contained in:
Peter Hoeg 2016-10-20 12:07:51 +08:00
parent 09e4b78b48
commit 7fe414999a
1 changed files with 10 additions and 12 deletions

View File

@ -1,33 +1,31 @@
{ stdenv, lib, fetchFromGitHub, pythonPackages, makeWrapper, chromaprint }: { stdenv, fetchFromGitHub, python2Packages, makeWrapper, chromaprint }:
with lib; let
with pythonPackages; pypkgs = python2Packages;
buildPythonApplication rec { in pypkgs.buildPythonApplication rec {
version = "1.1.1";
name = "puddletag-${version}"; name = "puddletag-${version}";
namePrefix = ""; version = "1.1.1";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "keithgg"; owner = "keithgg";
repo = "puddletag"; repo = "puddletag";
rev = "1.1.1"; rev = version;
sha256 = "0zmhc01qg64fb825b3kj0mb0r0d9hms30nqvhdks0qnv7ahahqrx"; sha256 = "0zmhc01qg64fb825b3kj0mb0r0d9hms30nqvhdks0qnv7ahahqrx";
}; };
sourceRoot = "${name}-src/source"; sourceRoot = "${name}-src/source";
disabled = isPy3k; disabled = pypkgs.isPy3k; # work to support python 3 has not begun
outputs = [ "out" ]; outputs = [ "out" ];
propagatedBuildInputs = [ propagatedBuildInputs = [ chromaprint ] ++ (with pypkgs; [
chromaprint
configobj configobj
mutagen mutagen
pyparsing pyparsing
pyqt4 pyqt4
]; ]);
doCheck = false; # there are no tests doCheck = false; # there are no tests
dontStrip = true; # we are not generating any binaries dontStrip = true; # we are not generating any binaries
@ -36,7 +34,7 @@ buildPythonApplication rec {
siteDir=$(toPythonPath $out) siteDir=$(toPythonPath $out)
mkdir -p $siteDir mkdir -p $siteDir
PYTHONPATH=$PYTHONPATH:$siteDir PYTHONPATH=$PYTHONPATH:$siteDir
${python.interpreter} setup.py install --prefix $out ${pypkgs.python.interpreter} setup.py install --prefix $out
''; '';
meta = with stdenv.lib; { meta = with stdenv.lib; {