From c049463520f676301a9d6422999a2f98b2fe68cb Mon Sep 17 00:00:00 2001 From: Peter Hoeg Date: Mon, 2 Jan 2017 23:19:59 +0800 Subject: [PATCH] puddletag: get rid of pypkgs variable --- pkgs/applications/audio/puddletag/default.nix | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/pkgs/applications/audio/puddletag/default.nix b/pkgs/applications/audio/puddletag/default.nix index 631a5701591..c140e1a46e5 100644 --- a/pkgs/applications/audio/puddletag/default.nix +++ b/pkgs/applications/audio/puddletag/default.nix @@ -1,10 +1,9 @@ { stdenv, fetchFromGitHub, python2Packages, makeWrapper, chromaprint }: let - pypkgs = python2Packages; pname = "puddletag"; -in pypkgs.buildPythonApplication rec { +in python2Packages.buildPythonApplication rec { name = "${pname}-${version}"; version = "1.2.0"; @@ -17,11 +16,9 @@ in pypkgs.buildPythonApplication rec { sourceRoot = "${pname}-v${version}-src/source"; - disabled = pypkgs.isPy3k; # work to support python 3 has not begun + disabled = python2Packages.isPy3k; # work to support python 3 has not begun - outputs = [ "out" ]; - - propagatedBuildInputs = [ chromaprint ] ++ (with pypkgs; [ + propagatedBuildInputs = [ chromaprint ] ++ (with python2Packages; [ configobj mutagen pyparsing @@ -35,7 +32,7 @@ in pypkgs.buildPythonApplication rec { siteDir=$(toPythonPath $out) mkdir -p $siteDir PYTHONPATH=$PYTHONPATH:$siteDir - ${pypkgs.python.interpreter} setup.py install --prefix $out + ${python2Packages.python.interpreter} setup.py install --prefix $out ''; meta = with stdenv.lib; {