[arch-commits] Commit in (4 files)

Eli Schwartz eschwartz at archlinux.org
Tue May 28 20:17:12 UTC 2019


    Date: Tuesday, May 28, 2019 @ 20:17:12
  Author: eschwartz
Revision: 473052

addpkg: python-dephell-specifier 0.1.7-1

part of "dephell" tool

Added:
  python-dephell-specifier/
  python-dephell-specifier/repos/
  python-dephell-specifier/trunk/
  python-dephell-specifier/trunk/PKGBUILD

----------+
 PKGBUILD |   42 ++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 42 insertions(+)

Added: python-dephell-specifier/trunk/PKGBUILD
===================================================================
--- python-dephell-specifier/trunk/PKGBUILD	                        (rev 0)
+++ python-dephell-specifier/trunk/PKGBUILD	2019-05-28 20:17:12 UTC (rev 473052)
@@ -0,0 +1,42 @@
+# Maintainer: Eli Schwartz <eschwartz at archlinux.org>
+
+_pkgname=dephell_specifier
+pkgname=python-dephell-specifier
+pkgver=0.1.7
+pkgrel=1
+pkgdesc="Work with version specifiers"
+arch=('any')
+url="https://github.com/dephell/${_pkgname}"
+license=('MIT')
+depends=('python-packaging')
+makedepends=('python-setuptools')
+checkdepends=('python-pytest')
+source=("https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/${_pkgname}/${_pkgname}-${pkgver}.tar.gz")
+sha256sums=('5e7235ec357fcd4c6e038b4c1996a9564374d36edb2223bf81f9ac41df3c22e0')
+b2sums=('e154a7041b73552a8357fbe371e1aae82b2a254f94b391fe48479391242a172dbe7f770cb4c9305ea833534dfa8f197c9912bda468b6abd26b57d500513d5e9c')
+
+prepare() {
+    cd "${srcdir}"/${_pkgname}-${pkgver}
+
+    # pycache slipped into release tarballs
+    find . -name \*.pyc -delete
+}
+
+build(){
+    cd "${srcdir}"/${_pkgname}-${pkgver}
+
+    python setup.py build
+}
+
+check() {
+    cd "${srcdir}"/${_pkgname}-${pkgver}
+
+    python -m 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