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

54 lines
954 B
Nix
Raw Normal View History

{ stdenv, fetchFromGitHub, pythonPackages }:
2015-04-19 17:01:10 +00:00
with pythonPackages;
buildPythonApplication rec {
version = "1.23.0";
2015-04-19 17:01:10 +00:00
name = "rtv-${version}";
src = fetchFromGitHub {
owner = "michael-lazar";
repo = "rtv";
rev = "v${version}";
sha256 = "0i6iqj3ly1bgsfa9403m5190mfl9yk1x4ific3v31wqfja985nsr";
2015-04-19 17:01:10 +00:00
};
# Tests try to access network
doCheck = false;
checkPhase = ''
py.test
'';
buildInputs = [
coverage
coveralls
docopt
mock
pylint
pytest
vcrpy
];
propagatedBuildInputs = [
backports_functools_lru_cache
2017-01-03 11:38:45 +00:00
beautifulsoup4
configparser
contextlib2
decorator
kitchen
2017-01-03 11:38:45 +00:00
mailcap-fix
mccabe
requests
2015-04-19 17:01:10 +00:00
six
tornado
2017-04-25 10:41:51 +00:00
pyyaml
];
2015-04-19 17:01:10 +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;
maintainers = with maintainers; [ jgeerds wedens ];
2015-04-19 17:01:10 +00:00
};
}