1{ lib 2, buildPythonPackage 3, fetchPypi 4, kaa-base 5, isPyPy 6, isPy3k 7, python 8, pkgs 9}: 10 11buildPythonPackage rec { 12 version = "0.7.8dev-r4569-20111003"; 13 pname = "kaa-metadata"; 14 disabled = isPyPy || isPy3k; 15 16 src = fetchPypi { 17 inherit pname version; 18 sha256 = "0bkbzfgxvmby8lvzkqjp86anxvv3vjd9nksv2g4l7shsk1n7y27a"; 19 }; 20 21 doCheck = false; 22 23 buildInputs = [ pkgs.libdvdread ]; 24 25 propagatedBuildInputs = [ kaa-base ]; 26 27 # Same as in buildPythonPackage except that it does not pass --old-and-unmanageable 28 installPhase = '' 29 runHook preInstall 30 31 mkdir -p "$out/lib/${python.libPrefix}/site-packages" 32 33 export PYTHONPATH="$out/lib/${python.libPrefix}/site-packages:$PYTHONPATH" 34 35 ${python}/bin/${python.executable} setup.py install \ 36 --install-lib=$out/lib/${python.libPrefix}/site-packages \ 37 --prefix="$out" 38 39 eapth="$out/lib/${python.libPrefix}"/site-packages/easy-install.pth 40 if [ -e "$eapth" ]; then 41 mv "$eapth" $(dirname "$eapth")/${pname}-${version}.pth 42 fi 43 44 rm -f "$out/lib/${python.libPrefix}"/site-packages/site.py* 45 46 runHook postInstall 47 ''; 48 49 meta = with lib; { 50 description = "Python library for parsing media metadata, which can extract metadata (e.g., such as id3 tags) from a wide range of media files"; 51 homepage = "https://github.com/freevo/kaa-metadata"; 52 license = licenses.gpl2; 53 maintainers = with maintainers; [ ]; 54 }; 55 56}