nixpkgs/pkgs/applications/misc/rtv/default.nix

32 lines
768 B
Nix
Raw Normal View History

2015-11-21 21:14:42 -08:00
{ stdenv, fetchFromGitHub, pkgs, lib, python, pythonPackages }:
2015-04-19 10:01:10 -07:00
pythonPackages.buildPythonApplication rec {
2017-01-26 15:43:19 -08:00
version = "1.14.1";
2015-04-19 10:01:10 -07:00
name = "rtv-${version}";
src = fetchFromGitHub {
owner = "michael-lazar";
repo = "rtv";
rev = "v${version}";
2017-01-26 15:43:19 -08:00
sha256 = "03106sdsvj4zjjaqqg7qvm3n959plvy08a6n28ir1yf67kwzsx8a";
2015-04-19 10:01:10 -07:00
};
propagatedBuildInputs = with pythonPackages; [
2017-01-03 03:38:45 -08:00
beautifulsoup4
mailcap-fix
2015-11-21 21:14:42 -08:00
tornado
requests2
2015-04-19 10:01:10 -07:00
six
praw
2015-06-19 10:10:20 -07:00
kitchen
2016-07-28 05:00:37 -07:00
praw
2015-11-21 21:14:42 -08:00
] ++ lib.optional (!pythonPackages.isPy3k) futures;
2015-04-19 10:01:10 -07:00
2015-11-21 21:14:42 -08:00
meta = with lib; {
2015-04-19 10:01:10 -07:00
homepage = https://github.com/michael-lazar/rtv;
description = "Browse Reddit from your Terminal";
2015-06-21 04:23:38 -07:00
license = licenses.mit;
2016-04-06 09:12:16 -07:00
maintainers = with maintainers; [ matthiasbeyer jgeerds wedens ];
2015-04-19 10:01:10 -07:00
};
}