[arch-commits] Commit in python-cachy/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Mon Nov 9 19:54:34 UTC 2020
Date: Monday, November 9, 2020 @ 19:54:34
Author: felixonmars
Revision: 748119
archrelease: copy trunk to community-staging-any
Added:
python-cachy/repos/community-staging-any/
python-cachy/repos/community-staging-any/PKGBUILD
(from rev 748117, python-cachy/trunk/PKGBUILD)
----------+
PKGBUILD | 44 ++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 44 insertions(+)
Copied: python-cachy/repos/community-staging-any/PKGBUILD (from rev 748117, python-cachy/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2020-11-09 19:54:34 UTC (rev 748119)
@@ -0,0 +1,44 @@
+# Maintainer: Eli Schwartz <eschwartz at archlinux.org>
+
+_pkgname=cachy
+pkgname=python-cachy
+pkgver=0.3.0
+pkgrel=3
+pkgdesc="simple yet effective caching library"
+arch=('any')
+url="https://github.com/sdispater/${_pkgname}"
+license=('MIT')
+depends=('python')
+makedepends=('python-setuptools' 'python-dephell')
+_checkdeps=('flexmock' 'pytest-mock' 'memcached' 'fakeredis')
+checkdepends=("${_checkdeps[@]/#/python-}" 'pifpaf' 'memcached')
+source=("https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/${_pkgname}/${_pkgname}-${pkgver}.tar.gz")
+sha256sums=('186581f4ceb42a0bbe040c407da73c14092379b1e4c0e327fdb72ae4a9b269b1')
+b2sums=('df2d1356a309707af5aea9aa0e534130f21815da58988a5623feb3fff3d97de655c3977a80dcf8eaefe47d9d14d8e6e6a4bab0f8afd8d42668ed061172c0a1c7')
+
+prepare() {
+ cd "${srcdir}"/${_pkgname}-${pkgver}
+
+ # poetry-generated setup.py are fatally broken, see:
+ # https://github.com/sdispater/poetry/issues/866
+ dephell deps convert --from pyproject.toml --to setup.py
+}
+
+build(){
+ cd "${srcdir}"/${_pkgname}-${pkgver}
+
+ python setup.py build
+}
+
+check() {
+ cd "${srcdir}"/${_pkgname}-${pkgver}
+
+ pifpaf run memcached --port 11211 -- pytest
+}
+
+package() {
+ cd "${srcdir}"/${_pkgname}-${pkgver}
+
+ python setup.py install --root="${pkgdir}" --optimize=1 --skip-build
+ install -Dm644 LICENSE "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
+}
More information about the arch-commits
mailing list