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

54 lines
974 B
Nix
Raw Normal View History

{ stdenv, fetchFromGitHub, pkgs, pythonPackages }:
2015-04-19 18:01:10 +01:00
with pythonPackages;
buildPythonApplication rec {
2018-01-29 23:18:22 +00:00
version = "1.21.0";
2015-04-19 18:01:10 +01:00
name = "rtv-${version}";
src = fetchFromGitHub {
owner = "michael-lazar";
repo = "rtv";
rev = "v${version}";
2018-01-29 23:18:22 +00:00
sha256 = "0srm01nrb23hdmj3ripsa9p8nv2cgss3m6and9rdr875qw5ii130";
2015-04-19 18:01:10 +01: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 18:01:10 +01:00
six
tornado
2017-04-25 11:41:51 +01:00
pyyaml
];
2015-04-19 18:01:10 +01:00
meta = with stdenv.lib; {
2015-04-19 18:01:10 +01:00
homepage = https://github.com/michael-lazar/rtv;
description = "Browse Reddit from your Terminal";
2015-06-21 12:23:38 +01:00
license = licenses.mit;
2016-04-06 17:12:16 +01:00
maintainers = with maintainers; [ matthiasbeyer jgeerds wedens ];
2015-04-19 18:01:10 +01:00
};
}