Date: Tuesday, September 13, 2022 @ 21:18:32
  Author: felixonmars
Revision: 1301054

upgpkg: python-pyrsistent 0.19.0-1

Modified:
  python-pyrsistent/trunk/PKGBUILD
Deleted:
  python-pyrsistent/trunk/LICENCE.mit

-------------+
 LICENCE.mit |   22 ----------------------
 PKGBUILD    |   18 ++++++------------
 2 files changed, 6 insertions(+), 34 deletions(-)

Deleted: LICENCE.mit
===================================================================
--- LICENCE.mit 2022-09-13 21:13:42 UTC (rev 1301053)
+++ LICENCE.mit 2022-09-13 21:18:32 UTC (rev 1301054)
@@ -1,22 +0,0 @@
-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

Modified: PKGBUILD
===================================================================
--- PKGBUILD    2022-09-13 21:13:42 UTC (rev 1301053)
+++ PKGBUILD    2022-09-13 21:18:32 UTC (rev 1301054)
@@ -1,24 +1,18 @@
 # Maintainer: Felix Yan <[email protected]>
 
 pkgname=python-pyrsistent
-pkgver=0.18.1
+pkgver=0.19.0
 pkgrel=1
 pkgdesc="Persistent/Functional/Immutable data structures"
 arch=('x86_64')
 license=('MIT')
 url="https://github.com/tobgu/pyrsistent";
-depends=('python-six')
+depends=('python')
 makedepends=('python-setuptools')
 checkdepends=('python-pytest' 'python-hypothesis')
-source=("https://pypi.io/packages/source/p/pyrsistent/pyrsistent-$pkgver.tar.gz";
-        LICENCE.mit)
-sha512sums=('353ad6e9165e1afdde37730a9289cf8dde28491abb688d702a8c8f5279e24f5ce387a5d00ac4a077322299f9c1a535781bcacdcd1cb914ddb317b3ca9641778b'
-            
'036bd5cc2a62b004576ecc50a84dc7d187d8108f52cb886f7e32bed324327af2dc132100e1c8f1dd2ce35b774f74898020f04a315e5137319deda18a449e791a')
+source=("https://github.com/tobgu/pyrsistent/archive/v$pkgver/$pkgname-$pkgver.tar.gz";)
+sha512sums=('10cba127eb4667ce16eb6205f265a1e05c5e9f8df752dbac5726829f82860ef64fcbffee2ef750e5f38725dd6365acdae01a2f9884a511a5a5fb0ba28dc6abc1')
 
-prepare() {
-  sed -i 's/<5//g' pyrsistent-$pkgver/setup.py
-}
-
 build() {
   cd pyrsistent-$pkgver
   python setup.py build
@@ -26,11 +20,11 @@
 
 check() {
   cd pyrsistent-$pkgver
-  python -m pytest
+  PYTHONPATH="$PWD/build/lib.linux-$CARCH-cpython-310" pytest
 }
 
 package() {
   cd pyrsistent-$pkgver
   python setup.py install --root="$pkgdir" --optimize=1
-  install -D -m644 ../LICENCE.mit 
"$pkgdir"/usr/share/licenses/$pkgname/LICENCE.mit
+  install -Dm644 LICENSE.mit -t "$pkgdir"/usr/share/licenses/$pkgname/
 }

Reply via email to