[arch-commits] Commit in (5 files)

Felix Yan fyan at archlinux.org
Mon Feb 1 03:06:36 UTC 2016


    Date: Monday, February 1, 2016 @ 04:06:35
  Author: fyan
Revision: 159722

addpkg: python-pyrsistent 0.11.11-1

Added:
  python-pyrsistent/
  python-pyrsistent/repos/
  python-pyrsistent/trunk/
  python-pyrsistent/trunk/LICENCE.mit
  python-pyrsistent/trunk/PKGBUILD

-------------+
 LICENCE.mit |   22 ++++++++++++++++++++++
 PKGBUILD    |   53 +++++++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 75 insertions(+)

Added: python-pyrsistent/trunk/LICENCE.mit
===================================================================
--- python-pyrsistent/trunk/LICENCE.mit	                        (rev 0)
+++ python-pyrsistent/trunk/LICENCE.mit	2016-02-01 03:06:35 UTC (rev 159722)
@@ -0,0 +1,22 @@
+Copyright (c) 2015 Tobias Gustafsson
+
+Permission is hereby granted, free of charge, to any person
+obtaining a copy of this software and associated documentation
+files (the "Software"), to deal in the Software without
+restriction, including without limitation the rights to use,
+copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the
+Software is furnished to do so, subject to the following
+conditions:
+
+The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
+OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
+HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
+WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
+OTHER DEALINGS IN THE SOFTWARE.
\ No newline at end of file

Added: python-pyrsistent/trunk/PKGBUILD
===================================================================
--- python-pyrsistent/trunk/PKGBUILD	                        (rev 0)
+++ python-pyrsistent/trunk/PKGBUILD	2016-02-01 03:06:35 UTC (rev 159722)
@@ -0,0 +1,53 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgbase=python-pyrsistent
+pkgname=('python-pyrsistent' 'python2-pyrsistent')
+pkgver=0.11.11
+pkgrel=1
+pkgdesc="Persistent/Functional/Immutable data structures"
+arch=('i686' 'x86_64')
+license=('MIT')
+url="https://github.com/tobgu/pyrsistent"
+makedepends=('python-setuptools' 'python2-setuptools')
+checkdepends=('python-pytest-runner' 'python2-pytest-runner' 'python-hypothesis' 'python2-hypothesis')
+source=("https://pypi.python.org/packages/source/p/pyrsistent/pyrsistent-$pkgver.tar.gz"
+        LICENCE.mit)
+sha512sums=('7edced0fbe57ad57aaff7d04dec79ed317d938e8e7369ff0d77dea9b1b097de74c794e19cbcdbb0144800ff7f6f491069a7726168b349f584d85bf3b27901695'
+            '036bd5cc2a62b004576ecc50a84dc7d187d8108f52cb886f7e32bed324327af2dc132100e1c8f1dd2ce35b774f74898020f04a315e5137319deda18a449e791a')
+
+prepare() {
+  cp -a pyrsistent-$pkgver{,-py2}
+}
+
+build() {
+  cd "$srcdir/pyrsistent-$pkgver"
+  python setup.py build
+
+  cd "$srcdir/pyrsistent-$pkgver-py2"
+  python2 setup.py build
+}
+
+check() {
+  cd "$srcdir/pyrsistent-$pkgver"
+  python setup.py ptr || warning "Tests failed"
+
+  cd "$srcdir/pyrsistent-$pkgver-py2"
+  python2 setup.py ptr || warning "Tests failed"
+}
+
+package_python-pyrsistent() {
+  depends=('python-six')
+
+  cd pyrsistent-$pkgver
+  python setup.py install --root="${pkgdir}" --optimize=1
+  install -D -m644 ../LICENCE.mit "${pkgdir}/usr/share/licenses/${pkgname}/LICENCE.mit"
+}
+
+package_python2-pyrsistent() {
+  depends=('python2-six')
+
+  cd pyrsistent-$pkgver-py2
+  python2 setup.py install --root="${pkgdir}" --optimize=1
+  install -D -m644 ../LICENCE.mit "${pkgdir}/usr/share/licenses/${pkgname}/LICENCE.mit"
+}


Property changes on: python-pyrsistent/trunk/PKGBUILD
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+Id
\ No newline at end of property



More information about the arch-commits mailing list