* update python-puremagic to 1.27-2

This commit is contained in:
Alexander Baldeck 2024-09-23 20:27:40 +02:00
parent a3577d0a6b
commit f49da91301
3 changed files with 15 additions and 16 deletions

View File

@ -1,6 +1,6 @@
pkgbase = python-puremagic
pkgdesc = A Python module that will identify a file based off it's magic numbers
pkgver = 1.15
pkgver = 1.27
pkgrel = 2
url = https://github.com/cdgriffith/puremagic
arch = any
@ -12,7 +12,8 @@ pkgbase = python-puremagic
makedepends = python-setuptools
makedepends = python-wheel
depends = python
source = python-puremagic::git+https://github.com/cdgriffith/puremagic#commit=ff042db17e7477bbabcb9c5b7e8562a697f6b1cb
b2sums = SKIP
source = python-puremagic::git+https://github.com/cdgriffith/puremagic#tag=1.27
sha512sums = ddfba979da40788f5f15325b529ba9f51c955e3d42a2e8a19f2e4c5b5267996233b37cc6695d644d849cca47512df52344dbf162b8ca7d787c195cda357e97f5
b2sums = ab2e72a4913f53056632029fae20b75f02a95021cc1e18786f039e9e9f21a2d86bd76a3992f9bed30da0d1717f4333ae17ea529b82aa17bea0a7b64a5e1dbcb1
pkgname = python-puremagic

View File

@ -0,0 +1,4 @@
[python-puremagic]
source = "git"
git = "https://github.com/cdgriffith/puremagic.git"
prefix = "v"

View File

@ -2,10 +2,10 @@
# Maintainer: George Rawlinson <grawlinson@archlinux.org>
pkgname=python-puremagic
pkgver=1.15
pkgrel=2.1
pkgver=1.27
pkgrel=2
pkgdesc="A Python module that will identify a file based off it's magic numbers"
arch=('any')
arch=(any)
url='https://github.com/cdgriffith/puremagic'
license=('MIT')
depends=('python')
@ -17,15 +17,9 @@ makedepends=(
'python-wheel'
)
checkdepends=('python-pytest')
_commit='ff042db17e7477bbabcb9c5b7e8562a697f6b1cb'
source=("$pkgname::git+$url#commit=$_commit")
b2sums=('SKIP')
pkgver() {
cd "$pkgname"
git describe --tags | sed 's/^v//'
}
source=("$pkgname::git+$url#tag=$pkgver")
sha512sums=('ddfba979da40788f5f15325b529ba9f51c955e3d42a2e8a19f2e4c5b5267996233b37cc6695d644d849cca47512df52344dbf162b8ca7d787c195cda357e97f5')
b2sums=('ab2e72a4913f53056632029fae20b75f02a95021cc1e18786f039e9e9f21a2d86bd76a3992f9bed30da0d1717f4333ae17ea529b82aa17bea0a7b64a5e1dbcb1')
build() {
cd "$pkgname"
@ -36,7 +30,7 @@ build() {
check() {
cd "$pkgname"
PYTHONPATH="$PWD:$PYTHONPATH" pytest
PYTHONPATH="$PWD:$PYTHONPATH" pytest -v
}
package() {