alot: 0.3.6 -> 0.3.7, fixes #12914

Version bump.
The checks are back again, so far alot has no tests at all.
Add urwidtrees dependency.

The themes are copied to the derivation and set as default directory.
This commit is contained in:
Profpatsch 2016-02-10 02:00:18 +01:00 committed by Rok Garbas
parent 3b1d18ff48
commit 9fecc50603

View File

@ -554,28 +554,35 @@ in modules // {
alot = buildPythonPackage rec { alot = buildPythonPackage rec {
rev = "0.3.6"; rev = "0.3.7";
name = "alot-0.3.6"; name = "alot-${rev}";
src = pkgs.fetchurl { src = pkgs.fetchFromGitHub {
url = "https://github.com/pazz/alot/tarball/${rev}"; owner = "pazz";
name = "${name}.tar.bz"; repo = "alot";
sha256 = "1rzy70w4isvypa94310xw403vq5him21q8rlx4laa0z530phkrmq"; inherit rev;
sha256 = "0sscmmf42gsrjbisi6wm01alzlnq6wqhpwkm8pc557075jfg19il";
}; };
# error: invalid command 'test' postPatch = ''
doCheck = false; substituteInPlace alot/defaults/alot.rc.spec \
--replace "themes_dir = string(default=None)" \
"themes_dir = string(default='$out/share/themes')"
'';
propagatedBuildInputs = propagatedBuildInputs =
[ self.notmuch [ self.notmuch
self.urwid self.urwid
self.urwidtrees
self.twisted self.twisted
self.magic self.python_magic
self.configobj self.configobj
self.pygpgme self.pygpgme
]; ];
postInstall = '' postInstall = ''
mkdir -p $out/share
cp -r extra/themes $out/share
wrapProgram $out/bin/alot \ wrapProgram $out/bin/alot \
--prefix LD_LIBRARY_PATH : ${pkgs.notmuch}/lib:${pkgs.file}/lib:${pkgs.gpgme}/lib --prefix LD_LIBRARY_PATH : ${pkgs.notmuch}/lib:${pkgs.file}/lib:${pkgs.gpgme}/lib
''; '';
@ -583,7 +590,7 @@ in modules // {
meta = { meta = {
homepage = https://github.com/pazz/alot; homepage = https://github.com/pazz/alot;
description = "Terminal MUA using notmuch mail"; description = "Terminal MUA using notmuch mail";
maintainers = with maintainers; [ garbas ]; maintainers = with maintainers; [ garbas profpatsch ];
}; };
}; };
@ -21060,6 +21067,26 @@ in modules // {
}; };
}); });
urwidtrees = buildPythonPackage rec {
name = "urwidtrees-${rev}";
rev = "1.0";
src = pkgs.fetchFromGitHub {
owner = "pazz";
repo = "urwidtrees";
inherit rev;
sha256 = "03gpcdi45z2idy1fd9zv8v9naivmpfx65hshm8r984k9wklv1dsa";
};
propagatedBuildInputs = with self; [ urwid ];
meta = {
description = "Tree widgets for urwid";
license = licenses.gpl3;
maintainer = with maintainters; [ profpatsch ];
};
};
pyuv = buildPythonPackage rec { pyuv = buildPythonPackage rec {
name = "pyuv-0.11.5"; name = "pyuv-0.11.5";
disabled = isPyPy; # see https://github.com/saghul/pyuv/issues/49 disabled = isPyPy; # see https://github.com/saghul/pyuv/issues/49