summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authoralerighi2020-01-11 12:16:02 +0100
committeralerighi2020-01-11 12:19:13 +0100
commit5f9b940af8de24862d35fa1f01ee152fc250560e (patch)
tree6e420dba64b305f1c7c7362e141531daf994b93c
downloadaur-5f9b940af8de24862d35fa1f01ee152fc250560e.tar.gz
Add PKGBUILD
-rw-r--r--.SRCINFO21
-rw-r--r--PKGBUILD31
2 files changed, 52 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..e56a00e4c2d
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,21 @@
+pkgbase = python-gql
+ pkgdesc = Python GraphQL client
+ pkgver = 0.2.0
+ pkgrel = 1
+ url = https://github.com/graphql-python/gql
+ arch = any
+ license = MIT
+ checkdepends = python-pytest
+ checkdepends = python-pytest-cov
+ checkdepends = python-mock
+ checkdepends = python-vcrpy
+ makedepends = python-setuptools
+ depends = python-six
+ depends = python-graphql-core
+ depends = python-promise
+ depends = python-requests
+ source = https://files.pythonhosted.org/packages/c4/6f/cf9a3056045518f06184e804bae89390eb706168349daa9dff8ac609962a/gql-0.2.0.tar.gz
+ sha256sums = ad0f0b8226428d727c8e1d1cac4e521d83ed024d814921bd55b8adb997dadf4b
+
+pkgname = python-gql
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..84645ab7e4d
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,31 @@
+# Maintainer: Alessandro Righi <alerighi4@gmail.com>
+
+pkgbase='python-gql'
+pkgname='python-gql'
+pkgver=0.2.0
+pkgrel=1
+pkgdesc="Python GraphQL client"
+arch=('any')
+url="https://github.com/graphql-python/gql"
+license=('MIT')
+depends=('python-six' 'python-graphql-core' 'python-promise' 'python-requests')
+makedepends=('python-setuptools')
+checkdepends=('python-pytest' 'python-pytest-cov' 'python-mock' 'python-vcrpy')
+source=("https://files.pythonhosted.org/packages/c4/6f/cf9a3056045518f06184e804bae89390eb706168349daa9dff8ac609962a/gql-0.2.0.tar.gz")
+sha256sums=('ad0f0b8226428d727c8e1d1cac4e521d83ed024d814921bd55b8adb997dadf4b')
+
+build() {
+ cd "$srcdir"/gql-$pkgver
+ python setup.py build
+}
+
+check() {
+ cd "$srcdir"/gql-$pkgver
+ py.test tests
+}
+
+package() {
+ cd "$srcdir"/gql-$pkgver
+ python setup.py install --skip-build -O1 --root="$pkgdir"
+}
+