2016-08-16 21:51:21 +01:00
|
|
|
{stdenv, fetchurl, pythonPackages}:
|
|
|
|
|
|
|
|
let
|
|
|
|
inherit (pythonPackages) python;
|
|
|
|
in stdenv.mkDerivation rec {
|
2012-09-13 11:14:49 +01:00
|
|
|
url = "ftp://ftp.goffi.org/sat/sat-0.2.0.tar.bz2";
|
|
|
|
name = stdenv.lib.nameFromURL url ".tar";
|
|
|
|
src = fetchurl {
|
|
|
|
inherit url;
|
|
|
|
sha256 = "14qqgsgqns1xcp97nd3jcxrq54z1x5a6kimqxy029hh7ys813mf1";
|
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = with pythonPackages;
|
|
|
|
[
|
2016-09-11 22:24:51 +01:00
|
|
|
python twisted urwid beautifulsoup wxPython pygobject2
|
2016-08-16 21:51:21 +01:00
|
|
|
wokkel dbus-python pyfeed wrapPython setuptools
|
2012-09-13 11:14:49 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
configurePhase = ''
|
2013-12-29 12:04:39 +00:00
|
|
|
sed -i "/use_setuptools/d" setup.py
|
2012-09-13 11:14:49 +01:00
|
|
|
sed -e "s@sys.prefix@'$out'@g" -i setup.py
|
2012-09-13 11:24:07 +01:00
|
|
|
sed -e "1aexport PATH=\"\$PATH\":\"$out/bin\":\"${pythonPackages.twisted}/bin\"" -i src/sat.sh
|
2016-08-16 21:51:21 +01:00
|
|
|
sed -e "1aexport PYTHONPATH=\"\$PYTHONPATHPATH\":\"$PYTHONPATH\":"$out/${python.sitePackages}"" -i src/sat.sh
|
2012-09-13 11:14:49 +01:00
|
|
|
|
|
|
|
echo 'import wokkel.muc' | python
|
|
|
|
'';
|
|
|
|
|
|
|
|
buildPhase = ''
|
2016-09-04 18:19:42 +01:00
|
|
|
${python.interpreter} setup.py build
|
2012-09-13 11:14:49 +01:00
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
2016-08-16 21:51:21 +01:00
|
|
|
${python.interpreter} setup.py install --prefix="$out"
|
2012-09-13 11:46:45 +01:00
|
|
|
|
|
|
|
for i in "$out/bin"/*; do
|
|
|
|
head -n 1 "$i" | grep -E '[/ ]python( |$)' && {
|
2016-08-16 21:51:21 +01:00
|
|
|
wrapProgram "$i" --prefix PYTHONPATH : "$PYTHONPATH:$out/${python.sitePackages}"
|
2012-09-13 11:46:45 +01:00
|
|
|
} || true
|
|
|
|
done
|
2012-09-13 11:14:49 +01:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = "http://sat.goffi.org/";
|
|
|
|
description = "A multi-frontend XMPP client";
|
|
|
|
platforms = stdenv.lib.platforms.linux;
|
|
|
|
maintainers = with stdenv.lib.maintainers; [raskin];
|
2012-09-13 12:30:12 +01:00
|
|
|
license = stdenv.lib.licenses.gpl3Plus;
|
2012-09-13 11:14:49 +01:00
|
|
|
};
|
|
|
|
}
|