diff options
author | Mikhail f. Shiryaev | 2020-02-18 13:51:49 +0100 |
---|---|---|
committer | Mikhail f. Shiryaev | 2020-02-18 13:51:49 +0100 |
commit | 25a53a0d0417cf0525587035bf6949ec3e72433f (patch) | |
tree | 3bc4ff4c5dd2595288ddda8adeddb851ec6fd603 | |
download | aur-25a53a0d0417cf0525587035bf6949ec3e72433f.tar.gz |
Create package for clickhouse-driver python module
-rw-r--r-- | .SRCINFO | 16 | ||||
-rw-r--r-- | .gitignore | 8 | ||||
-rw-r--r-- | PKGBUILD | 22 |
3 files changed, 46 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..a9ecf3267b15 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,16 @@ +pkgbase = python-clickhouse-driver + pkgdesc = ClickHouse Python Driver with native (TCP) interface support + pkgver = 0.1.2 + pkgrel = 1 + url = https://github.com/mymarilyn/clickhouse-driver + arch = any + license = MIT + makedepends = python-setuptools + depends = python + depends = python-tzlocal + depends = python-pytz + source = https://github.com/mymarilyn/clickhouse-driver/archive/0.1.2.tar.gz + sha256sums = 9920211509a27af0b24086b19005c3419a4cd8255a3bd68621a0f1469e38a5ee + +pkgname = python-clickhouse-driver + diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..4c1412d566cc --- /dev/null +++ b/.gitignore @@ -0,0 +1,8 @@ +# ignore source files +*.tar +*.tar.gz +*.tgz + +# ignore built artefacts +src/ +pkg/ diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..9b21df7aab68 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,22 @@ +# Maintainer: Mikhail felixoid Shiryaev <mr dot felixoid on gmail> + +_name=clickhouse-driver +pkgname="python-${_name}" +pkgver=0.1.2 +pkgrel=1 +pkgdesc='ClickHouse Python Driver with native (TCP) interface support' +arch=('any') +url="https://github.com/mymarilyn/clickhouse-driver" +makedepends=('python-setuptools') +depends=('python' 'python-tzlocal' 'python-pytz') +license=('MIT') +source=("${url}/archive/${pkgver}.tar.gz") +sha256sums=('9920211509a27af0b24086b19005c3419a4cd8255a3bd68621a0f1469e38a5ee') + +package() { + cd "${srcdir}/${_name}-${pkgver}" + python setup.py install --root="${pkgdir}" --optimize=1 + mkdir -p "${pkgdir}/usr/share/licenses/${pkname}" + cp LICENSE "${pkgdir}/usr/share/licenses/${pkname}" +} + |