nixpkgs/pkgs/applications/misc/rtv/default.nix

47 lines
827 B
Nix
Raw Normal View History

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