rtv: enable tests; split of test dependencies
This commit is contained in:
parent
7213b3bbdf
commit
268e88830c
@ -1,6 +1,7 @@
|
|||||||
{ stdenv, fetchFromGitHub, pkgs, lib, python, pythonPackages }:
|
{ stdenv, fetchFromGitHub, pkgs, pythonPackages }:
|
||||||
|
|
||||||
pythonPackages.buildPythonApplication rec {
|
with pythonPackages;
|
||||||
|
buildPythonApplication rec {
|
||||||
version = "1.15.1";
|
version = "1.15.1";
|
||||||
name = "rtv-${version}";
|
name = "rtv-${version}";
|
||||||
|
|
||||||
@ -11,27 +12,36 @@ pythonPackages.buildPythonApplication rec {
|
|||||||
sha256 = "037dhds1prxj7vsq15dr46wk3pfk3ixr0d60m3h796b6nbc1spya";
|
sha256 = "037dhds1prxj7vsq15dr46wk3pfk3ixr0d60m3h796b6nbc1spya";
|
||||||
};
|
};
|
||||||
|
|
||||||
propagatedBuildInputs = with pythonPackages; [
|
checkPhase = ''
|
||||||
|
py.test
|
||||||
|
'';
|
||||||
|
|
||||||
|
buildInputs = [
|
||||||
|
coverage
|
||||||
|
coveralls
|
||||||
|
docopt
|
||||||
|
mock
|
||||||
|
pylint
|
||||||
|
pytest
|
||||||
|
vcrpy
|
||||||
|
];
|
||||||
|
|
||||||
|
propagatedBuildInputs = [
|
||||||
|
backports_functools_lru_cache
|
||||||
beautifulsoup4
|
beautifulsoup4
|
||||||
|
configparser
|
||||||
|
contextlib2
|
||||||
|
decorator
|
||||||
|
kitchen
|
||||||
mailcap-fix
|
mailcap-fix
|
||||||
tornado
|
mccabe
|
||||||
requests2
|
requests2
|
||||||
six
|
six
|
||||||
praw
|
tornado
|
||||||
kitchen
|
|
||||||
praw
|
|
||||||
vcrpy
|
|
||||||
pylint
|
|
||||||
coverage
|
|
||||||
pytest
|
|
||||||
coveralls
|
|
||||||
contextlib2
|
|
||||||
backports_functools_lru_cache
|
|
||||||
pyyaml
|
pyyaml
|
||||||
docopt
|
];
|
||||||
] ++ lib.optional (!pythonPackages.isPy3k) futures;
|
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with stdenv.lib; {
|
||||||
homepage = https://github.com/michael-lazar/rtv;
|
homepage = https://github.com/michael-lazar/rtv;
|
||||||
description = "Browse Reddit from your Terminal";
|
description = "Browse Reddit from your Terminal";
|
||||||
license = licenses.mit;
|
license = licenses.mit;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user