2018-07-24 00:44:35 -07:00
|
|
|
{ stdenv, fetchFromGitHub, python3Packages }:
|
2015-04-19 10:01:10 -07:00
|
|
|
|
2018-07-24 00:44:35 -07:00
|
|
|
with python3Packages;
|
2017-04-26 22:39:32 -07:00
|
|
|
buildPythonApplication rec {
|
2018-08-16 13:49:52 -07:00
|
|
|
version = "1.24.0";
|
2018-07-24 00:44:35 -07:00
|
|
|
pname = "rtv";
|
2015-04-19 10:01:10 -07:00
|
|
|
|
2015-06-24 12:45:31 -07:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "michael-lazar";
|
|
|
|
repo = "rtv";
|
|
|
|
rev = "v${version}";
|
2018-08-16 13:49:52 -07:00
|
|
|
sha256 = "0vzhnqys8nr6ymsi1mnv092z3i7nwyhgnj4jv6mjifak9j3164fw";
|
2015-04-19 10:01:10 -07:00
|
|
|
};
|
|
|
|
|
2017-09-13 09:30:09 -07:00
|
|
|
# Tests try to access network
|
|
|
|
doCheck = false;
|
|
|
|
|
2017-04-26 22:39:32 -07:00
|
|
|
checkPhase = ''
|
|
|
|
py.test
|
|
|
|
'';
|
|
|
|
|
2018-07-24 00:44:35 -07:00
|
|
|
checkInputs = [
|
2017-04-26 22:39:32 -07:00
|
|
|
coverage
|
|
|
|
coveralls
|
|
|
|
docopt
|
|
|
|
mock
|
|
|
|
pylint
|
|
|
|
pytest
|
|
|
|
vcrpy
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
2017-01-03 03:38:45 -08:00
|
|
|
beautifulsoup4
|
2017-04-26 22:39:32 -07:00
|
|
|
decorator
|
|
|
|
kitchen
|
2017-05-07 03:55:45 -07:00
|
|
|
requests
|
2015-04-19 10:01:10 -07:00
|
|
|
six
|
2017-04-26 22:39:32 -07:00
|
|
|
];
|
2015-04-19 10:01:10 -07:00
|
|
|
|
2017-04-26 22:39:32 -07:00
|
|
|
meta = with stdenv.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;
|
2018-04-06 01:57:19 -07:00
|
|
|
maintainers = with maintainers; [ jgeerds wedens ];
|
2015-04-19 10:01:10 -07:00
|
|
|
};
|
|
|
|
}
|