mirror of
				https://gitlab.alpinelinux.org/alpine/aports.git
				synced 2025-10-31 08:21:49 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			30 lines
		
	
	
		
			788 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			30 lines
		
	
	
		
			788 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| # Maintainer: Patrycja Rosa <alpine@ptrcnull.me>
 | |
| pkgname=py3-puremagic
 | |
| pkgver=1.15
 | |
| pkgrel=0
 | |
| pkgdesc="Pure python implementation of identifying files based off their magic numbers"
 | |
| url="https://github.com/cdgriffith/puremagic"
 | |
| arch="noarch"
 | |
| license="MIT"
 | |
| depends="python3"
 | |
| makedepends="py3-setuptools"
 | |
| checkdepends="py3-pytest py3-pytest-cov"
 | |
| source="https://github.com/cdgriffith/puremagic/archive/refs/tags/$pkgver/puremagic-$pkgver.tar.gz"
 | |
| builddir="$srcdir/puremagic-$pkgver"
 | |
| 
 | |
| build() {
 | |
| 	python3 setup.py build
 | |
| }
 | |
| 
 | |
| check() {
 | |
| 	python3 -m pytest
 | |
| }
 | |
| 
 | |
| package() {
 | |
| 	python3 setup.py install --prefix=/usr --root="$pkgdir"
 | |
| }
 | |
| 
 | |
| sha512sums="
 | |
| 46d8ad7e2aa309558e37589b8a9508ef4156a5d6768b738df5f8539cb9edc12d83ac46a2fd46ef48d9323c73dfeff0e6f5eee8046bdd910f6ea14bb5402e477e  puremagic-1.15.tar.gz
 | |
| "
 |