aboutsummaryrefslogtreecommitdiffstats
path: root/main/py-mock/APKBUILD
diff options
context:
space:
mode:
authorLeo <thinkabit.ukim@gmail.com>2019-09-19 22:05:38 -0300
committerNatanael Copa <ncopa@alpinelinux.org>2019-09-20 11:07:28 +0000
commit1f6573c9a9b1abf3b1009ed7c7fdde7dece5cfca (patch)
treec1eeb02d9f421d25f7588e9055d523fbe64affc9 /main/py-mock/APKBUILD
parent326ba5a7c43bbd82af52ece88e4edaa87ceb07fe (diff)
downloadaports-1f6573c9a9b1abf3b1009ed7c7fdde7dece5cfca.tar.bz2
aports-1f6573c9a9b1abf3b1009ed7c7fdde7dece5cfca.tar.xz
main/py3-mock: rename from py-mock
Diffstat (limited to 'main/py-mock/APKBUILD')
-rw-r--r--main/py-mock/APKBUILD50
1 files changed, 0 insertions, 50 deletions
diff --git a/main/py-mock/APKBUILD b/main/py-mock/APKBUILD
deleted file mode 100644
index 287568af89..0000000000
--- a/main/py-mock/APKBUILD
+++ /dev/null
@@ -1,50 +0,0 @@
-# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
-# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
-pkgname=py-mock
-_pkgname=mock
-pkgver=2.0.0
-pkgrel=4
-pkgdesc="A Python Mocking and Patching Library for Testing"
-url="https://github.com/testing-cabal/mock"
-arch="noarch"
-license="BSD"
-depends="py-pbr py-six"
-makedepends="python2-dev python3-dev py-setuptools"
-subpackages="py2-${pkgname#py-}:_py2 py3-${pkgname#py-}:_py3"
-source="$pkgname-$pkgver.tar.gz::https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
-builddir="$srcdir/$_pkgname-$pkgver"
-
-build() {
- cd "$builddir"
- python2 setup.py build || return 1
- python3 setup.py build || return 1
-}
-
-package() {
- mkdir -p "$pkgdir"
-}
-
-_py2() {
- replaces="$pkgname"
- depends="${depends//py-/py2-} py2-funcsigs"
- _py python2
-}
-
-_py3() {
- depends="${depends//py-/py3-}"
- _py python3
-}
-
-_py() {
- local python="$1"
- pkgdesc="$pkgdesc (for $python)"
- depends="$depends $python"
- install_if="$pkgname=$pkgver-r$pkgrel $python"
-
- cd "$builddir"
- $python setup.py install --prefix=/usr --root="$subpkgdir"
-}
-
-md5sums="0febfafd14330c9dcaa40de2d82d40ad py-mock-2.0.0.tar.gz"
-sha256sums="b158b6df76edd239b8208d481dc46b6afd45a846b7812ff0ce58971cf5bc8bba py-mock-2.0.0.tar.gz"
-sha512sums="a08007651b749d2843b94f5045d74c122958888290aea21930455538a854e6b04c07115e21d82edde996154bf597d7a8784a2f4213cbabc49a98dec22dd92238 py-mock-2.0.0.tar.gz"