2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, python3Packages }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
with python3Packages;
|
|
|
|
buildPythonApplication rec {
|
|
|
|
version = "1.27.0";
|
|
|
|
pname = "rtv";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "michael-lazar";
|
|
|
|
repo = "rtv";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "1hw7xy2kjxq7y3wcibcz4l7zj8icvigialqr17l362xry0y17y5j";
|
|
|
|
};
|
|
|
|
|
|
|
|
# Tests try to access network
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
py.test
|
|
|
|
'';
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
coverage
|
|
|
|
coveralls
|
|
|
|
docopt
|
|
|
|
mock
|
|
|
|
pylint
|
|
|
|
pytest
|
|
|
|
vcrpy
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
beautifulsoup4
|
|
|
|
decorator
|
|
|
|
kitchen
|
|
|
|
requests
|
|
|
|
six
|
|
|
|
];
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://github.com/michael-lazar/rtv";
|
|
|
|
description = "Browse Reddit from your Terminal";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ matthiasbeyer wedens ];
|
|
|
|
};
|
|
|
|
}
|