flexget-1.2.346-r1.ebuild 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. # Copyright 1999-2016 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=5
  4. PYTHON_COMPAT=( python2_7 )
  5. inherit distutils-r1 eutils
  6. if [[ ${PV} != 9999 ]]; then
  7. MY_P="FlexGet-${PV}"
  8. SRC_URI="mirror://pypi/F/FlexGet/${MY_P}.tar.gz"
  9. KEYWORDS="~amd64 ~x86"
  10. else
  11. inherit git-r3
  12. EGIT_REPO_URI="git://github.com/Flexget/Flexget.git
  13. https://github.com/Flexget/Flexget.git"
  14. fi
  15. DESCRIPTION="Multipurpose automation tool for content like torrents, nzbs, podcasts, comics"
  16. HOMEPAGE="http://flexget.com/"
  17. LICENSE="MIT"
  18. SLOT="0"
  19. IUSE="test transmission"
  20. DEPEND="
  21. dev-python/setuptools[${PYTHON_USEDEP}]
  22. >=dev-python/feedparser-5.1.3[${PYTHON_USEDEP}]
  23. >=dev-python/sqlalchemy-0.7.5[${PYTHON_USEDEP}]
  24. <dev-python/sqlalchemy-1.999[${PYTHON_USEDEP}]
  25. dev-python/pyyaml[${PYTHON_USEDEP}]
  26. >=dev-python/beautifulsoup-4.1:4[${PYTHON_USEDEP}]
  27. <dev-python/beautifulsoup-4.4:4[${PYTHON_USEDEP}]
  28. !~dev-python/beautifulsoup-4.2.0
  29. >=dev-python/html5lib-0.11[${PYTHON_USEDEP}]
  30. dev-python/PyRSS2Gen[${PYTHON_USEDEP}]
  31. dev-python/pynzb[${PYTHON_USEDEP}]
  32. dev-python/progressbar[${PYTHON_USEDEP}]
  33. dev-python/rpyc[${PYTHON_USEDEP}]
  34. dev-python/jinja[${PYTHON_USEDEP}]
  35. >=dev-python/requests-1.0[${PYTHON_USEDEP}]
  36. <dev-python/requests-2.99[${PYTHON_USEDEP}]
  37. >=dev-python/python-dateutil-2.1[${PYTHON_USEDEP}]
  38. !~dev-python/python-dateutil-2.2
  39. >=dev-python/jsonschema-2.0[${PYTHON_USEDEP}]
  40. dev-python/python-tvrage[${PYTHON_USEDEP}]
  41. dev-python/tmdb3[${PYTHON_USEDEP}]
  42. dev-python/path-py[${PYTHON_USEDEP}]
  43. >=dev-python/guessit-0.9.3[${PYTHON_USEDEP}]
  44. <dev-python/guessit-2[${PYTHON_USEDEP}]
  45. dev-python/APScheduler[${PYTHON_USEDEP}]
  46. "
  47. RDEPEND="${DEPEND}
  48. transmission? ( dev-python/transmissionrpc[${PYTHON_USEDEP}] )
  49. "
  50. DEPEND+=" test? ( dev-python/nose[${PYTHON_USEDEP}] )"
  51. if [[ ${PV} == 9999 ]]; then
  52. DEPEND+=" dev-python/paver[${PYTHON_USEDEP}]"
  53. else
  54. S="${WORKDIR}/${MY_P}"
  55. fi
  56. python_prepare_all() {
  57. # Prevent setup from grabbing nose from pypi
  58. sed -e /setup_requires/d -i pavement.py || die
  59. distutils-r1_python_prepare_all
  60. }
  61. python_test() {
  62. cp -lr tests setup.cfg "${BUILD_DIR}" || die
  63. run_in_build_dir nosetests -v --attr=!online > "${T}/tests-${EPYTHON}.log" \
  64. || die "Tests fail with ${EPYTHON}"
  65. }