2018-07-24 09:44:35 +02:00
|
|
|
{ stdenv, fetchFromGitHub, python3Packages }:
|
2015-04-19 19:01:10 +02:00
|
|
|
|
2018-07-24 09:44:35 +02:00
|
|
|
with python3Packages;
|
2017-04-27 07:39:32 +02:00
|
|
|
buildPythonApplication rec {
|
2019-06-04 23:35:37 +02:00
|
|
|
version = "1.27.0";
|
2018-07-24 09:44:35 +02:00
|
|
|
pname = "rtv";
|
2015-04-19 19:01:10 +02:00
|
|
|
|
2015-06-24 21:45:31 +02:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "michael-lazar";
|
|
|
|
repo = "rtv";
|
|
|
|
rev = "v${version}";
|
2019-06-04 23:35:37 +02:00
|
|
|
sha256 = "1hw7xy2kjxq7y3wcibcz4l7zj8icvigialqr17l362xry0y17y5j";
|
2015-04-19 19:01:10 +02:00
|
|
|
};
|
|
|
|
|
2017-09-13 18:30:09 +02:00
|
|
|
# Tests try to access network
|
|
|
|
doCheck = false;
|
|
|
|
|
2017-04-27 07:39:32 +02:00
|
|
|
checkPhase = ''
|
|
|
|
py.test
|
|
|
|
'';
|
|
|
|
|
2018-07-24 09:44:35 +02:00
|
|
|
checkInputs = [
|
2017-04-27 07:39:32 +02:00
|
|
|
coverage
|
|
|
|
coveralls
|
|
|
|
docopt
|
|
|
|
mock
|
|
|
|
pylint
|
|
|
|
pytest
|
|
|
|
vcrpy
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
2017-01-03 12:38:45 +01:00
|
|
|
beautifulsoup4
|
2017-04-27 07:39:32 +02:00
|
|
|
decorator
|
|
|
|
kitchen
|
2017-05-07 12:55:45 +02:00
|
|
|
requests
|
2015-04-19 19:01:10 +02:00
|
|
|
six
|
2017-04-27 07:39:32 +02:00
|
|
|
];
|
2015-04-19 19:01:10 +02:00
|
|
|
|
2017-04-27 07:39:32 +02:00
|
|
|
meta = with stdenv.lib; {
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://github.com/michael-lazar/rtv";
|
2015-04-19 19:01:10 +02:00
|
|
|
description = "Browse Reddit from your Terminal";
|
2015-06-21 13:23:38 +02:00
|
|
|
license = licenses.mit;
|
2019-03-12 23:45:33 +01:00
|
|
|
maintainers = with maintainers; [ matthiasbeyer wedens ];
|
2015-04-19 19:01:10 +02:00
|
|
|
};
|
|
|
|
}
|