Merge pull request #23999 from ndowens/salut-a-toi

salut-a-toi: 0.2.0 -> 0.6.1

authored by Michael Raskin and committed by GitHub 54aff5c3 6022a79c

+39 -35
+39 -35
pkgs/applications/networking/instant-messengers/salut-a-toi/default.nix
··· 1 - {stdenv, fetchurl, pythonPackages}: 1 + {stdenv, fetchurl, python27Packages, file }: 2 2 3 3 let 4 - inherit (pythonPackages) python; 5 - in stdenv.mkDerivation rec { 6 - url = "ftp://ftp.goffi.org/sat/sat-0.2.0.tar.bz2"; 7 - name = stdenv.lib.nameFromURL url ".tar"; 8 - src = fetchurl { 9 - inherit url; 10 - sha256 = "14qqgsgqns1xcp97nd3jcxrq54z1x5a6kimqxy029hh7ys813mf1"; 11 - }; 4 + inherit (python27Packages) python; 5 + in 6 + stdenv.mkDerivation rec { 7 + name = "salut-a-toi"; 8 + version = "0.6.1"; 9 + pname = "sat-${version}"; 10 + 11 + src = fetchurl { 12 + url = "ftp://ftp.goffi.org/sat/${pname}.tar.bz2"; 13 + sha256 = "0kn9403n8fpzl0hsb9kkzicsmzq2fjl627l31yykbqzc4nsr780d"; 14 + }; 12 15 13 - buildInputs = with pythonPackages; 16 + buildInputs = with python27Packages; 14 17 [ 15 18 python twisted urwid beautifulsoup wxPython pygobject2 16 - wokkel dbus-python pyfeed wrapPython setuptools 19 + wokkel dbus-python pyfeed wrapPython setuptools file 20 + pycrypto pyxdg 17 21 ]; 18 22 19 - configurePhase = '' 20 - sed -i "/use_setuptools/d" setup.py 21 - sed -e "s@sys.prefix@'$out'@g" -i setup.py 22 - sed -e "1aexport PATH=\"\$PATH\":\"$out/bin\":\"${pythonPackages.twisted}/bin\"" -i src/sat.sh 23 - sed -e "1aexport PYTHONPATH=\"\$PYTHONPATHPATH\":\"$PYTHONPATH\":"$out/${python.sitePackages}"" -i src/sat.sh 23 + configurePhase = '' 24 + sed -i "/use_setuptools/d" setup.py 25 + sed -e "s@sys.prefix@'$out'@g" -i setup.py 26 + sed -e "1aexport PATH=\"\$PATH\":\"$out/bin\":\"${python27Packages.twisted}/bin\"" -i src/sat.sh 27 + sed -e "1aexport PYTHONPATH=\"\$PYTHONPATHPATH\":\"$PYTHONPATH\":"$out/${python.sitePackages}"" -i src/sat.sh 24 28 25 - echo 'import wokkel.muc' | python 26 - ''; 29 + echo 'import wokkel.muc' | python 30 + ''; 27 31 28 - buildPhase = '' 29 - ${python.interpreter} setup.py build 30 - ''; 32 + buildPhase = '' 33 + ${python.interpreter} setup.py build 34 + ''; 31 35 32 - installPhase = '' 33 - ${python.interpreter} setup.py install --prefix="$out" 36 + installPhase = '' 37 + ${python.interpreter} setup.py install --prefix="$out" 34 38 35 - for i in "$out/bin"/*; do 39 + for i in "$out/bin"/*; do 36 40 head -n 1 "$i" | grep -E '[/ ]python( |$)' && { 37 41 wrapProgram "$i" --prefix PYTHONPATH : "$PYTHONPATH:$out/${python.sitePackages}" 38 42 } || true 39 - done 40 - ''; 41 - 42 - meta = { 43 - homepage = "http://sat.goffi.org/"; 44 - description = "A multi-frontend XMPP client"; 45 - platforms = stdenv.lib.platforms.linux; 46 - maintainers = with stdenv.lib.maintainers; [raskin]; 47 - license = stdenv.lib.licenses.gpl3Plus; 48 - }; 49 - } 43 + done 44 + ''; 45 + 46 + meta = with stdenv.lib; { 47 + homepage = http://sat.goffi.org/; 48 + description = "A multi-frontend XMPP client"; 49 + platforms = platforms.linux; 50 + maintainers = [ maintainers.raskin ]; 51 + license = licenses.gpl3Plus; 52 + }; 53 + }