summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorQirui Wang2020-03-16 04:25:07 -0400
committerQirui Wang2020-03-16 04:25:07 -0400
commitb26bc552bb5fa4d9be3b8d65e6d177fbed35d34b (patch)
tree5036942339037b0e68029306e734381ed2536408
parent132c6b9ae6a9b740facd46c30ca34c600a29e24c (diff)
downloadaur-b26bc552bb5fa4d9be3b8d65e6d177fbed35d34b.tar.gz
v19.12.2
-rw-r--r--.SRCINFO28
-rw-r--r--.gitignore12
-rw-r--r--PKGBUILD45
3 files changed, 47 insertions, 38 deletions
diff --git a/.SRCINFO b/.SRCINFO
index c508b839a461..e56d512d7c21 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,20 +1,24 @@
pkgbase = python-sanic
- pkgdesc = A microframework based on uvloop, httptools, and learnings of flask
- pkgver = 0.7.0
+ pkgdesc = Async Python 3.6+ web server/framework | Build fast. Run fast.
+ pkgver = 19.12.2
pkgrel = 1
- url = https://github.com/channelcat/sanic
+ url = https://sanicframework.org/
arch = any
license = MIT
makedepends = python-setuptools
- source = https://files.pythonhosted.org/packages/source/s/sanic/sanic-0.7.0.tar.gz
- source = https://raw.githubusercontent.com/channelcat/sanic/0.7.0/LICENSE
- sha256sums = 22b1a6f1dc55db8a136335cb0961afa95040ca78aa8c78425a40d91e8618e60e
- sha256sums = e7814de9a02ae20500778a5d1a4ab63c71a8f3072faf4ac669a143f2e71b72c5
+ depends = python-httptools
+ depends = python-aiofiles
+ depends = python-websockets
+ depends = python-multidict
+ depends = python-httpx
+ depends = python-uvloop
+ depends = python-ujson
+ source = https://github.com/huge-success/sanic/archive/v19.12.2.tar.gz
+ source = https://github.com/huge-success/sanic/commit/5d273fe922ecd7d80ddfb88c84787a9b3ee7f4eb.patch
+ source = https://github.com/huge-success/sanic/commit/805d8f3af26fe1d40d72d71d9b58c0ba72bbd2ab.patch
+ sha256sums = baf596636ac6d2c61947d133781f53d1cee93ed94610986cc799e8c96d03a1d4
+ sha256sums = 5b86c9e4cf3a8f204156cfc108a8af21bc4c4c3b490a6e7d473742707e72dafd
+ sha256sums = fd0d6e8592605c21420c36f5e8a22c97e19440ab89dcb1914d45a01a2da75076
pkgname = python-sanic
- depends = python-uvloop>=0.5.3
- depends = python-httptools>=0.0.9
- depends = python-ujson>=1.35
- depends = python-aiofiles>=0.3.0
- depends = python-websockets>=3.2
diff --git a/.gitignore b/.gitignore
deleted file mode 100644
index d44a93561adf..000000000000
--- a/.gitignore
+++ /dev/null
@@ -1,12 +0,0 @@
-# sources
-*.tar.gz
-LICENSE
-
-# build logs
-*-build.log
-*-namcap.log
-*-package*.log
-*-prepare.log
-
-# packages
-*.pkg.tar.xz
diff --git a/PKGBUILD b/PKGBUILD
index 9e2cffdec04c..e06e4eede37f 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,18 +1,40 @@
-# Maintainer: Carl George < arch at cgtx dot us >
+# Maintainer: Qirui Wang <wqr.prg@gmail.com>
+# Contributor: Carl George < arch at cgtx dot us >
_name="sanic"
pkgname="python-$_name"
-pkgver=0.7.0
+pkgver=19.12.2
pkgrel=1
-pkgdesc="A microframework based on uvloop, httptools, and learnings of flask"
+pkgdesc='Async Python 3.6+ web server/framework | Build fast. Run fast.'
arch=("any")
-url="https://github.com/channelcat/sanic"
+url='https://sanicframework.org/'
license=("MIT")
+depends=(
+ 'python-httptools'
+ 'python-aiofiles'
+ 'python-websockets'
+ 'python-multidict'
+ 'python-httpx'
+ 'python-uvloop'
+ 'python-ujson'
+)
makedepends=("python-setuptools")
-source=("https://files.pythonhosted.org/packages/source/${_name:0:1}/$_name/$_name-$pkgver.tar.gz"
- "https://raw.githubusercontent.com/channelcat/sanic/$pkgver/LICENSE")
-sha256sums=('22b1a6f1dc55db8a136335cb0961afa95040ca78aa8c78425a40d91e8618e60e'
- 'e7814de9a02ae20500778a5d1a4ab63c71a8f3072faf4ac669a143f2e71b72c5')
+source=(
+ "https://github.com/huge-success/${_name}/archive/v${pkgver}.tar.gz"
+ 'https://github.com/huge-success/sanic/commit/5d273fe922ecd7d80ddfb88c84787a9b3ee7f4eb.patch'
+ 'https://github.com/huge-success/sanic/commit/805d8f3af26fe1d40d72d71d9b58c0ba72bbd2ab.patch'
+)
+sha256sums=('baf596636ac6d2c61947d133781f53d1cee93ed94610986cc799e8c96d03a1d4'
+ '5b86c9e4cf3a8f204156cfc108a8af21bc4c4c3b490a6e7d473742707e72dafd'
+ 'fd0d6e8592605c21420c36f5e8a22c97e19440ab89dcb1914d45a01a2da75076')
+
+prepare() {
+ cd "$_name-$pkgver"
+
+ # Fix compatibility with httpx
+ patch -p1 -i ../5d273fe922ecd7d80ddfb88c84787a9b3ee7f4eb.patch
+ patch -p1 -i ../805d8f3af26fe1d40d72d71d9b58c0ba72bbd2ab.patch
+}
build() {
cd "$_name-$pkgver"
@@ -20,12 +42,7 @@ build() {
}
package() {
- depends=("python-uvloop>=0.5.3"
- "python-httptools>=0.0.9"
- "python-ujson>=1.35"
- "python-aiofiles>=0.3.0"
- "python-websockets>=3.2")
cd "$_name-$pkgver"
python setup.py install --skip-build --root="$pkgdir" --optimize=1
- install -D --mode 644 --target-directory "$pkgdir/usr/share/licenses/$pkgname" "$srcdir/LICENSE"
+ install -Dm644 ./LICENSE "$pkgdir/usr/share/licenses/$pkgname/licence"
}