about summary refs log tree commit diff
path: root/pkgs/applications/networking/feedreaders/rss2email
diff options
context:
space:
mode:
authorProfpatsch <mail@profpatsch.de>2018-02-15 13:19:48 +0100
committerProfpatsch <mail@profpatsch.de>2018-02-15 13:55:33 +0100
commitc4af2ca2cb668e1ffe2691d0aeeeffacdcbd563f (patch)
tree733a86ce001624a38775af97ab37b7c58500110e /pkgs/applications/networking/feedreaders/rss2email
parent5646300ca4b314087007ade2dcbcbdecc3266eb5 (diff)
downloadnixlib-c4af2ca2cb668e1ffe2691d0aeeeffacdcbd563f.tar
nixlib-c4af2ca2cb668e1ffe2691d0aeeeffacdcbd563f.tar.gz
nixlib-c4af2ca2cb668e1ffe2691d0aeeeffacdcbd563f.tar.bz2
nixlib-c4af2ca2cb668e1ffe2691d0aeeeffacdcbd563f.tar.lz
nixlib-c4af2ca2cb668e1ffe2691d0aeeeffacdcbd563f.tar.xz
nixlib-c4af2ca2cb668e1ffe2691d0aeeeffacdcbd563f.tar.zst
nixlib-c4af2ca2cb668e1ffe2691d0aeeeffacdcbd563f.zip
rss2email: add docs and code for running tests
The tests are not working yet (upstream bug).
Diffstat (limited to 'pkgs/applications/networking/feedreaders/rss2email')
-rw-r--r--pkgs/applications/networking/feedreaders/rss2email/default.nix16
1 files changed, 14 insertions, 2 deletions
diff --git a/pkgs/applications/networking/feedreaders/rss2email/default.nix b/pkgs/applications/networking/feedreaders/rss2email/default.nix
index 017f9c0c95a0..49b0aed865f9 100644
--- a/pkgs/applications/networking/feedreaders/rss2email/default.nix
+++ b/pkgs/applications/networking/feedreaders/rss2email/default.nix
@@ -14,12 +14,24 @@ buildPythonApplication rec {
     sha256 = "02wj9zhmc2ym8ba1i0z9pm1c622z2fj7fxwagnxbvpr1402ahmr5";
   };
 
+  outputs = [ "out" "man" "doc" ];
+
   postInstall = ''
-    install -Dm 644 r2e.1 $out/share/man/man1/r2e.1
+    install -Dm 644 r2e.1 $man/share/man/man1/r2e.1
     # an alias for better finding the manpage
-    ln -s -T r2e.1 $out/share/man/man1/rss2email.1
+    ln -s -T r2e.1 $man/share/man/man1/rss2email.1
+
+    # copy documentation
+    mkdir -p $doc/share/doc/rss2email
+    cp AUTHORS COPYING CHANGELOG README $doc/share/doc/rss2email/
   '';
 
+  # The tests currently fail, see
+  # https://github.com/rss2email/rss2email/issues/14
+  # postCheck = ''
+  #   env PYTHONPATH=.:$PYTHONPATH python ./test/test.py
+  # '';
+
   meta = with lib; {
     description = "A tool that converts RSS/Atom newsfeeds to email.";
     homepage = https://pypi.python.org/pypi/rss2email;