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