1{ lib 2, buildPythonPackage 3, fetchPypi 4, isPyPy 5, isPy3k 6, python 7}: 8 9buildPythonPackage rec { 10 version = "0.99.2dev-384-2b73caca"; 11 pname = "kaa-base"; 12 13 src = fetchPypi { 14 inherit pname version; 15 sha256 = "0k3zzz84wzz9q1fl3vvqr2ys96z9pcf4viq9q6s2a63zaysmcfd2"; 16 }; 17 18 doCheck = false; 19 20 disabled = isPyPy || isPy3k; 21 22 # Same as in buildPythonPackage except that it does not pass --old-and-unmanageable 23 installPhase = '' 24 runHook preInstall 25 26 mkdir -p "$out/lib/${python.libPrefix}/site-packages" 27 28 export PYTHONPATH="$out/lib/${python.libPrefix}/site-packages:$PYTHONPATH" 29 30 ${python}/bin/${python.executable} setup.py install \ 31 --install-lib=$out/lib/${python.libPrefix}/site-packages \ 32 --prefix="$out" 33 34 eapth="$out/lib/${python.libPrefix}"/site-packages/easy-install.pth 35 if [ -e "$eapth" ]; then 36 mv "$eapth" $(dirname "$eapth")/${pname}-${version}.pth 37 fi 38 39 rm -f "$out/lib/${python.libPrefix}"/site-packages/site.py* 40 41 runHook postInstall 42 ''; 43 44 meta = with lib; { 45 description = "Generic application framework, providing the foundation for other modules"; 46 homepage = "https://github.com/freevo/kaa-base"; 47 license = licenses.lgpl21; 48 maintainers = with maintainers; [ ]; 49 }; 50 51}