2016-02-24 19:33:21 +00:00
|
|
|
{ stdenv, fetchurl, libpulseaudio, python3Packages, extraLibs ? [] }:
|
|
|
|
|
|
|
|
python3Packages.buildPythonApplication rec {
|
|
|
|
name = "${pname}-${version}";
|
2016-09-03 23:23:21 +01:00
|
|
|
version = "3.35";
|
2016-02-24 19:33:21 +00:00
|
|
|
pname = "i3pystatus";
|
|
|
|
disabled = !python3Packages.isPy3k;
|
|
|
|
|
|
|
|
src = fetchurl {
|
2016-04-26 13:38:03 +01:00
|
|
|
url = "mirror://pypi/i/${pname}/${name}.tar.gz";
|
2016-09-03 23:23:21 +01:00
|
|
|
sha256 = "0g5m05rbqvq1qrspm6fyzky9xfhaz5pvc4hfzgdxrzijn8nfc860";
|
2016-02-24 19:33:21 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = with python3Packages; [ keyring colour netifaces praw psutil basiciw ] ++
|
|
|
|
[ libpulseaudio ] ++ extraLibs;
|
|
|
|
|
2016-05-14 12:23:29 +01:00
|
|
|
libpulseaudioPath = stdenv.lib.makeLibraryPath [ libpulseaudio ];
|
|
|
|
ldWrapperSuffix = "--suffix LD_LIBRARY_PATH : \"${libpulseaudioPath}\"";
|
2016-02-24 19:33:21 +00:00
|
|
|
makeWrapperArgs = [ ldWrapperSuffix ]; # libpulseaudio.so is loaded manually
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
makeWrapper ${python3Packages.python.interpreter} $out/bin/${pname}-python-interpreter \
|
|
|
|
--prefix PYTHONPATH : "$PYTHONPATH" \
|
|
|
|
${ldWrapperSuffix}
|
|
|
|
'';
|
|
|
|
|
|
|
|
# no tests in tarball
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = https://github.com/enkore/i3pystatus;
|
|
|
|
description = "A complete replacement for i3status";
|
|
|
|
longDescription = ''
|
|
|
|
i3pystatus is a growing collection of python scripts for status output compatible
|
|
|
|
to i3status / i3bar of the i3 window manager.
|
|
|
|
'';
|
|
|
|
license = licenses.mit;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = [ maintainers.igsha ];
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|