2018-07-24 07:44:35 +00:00
|
|
|
{ stdenv, fetchFromGitHub, python3Packages }:
|
2015-04-19 17:01:10 +00:00
|
|
|
|
2018-07-24 07:44:35 +00:00
|
|
|
with python3Packages;
|
2017-04-27 05:39:32 +00:00
|
|
|
buildPythonApplication rec {
|
2019-03-12 02:23:19 +00:00
|
|
|
version = "1.26.0";
|
2018-07-24 07:44:35 +00:00
|
|
|
pname = "rtv";
|
2015-04-19 17:01:10 +00:00
|
|
|
|
2015-06-24 19:45:31 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "michael-lazar";
|
|
|
|
repo = "rtv";
|
|
|
|
rev = "v${version}";
|
2019-03-12 02:23:19 +00:00
|
|
|
sha256 = "0smwlhc4sj92365pl7yy6a821xddmh9px43nbd0kdd2z9xrndyx1";
|
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
|
|
|
|
'';
|
|
|
|
|
2018-07-24 07:44:35 +00:00
|
|
|
checkInputs = [
|
2017-04-27 05:39:32 +00:00
|
|
|
coverage
|
|
|
|
coveralls
|
|
|
|
docopt
|
|
|
|
mock
|
|
|
|
pylint
|
|
|
|
pytest
|
|
|
|
vcrpy
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
2017-01-03 11:38:45 +00:00
|
|
|
beautifulsoup4
|
2017-04-27 05:39:32 +00:00
|
|
|
decorator
|
|
|
|
kitchen
|
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
|
|
|
];
|
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;
|
2019-03-12 22:45:33 +00:00
|
|
|
maintainers = with maintainers; [ matthiasbeyer wedens ];
|
2015-04-19 17:01:10 +00:00
|
|
|
};
|
|
|
|
}
|