summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorDaniel Moch2018-10-31 06:40:38 -0400
committerDaniel Moch2018-10-31 06:40:38 -0400
commitf01d31309b5f2a1e4660f569b79e3c0444533a46 (patch)
treed875aae117f49d57af49282e37fcbba5fef3f3c2 /PKGBUILD
parent1e362298bf4522a232c657e3276e4ca78a68dc04 (diff)
downloadaur-f01d31309b5f2a1e4660f569b79e3c0444533a46.tar.gz
upgpkg: python-hookmeup 1.0.2-1
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD22
1 files changed, 17 insertions, 5 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 299b27629ff..af48f7adeeb 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,18 +1,24 @@
# Maintainer: Daniel Moch <daniel@danielmoch.com>
pkgname=python-hookmeup
_name=${pkgname#python-}
-pkgver=1.0.1
+pkgver=1.0.2
pkgrel=1
pkgdesc='A Git hook to automate your Pipenv and Django workflow'
provides=('python-hookmeup')
-conflicts=('python-hookmeup')
arch=('any')
url='https://github.com/djmoch/hookmeup'
license=('MIT')
depends=('python')
-makedepends=('python-pip')
-source=("${_name}-${pkgver}.tar.gz::https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz")
-sha256sums=('65ef049e29653252930da427a126f9f4a866b6558442e5934d986df153952d1e')
+makedepends=('python-pip' 'flit')
+checkdepends=('python-pytest'
+ 'python-pytest-cov'
+ 'python-pytest-mock'
+ 'python-mock')
+source=("${_name}-${pkgver}.tar.gz::https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz"
+ "${_name}-${pkgver}.tar.gz.asc::https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz.asc")
+validpgpkeys=('72A97F7072DDCE28058DEF30323C9F1784BDDD43')
+sha256sums=('cd20f4a73db367849a73d4b5a712e7d066d1875a6d21fda4e826bf55146f81ec'
+ 'SKIP')
build()
{
@@ -20,6 +26,12 @@ build()
flit build --format wheel
}
+check()
+{
+ cd "${srcdir}/${_name}-${pkgver}"
+ python -m pytest
+}
+
package()
{
cd "${srcdir}/${_name}-${pkgver}"