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