2017-04-27 08:39:32 +03:00
|
|
|
{ stdenv, fetchFromGitHub, pkgs, pythonPackages }:
|
2015-04-19 20:01:10 +03:00
|
|
|
|
2017-04-27 08:39:32 +03:00
|
|
|
with pythonPackages;
|
|
|
|
buildPythonApplication rec {
|
2017-04-25 13:41:51 +03:00
|
|
|
version = "1.15.1";
|
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}";
|
2017-04-25 13:41:51 +03:00
|
|
|
sha256 = "037dhds1prxj7vsq15dr46wk3pfk3ixr0d60m3h796b6nbc1spya";
|
2015-04-19 20:01:10 +03:00
|
|
|
};
|
|
|
|
|
2017-04-27 08:39:32 +03:00
|
|
|
checkPhase = ''
|
|
|
|
py.test
|
|
|
|
'';
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
coverage
|
|
|
|
coveralls
|
|
|
|
docopt
|
|
|
|
mock
|
|
|
|
pylint
|
|
|
|
pytest
|
|
|
|
vcrpy
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
backports_functools_lru_cache
|
2017-01-03 14:38:45 +03:00
|
|
|
beautifulsoup4
|
2017-04-27 08:39:32 +03:00
|
|
|
configparser
|
|
|
|
contextlib2
|
|
|
|
decorator
|
|
|
|
kitchen
|
2017-01-03 14:38:45 +03:00
|
|
|
mailcap-fix
|
2017-04-27 08:39:32 +03:00
|
|
|
mccabe
|
2015-11-22 08:14:42 +03:00
|
|
|
requests2
|
2015-04-19 20:01:10 +03:00
|
|
|
six
|
2017-04-27 08:39:32 +03:00
|
|
|
tornado
|
2017-04-25 13:41:51 +03:00
|
|
|
pyyaml
|
2017-04-27 08:39:32 +03:00
|
|
|
];
|
2015-04-19 20:01:10 +03:00
|
|
|
|
2017-04-27 08:39:32 +03:00
|
|
|
meta = with stdenv.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
|
|
|
};
|
|
|
|
}
|