1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-24 14:41:17 +00:00

rss2email: 3.9 -> 3.10

This commit is contained in:
Léo Gaspard 2019-09-01 01:56:28 +02:00 committed by Profpatsch
parent 404caba16b
commit a80eef922d
2 changed files with 8 additions and 13 deletions

View file

@ -43,9 +43,8 @@ in {
<literal>[DEFAULT]</literal> block along with the
<literal>to</literal> parameter.
See
<literal>https://github.com/rss2email/rss2email/blob/master/r2e.1</literal>
for more information on which parameters are accepted.
See <literal>man r2e</literal> for more information on which
parameters are accepted.
'';
};

View file

@ -4,15 +4,13 @@ with pythonPackages;
buildPythonApplication rec {
pname = "rss2email";
version = "3.9"; # TODO: on next bump, the manpage will be updated.
# Update nixos/modules/services/mail/rss2email.nix to point to it instead of
# to the online r2e.1
version = "3.10";
propagatedBuildInputs = [ feedparser beautifulsoup4 html2text ];
src = fetchurl {
url = "mirror://pypi/r/rss2email/${pname}-${version}.tar.gz";
sha256 = "02wj9zhmc2ym8ba1i0z9pm1c622z2fj7fxwagnxbvpr1402ahmr5";
sha256 = "1yjgbgpq9jjmpywwk6n4lzb2k7mqgdgfgm4jckv4zy0fn595pih1";
};
outputs = [ "out" "man" "doc" ];
@ -30,14 +28,12 @@ buildPythonApplication rec {
# copy documentation
mkdir -p $doc/share/doc/rss2email
cp AUTHORS COPYING CHANGELOG README $doc/share/doc/rss2email/
cp AUTHORS COPYING CHANGELOG README.rst $doc/share/doc/rss2email/
'';
# The tests currently fail, see
# https://github.com/rss2email/rss2email/issues/14
# postCheck = ''
# env PYTHONPATH=.:$PYTHONPATH python ./test/test.py
# '';
postCheck = ''
env PATH=$out/bin:$PATH python ./test/test.py
'';
meta = with lib; {
description = "A tool that converts RSS/Atom newsfeeds to email.";