mirror of
				https://gitlab.alpinelinux.org/alpine/aports.git
				synced 2025-10-31 00:12:05 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			56 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			56 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| # Maintainer: Natanael Copa <ncopa@alpinelinux.org>
 | |
| pkgname=diffoscope
 | |
| pkgver=238
 | |
| pkgrel=0
 | |
| pkgdesc="In-depth comparison of files, archives, and directories"
 | |
| url="https://diffoscope.org/"
 | |
| arch="noarch"
 | |
| license="GPL-3.0-or-later"
 | |
| depends="
 | |
| 	py3-libarchive-c
 | |
| 	py3-magic
 | |
| 	python3
 | |
| 	"
 | |
| makedepends="
 | |
| 	py3-docutils
 | |
| 	py3-gpep517
 | |
| 	py3-setuptools
 | |
| 	py3-wheel
 | |
| 	python3-dev
 | |
| 	"
 | |
| checkdepends="
 | |
| 	bzip2
 | |
| 	cdrkit
 | |
| 	gzip
 | |
| 	libarchive-tools
 | |
| 	openssh-client-default
 | |
| 	py3-html2text
 | |
| 	py3-pytest
 | |
| 	py3-pytest-xdist
 | |
| 	unzip
 | |
| 	"
 | |
| source="https://salsa.debian.org/reproducible-builds/diffoscope/-/archive/$pkgver/diffoscope-$pkgver.tar.gz"
 | |
| 
 | |
| build() {
 | |
| 	gpep517 build-wheel \
 | |
| 		--wheel-dir dist \
 | |
| 		--output-fd 3 3>&1 >&2
 | |
| }
 | |
| 
 | |
| check() {
 | |
| 	python3 -m venv --clear --without-pip --system-site-packages testenv
 | |
| 	testenv/bin/python3 -m installer dist/*.whl
 | |
| 	# html test fails
 | |
| 	PYTHONDONTWRITEBYTECODE=1 \
 | |
| 	testenv/bin/python3 -m pytest -n auto -k 'not test_diff'
 | |
| }
 | |
| 
 | |
| package() {
 | |
| 	python3 -m installer -d "$pkgdir" \
 | |
| 		dist/*.whl
 | |
| }
 | |
| 
 | |
| sha512sums="
 | |
| c23915e3786fc57e8893ce7b8c9413a386e6d3bb605280073ce7a2cef55bec7c0ade9b26292b44d29f0fe83096498be9c9f459e10a06409a9af1f704754a77d4  diffoscope-238.tar.gz
 | |
| "
 |