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