diff options
author | Drew DeVault <sir@cmpwn.com> | 2019-04-03 16:16:33 -0400 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2019-04-17 11:45:41 +0000 |
commit | ae39162e29699443448632f1a761bc00ac0bcd7e (patch) | |
tree | 4f5fdaef910006953926b165428f58a24c9b6688 /community/py-factory-boy/APKBUILD | |
parent | 2705587a9d7e8daf54b39fb90f457a1e6d84710f (diff) | |
download | aports-ae39162e29699443448632f1a761bc00ac0bcd7e.tar.bz2 aports-ae39162e29699443448632f1a761bc00ac0bcd7e.tar.xz |
community/py-factory-boy: adopt APKBUILD
Diffstat (limited to 'community/py-factory-boy/APKBUILD')
-rw-r--r-- | community/py-factory-boy/APKBUILD | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/community/py-factory-boy/APKBUILD b/community/py-factory-boy/APKBUILD index 24b0876c58..cdfcea6732 100644 --- a/community/py-factory-boy/APKBUILD +++ b/community/py-factory-boy/APKBUILD @@ -1,17 +1,19 @@ # Contributor: Kaarle Ritvanen <kaarle.ritvanen@datakunkku.fi> -# Contributor: Drew DeVault <sir@cmpwn.com> -# Maintainer: Kaarle Ritvanen <kaarle.ritvanen@datakunkku.fi> +# Maintainer: Drew DeVault <sir@cmpwn.com> pkgname=py-factory-boy _pkgname=factory_boy pkgver=2.11.1 -pkgrel=1 +pkgrel=2 pkgdesc="A verstile test fixtures replacement based on thoughtbot's factory_girl for Ruby" url=https://github.com/rbarrois/factory_boy arch=noarch license=MIT -depends="py-faker py-six" -makedepends="py-setuptools" -checkdepends="py-mock py-django py-sqlalchemy" +_py2_deps="py2-faker py2-six" +_py2_deps="py3-faker py3-six" +makedepends="$_py2_deps $_py3_deps py2-setuptools py3-setuptools" +checkdepends=" + py2-mock py3-mock py2-django py3-django py2-sqlalchemy py3-sqlalchemy +" subpackages="py2-${pkgname#py-}:_py2 py3-${pkgname#py-}:_py3" source="$pkgname-$pkgver.tar.gz::https://github.com/FactoryBoy/$_pkgname/archive/$pkgver.tar.gz" builddir=$srcdir/$_pkgname-$pkgver @@ -47,12 +49,13 @@ package() { _py2() { replaces="py-factory-boy" - depends="py-six" + depends="$_py2_deps" cd "$builddir" _py python2 } _py3() { + depends="$_py3_deps" cd "$builddir"-py3 _py python3 } |