forked from mirrors/nixpkgs
Merge pull request #13431 from igsha/i3pystatus
i3pystatus: 3.33 -> 3.34
This commit is contained in:
commit
02327d3a44
41
pkgs/applications/window-managers/i3/pystatus.nix
Normal file
41
pkgs/applications/window-managers/i3/pystatus.nix
Normal file
|
@ -0,0 +1,41 @@
|
||||||
|
{ stdenv, fetchurl, libpulseaudio, python3Packages, extraLibs ? [] }:
|
||||||
|
|
||||||
|
python3Packages.buildPythonApplication rec {
|
||||||
|
name = "${pname}-${version}";
|
||||||
|
version = "3.34";
|
||||||
|
pname = "i3pystatus";
|
||||||
|
disabled = !python3Packages.isPy3k;
|
||||||
|
|
||||||
|
src = fetchurl {
|
||||||
|
url = "https://pypi.python.org/packages/source/i/${pname}/${name}.tar.gz";
|
||||||
|
sha256 = "1bpkkf9q4zqq7fh65zynbv26nq24rfznmw71jjvda7g8kjrwjdk5";
|
||||||
|
};
|
||||||
|
|
||||||
|
propagatedBuildInputs = with python3Packages; [ keyring colour netifaces praw psutil basiciw ] ++
|
||||||
|
[ libpulseaudio ] ++ extraLibs;
|
||||||
|
|
||||||
|
ldWrapperSuffix = "--suffix LD_LIBRARY_PATH : \"${libpulseaudio}/lib\"";
|
||||||
|
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 ];
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
|
@ -12530,6 +12530,8 @@ let
|
||||||
|
|
||||||
i3minator = callPackage ../tools/misc/i3minator { };
|
i3minator = callPackage ../tools/misc/i3minator { };
|
||||||
|
|
||||||
|
i3pystatus = callPackage ../applications/window-managers/i3/pystatus.nix { };
|
||||||
|
|
||||||
i3status = callPackage ../applications/window-managers/i3/status.nix { };
|
i3status = callPackage ../applications/window-managers/i3/status.nix { };
|
||||||
|
|
||||||
i810switch = callPackage ../os-specific/linux/i810switch { };
|
i810switch = callPackage ../os-specific/linux/i810switch { };
|
||||||
|
|
|
@ -6047,41 +6047,6 @@ in modules // {
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
i3pystatus = buildPythonPackage rec {
|
|
||||||
name = "${pname}-${version}";
|
|
||||||
version = "3.33";
|
|
||||||
pname = "i3pystatus";
|
|
||||||
namePrefix = "";
|
|
||||||
disabled = !isPy3k;
|
|
||||||
|
|
||||||
src = pkgs.fetchurl {
|
|
||||||
url = "https://pypi.python.org/packages/source/i/${pname}/${name}.tar.gz";
|
|
||||||
sha256 = "1fs2nlzm9in8bwg8cm3567ayiha0v7k8pn793pm5fb7lywaalasy";
|
|
||||||
};
|
|
||||||
|
|
||||||
propagatedBuildInputs = with self; [ keyring colour netifaces praw psutil
|
|
||||||
basiciw pkgs.libpulseaudio ];
|
|
||||||
ldWrapperSuffix = "--suffix LD_LIBRARY_PATH : \"${pkgs.libpulseaudio}/lib\"";
|
|
||||||
makeWrapperArgs = [ ldWrapperSuffix ]; # libpulseaudio.so is loaded manually
|
|
||||||
|
|
||||||
postInstall = ''
|
|
||||||
makeWrapper ${python.interpreter} $out/bin/${pname}-python-interpreter \
|
|
||||||
--prefix PYTHONPATH : "$PYTHONPATH" \
|
|
||||||
${ldWrapperSuffix}
|
|
||||||
'';
|
|
||||||
|
|
||||||
meta = {
|
|
||||||
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;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
jdcal = buildPythonPackage rec {
|
jdcal = buildPythonPackage rec {
|
||||||
version = "1.0";
|
version = "1.0";
|
||||||
name = "jdcal-${version}";
|
name = "jdcal-${version}";
|
||||||
|
|
Loading…
Reference in a new issue