summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 07646aed20fd89c271ac6a29fceb82afffcc26a9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# Maintainer: robertfoster
# Contributor: Peter Mattern <pmattern at arcor dot de>

pkgname=python-social-auth-core
pkgver=4.2.0
pkgrel=1
pkgdesc='Python Social Auth core component'
arch=('any')
url='https://github.com/python-social-auth/social-core'
license=('BSD')
depends=('python-six' 'python-defusedxml' 'python-pyjwt' 'python-jose' 'python-requests-oauthlib'
  'python-openid' 'python-cryptography' 'python3-saml')
makedepends=('python-setuptools')
source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/${pkgver}.tar.gz")
sha256sums=('c192943c738bb97a9fb679c4edc71c6ac8355509d60c6084bb4c844814fb8a1f')

build() {
  cd social-core-"${pkgver}"
  python setup.py build
}

package() {
  cd social-core-"${pkgver}"
  python setup.py install \
    --root "${pkgdir}" \
    --optimize=1

  install -Dm644 "${srcdir}/social-core-${pkgver}/LICENSE" \
    "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}