2015-11-22 06:14:42 +01:00
|
|
|
{ stdenv, fetchFromGitHub, pkgs, lib, python, pythonPackages }:
|
2015-04-19 19:01:10 +02:00
|
|
|
|
2016-02-19 13:12:11 +01:00
|
|
|
pythonPackages.buildPythonApplication rec {
|
2016-07-28 14:00:37 +02:00
|
|
|
version = "1.10.0";
|
2015-04-19 19:01:10 +02:00
|
|
|
name = "rtv-${version}";
|
|
|
|
|
2015-06-24 21:45:31 +02:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "michael-lazar";
|
|
|
|
repo = "rtv";
|
|
|
|
rev = "v${version}";
|
2016-07-28 14:00:37 +02:00
|
|
|
sha256 = "1gm5jyqqssf69lfx0svhzsb9m0dffm6zsf9jqnwh6gjihfz25a45";
|
2015-04-19 19:01:10 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = with pythonPackages; [
|
2015-11-22 06:14:42 +01:00
|
|
|
tornado
|
|
|
|
requests2
|
2015-04-19 19:01:10 +02:00
|
|
|
six
|
|
|
|
praw
|
2015-06-19 19:10:20 +02:00
|
|
|
kitchen
|
2016-07-28 14:00:37 +02:00
|
|
|
praw
|
2015-11-22 06:14:42 +01:00
|
|
|
] ++ lib.optional (!pythonPackages.isPy3k) futures;
|
2015-04-19 19:01:10 +02:00
|
|
|
|
2015-11-22 06:14:42 +01:00
|
|
|
meta = with lib; {
|
2015-04-19 19:01:10 +02:00
|
|
|
homepage = https://github.com/michael-lazar/rtv;
|
|
|
|
description = "Browse Reddit from your Terminal";
|
2015-06-21 13:23:38 +02:00
|
|
|
license = licenses.mit;
|
2016-04-06 18:12:16 +02:00
|
|
|
maintainers = with maintainers; [ matthiasbeyer jgeerds wedens ];
|
2015-04-19 19:01:10 +02:00
|
|
|
};
|
|
|
|
}
|