2017-04-27 05:39:32 +00:00
|
|
|
{ stdenv, fetchFromGitHub, pkgs, pythonPackages }:
|
2015-04-19 17:01:10 +00:00
|
|
|
|
2017-04-27 05:39:32 +00:00
|
|
|
with pythonPackages;
|
|
|
|
buildPythonApplication rec {
|
2018-03-15 12:31:30 +00:00
|
|
|
version = "1.22.1";
|
2015-04-19 17:01:10 +00:00
|
|
|
name = "rtv-${version}";
|
|
|
|
|
2015-06-24 19:45:31 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "michael-lazar";
|
|
|
|
repo = "rtv";
|
|
|
|
rev = "v${version}";
|
2018-03-15 12:31:30 +00:00
|
|
|
sha256 = "1jil8cwhnpf2mclgah7s79j4c38hzm0j6di2mffrqhlsnn2vxbf4";
|
2015-04-19 17:01:10 +00:00
|
|
|
};
|
|
|
|
|
2017-09-13 16:30:09 +00:00
|
|
|
# Tests try to access network
|
|
|
|
doCheck = false;
|
|
|
|
|
2017-04-27 05:39:32 +00:00
|
|
|
checkPhase = ''
|
|
|
|
py.test
|
|
|
|
'';
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
coverage
|
|
|
|
coveralls
|
|
|
|
docopt
|
|
|
|
mock
|
|
|
|
pylint
|
|
|
|
pytest
|
|
|
|
vcrpy
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
backports_functools_lru_cache
|
2017-01-03 11:38:45 +00:00
|
|
|
beautifulsoup4
|
2017-04-27 05:39:32 +00:00
|
|
|
configparser
|
|
|
|
contextlib2
|
|
|
|
decorator
|
|
|
|
kitchen
|
2017-01-03 11:38:45 +00:00
|
|
|
mailcap-fix
|
2017-04-27 05:39:32 +00:00
|
|
|
mccabe
|
2017-05-07 10:55:45 +00:00
|
|
|
requests
|
2015-04-19 17:01:10 +00:00
|
|
|
six
|
2017-04-27 05:39:32 +00:00
|
|
|
tornado
|
2017-04-25 10:41:51 +00:00
|
|
|
pyyaml
|
2017-04-27 05:39:32 +00:00
|
|
|
];
|
2015-04-19 17:01:10 +00:00
|
|
|
|
2017-04-27 05:39:32 +00:00
|
|
|
meta = with stdenv.lib; {
|
2015-04-19 17:01:10 +00:00
|
|
|
homepage = https://github.com/michael-lazar/rtv;
|
|
|
|
description = "Browse Reddit from your Terminal";
|
2015-06-21 11:23:38 +00:00
|
|
|
license = licenses.mit;
|
2018-04-06 08:57:19 +00:00
|
|
|
maintainers = with maintainers; [ jgeerds wedens ];
|
2015-04-19 17:01:10 +00:00
|
|
|
};
|
|
|
|
}
|