aboutsummaryrefslogblamecommitdiffstats
path: root/testing/py-pykka/APKBUILD
blob: ff4317acbe93630c409782c44d68b4ba2eecae51 (plain) (tree)
1
2
3
4
5
6
7
8
9


                                                     
            
        

                                                                   
             
                    
                         
              
                                                   
          
                                                             
                                                                                    
 
                                

         
                      
                              
                              


           


                          






                              














                                                      
                      
                                                                  

 
                                                                                                                                                                 
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer:
pkgname=py-pykka
pkgver=1.2.1
pkgrel=2
pkgdesc="Concurrency abstractions for Python using the actor model"
url="http://pykka.readthedocs.org"
arch="noarch"
license="Apache-2.0"
depends="python2 python3"
depends_dev=""
makedepends="python2-dev python3-dev py-setuptools"
install=""
subpackages="py2-${pkgname#py-}:_py2 py3-${pkgname#py-}:_py3"
source="https://files.pythonhosted.org/packages/source/P/Pykka/Pykka-$pkgver.tar.gz"

builddir="$srcdir"/Pykka-$pkgver

build() {
	cd "$builddir"
	python2 setup.py build
	python3 setup.py build
}

package() {
	mkdir -p "$pkgdir"
}

check() {
	cd "$builddir"
	python2 setup.py check
	python3 setup.py check
}


_py2() {
	replaces="$pkgname"
	_py python2
}

_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"
}

sha512sums="22eaa735915e33146d8a3fa3f9dd5ea1dd608e7ad45ab21721a108b01ddf058b4cd00da67b762a95ede650c9ba1a79ee3d6fd22a491bc7ff348a56b7c0139cfd  Pykka-1.2.1.tar.gz"