diff options
-rw-r--r-- | .SRCINFO | 13 | ||||
-rw-r--r-- | PKGBUILD | 23 |
2 files changed, 36 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..cee140898695 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,13 @@ +pkgbase = python-django-axes + pkgdesc = Keep track of failed login attempts in Django-powered sites. + pkgver = 6.3.0 + pkgrel = 1 + url = https://pypi.org/project/django-axes + arch = any + license = MIT + makedepends = python-setuptools-scm + depends = python-django + source = https://pypi.io/packages/source/d/django-axes/django-axes-6.3.0.tar.gz + sha256sums = 8e415193d7881a3e517734a5ebfde92a0b00a919a0777cbae52c7f0246b30ad1 + +pkgname = python-django-axes diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..070e4e863dc9 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,23 @@ +_pipname=django-axes +pkgname=python-django-axes +pkgver=6.3.0 +pkgrel=1 +pkgdesc='Keep track of failed login attempts in Django-powered sites.' +arch=(any) +url='https://pypi.org/project/django-axes' +license=(MIT) +depends=(python-django) +makedepends=(python-setuptools-scm) +source=("https://pypi.io/packages/source/d/django-axes/django-axes-${pkgver}.tar.gz") +sha256sums=('8e415193d7881a3e517734a5ebfde92a0b00a919a0777cbae52c7f0246b30ad1') + +build() { + cd "$srcdir/${_pipname}-${pkgver}" + python setup.py build +} + +package() { + cd "$srcdir/${_pipname}-${pkgver}/" + python setup.py install --root="$pkgdir/" --optimize=1 --skip-build + install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" +} |