spacepaste

  1.  
  2. # Copyright 1999-2017 Gentoo Foundation
  3. # Distributed under the terms of the GNU General Public License v2
  4. EAPI=5
  5. PYTHON_COMPAT=( python2_7 python3_{4,5,6} )
  6. inherit distutils-r1
  7. DESCRIPTION="Collection of persistent (disk-based) queues"
  8. HOMEPAGE="https://github.com/scrapy/queuelib"
  9. SRC_URI="https://github.com/scrapy/queuelib/archive/v${PV}.tar.gz -> ${P}.tar.gz"
  10. LICENSE="BSD"
  11. SLOT="0"
  12. KEYWORDS="amd64 x86"
  13. IUSE="test"
  14. DEPEND="
  15. dev-python/setuptools[${PYTHON_USEDEP}]
  16. test? (
  17. dev-python/nose[${PYTHON_USEDEP}]
  18. )"
  19. RDEPEND=""
  20. python_test() {
  21. nosetests -v queuelib/tests/ || die "Tests failed under ${EPYTHON}"
  22. }
  23.