mirror of
				https://gitlab.alpinelinux.org/alpine/aports.git
				synced 2025-10-31 16:31:40 +01:00 
			
		
		
		
	this marginally increases install speed by not checking if it needs a rebuild. also remove --prefix=/usr as it defaults to /usr already. might break a build or two, will fix later
		
			
				
	
	
		
			53 lines
		
	
	
		
			1.4 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			53 lines
		
	
	
		
			1.4 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| # Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
 | |
| # Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
 | |
| pkgname=py3-paramiko
 | |
| _pkgname=paramiko
 | |
| pkgver=2.12.0
 | |
| pkgrel=1
 | |
| pkgdesc="An SSH2 protocol library for Python3"
 | |
| url="https://www.paramiko.org/"
 | |
| arch="noarch"
 | |
| license="LGPL-2.0-or-later"
 | |
| options="!check" # missing pytest-relaxed module
 | |
| depends="python3 py3-asn1 py3-cryptography py3-bcrypt py3-pynacl py3-six"
 | |
| makedepends="py3-setuptools"
 | |
| checkdepends="py3-pytest"
 | |
| subpackages="$pkgname-doc $pkgname-demos"
 | |
| source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
 | |
| builddir="$srcdir/$_pkgname-$pkgver"
 | |
| 
 | |
| replaces="py-paramiko" # Backwards compatibility
 | |
| provides="py-paramiko=$pkgver-r$pkgrel" # Backwards compatibility
 | |
| 
 | |
| # secfixes:
 | |
| #   2.4.2-r0:
 | |
| #     - CVE-2018-1000805
 | |
| #   2.4.1-r0:
 | |
| #     - CVE-2018-7750
 | |
| 
 | |
| build() {
 | |
| 	python3 setup.py build
 | |
| }
 | |
| 
 | |
| check() {
 | |
| 	python3 setup.py test
 | |
| }
 | |
| 
 | |
| package() {
 | |
| 	python3 setup.py install --skip-build --root="$pkgdir"
 | |
| 	mkdir -p "$pkgdir"/usr/share/doc/"$pkgname"
 | |
| 	cp -a docs "$pkgdir"/usr/share/doc/"$pkgname"/
 | |
| }
 | |
| 
 | |
| demos() {
 | |
| 	depends="$pkgname=$pkgver-r$pkgrel"
 | |
| 	pkgdesc="$pkgdesc (demos)"
 | |
| 
 | |
| 	mkdir -p "$subpkgdir"/usr/share/doc/"$pkgname"/demos
 | |
| 	cp -a "$builddir"/demos "$subpkgdir"/usr/share/doc/"$pkgname"/
 | |
| }
 | |
| 
 | |
| sha512sums="
 | |
| 2d51d4fb7a4011cbbe67f78ca5a8cb2e316562dff314c07827af7d701c64fd6a42edb8d358d701aa95f3ae1326277a23e264fcf6bdbc4c9491f81320143f3671  paramiko-2.12.0.tar.gz
 | |
| "
 |