[arch-commits] Commit in python-ecdsa/trunk (LICENSE PKGBUILD)
Felix Yan
felixonmars at gemini.archlinux.org
Mon Aug 29 14:53:36 UTC 2022
Date: Monday, August 29, 2022 @ 14:53:36
Author: felixonmars
Revision: 1285282
upgpkg: python-ecdsa 0.18.0-1
Modified:
python-ecdsa/trunk/PKGBUILD
Deleted:
python-ecdsa/trunk/LICENSE
----------+
LICENSE | 24 ------------------------
PKGBUILD | 37 +++++++++++--------------------------
2 files changed, 11 insertions(+), 50 deletions(-)
Deleted: LICENSE
===================================================================
--- LICENSE 2022-08-29 14:53:25 UTC (rev 1285281)
+++ LICENSE 2022-08-29 14:53:36 UTC (rev 1285282)
@@ -1,24 +0,0 @@
-"python-ecdsa" Copyright (c) 2010 Brian Warner
-
-Portions written in 2005 by Peter Pearson and placed in the public domain.
-
-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.
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2022-08-29 14:53:25 UTC (rev 1285281)
+++ PKGBUILD 2022-08-29 14:53:36 UTC (rev 1285282)
@@ -1,42 +1,27 @@
# Maintainer: Angel Velasquez <angvp at archlinux.org>
# Maintainer: Felix Yan <felixonmars at archlinux.org>
-pkgbase=python-ecdsa
-pkgname=('python-ecdsa' 'python2-ecdsa')
-pkgver=0.17.0
-pkgrel=3
+pkgname=python-ecdsa
+pkgver=0.18.0
+pkgrel=1
pkgdesc="Implementation of ECDSA in Python"
arch=('any')
url="https://github.com/tlsfuzzer/python-ecdsa"
license=('MIT')
-makedepends=('python-setuptools' 'python2-setuptools')
+depends=('python-six')
+makedepends=('python-setuptools')
checkdepends=('python-pytest' 'python-hypothesis')
options=(!emptydirs)
-source=("https://files.pythonhosted.org/packages/source/e/ecdsa/ecdsa-$pkgver.tar.gz" "LICENSE")
-sha512sums=('23acf993ce4f7f832674a3b70ab870c20172816e27adc836d4c6a876e72a488a830895d63ab6af67cc7cbc83c71f7097d0d530bf67d24c84e69e9fa87031f6fd'
- '5519af4e81ecb681e2ef1a26602efed1640d6e3bf100d8c492dd4bbce4dba75de6a5a308115ff78a8dcd5d428630a92dd88fe9abfaeed04cd066b3f4d288b219')
+source=("https://files.pythonhosted.org/packages/source/e/ecdsa/ecdsa-$pkgver.tar.gz")
+sha512sums=('f26dbeccd8e6ec832405d419b7244ca97b43a2811513493913a4f2f2fd1d2f453068fe0ba7b90b972f42a0d7b9834212fbd4d4559475cffeb1d80075fa954d78')
-build() {
- cp -R "$srcdir/ecdsa-$pkgver" "$srcdir/ecdsa-$pkgver-py2"
- cd "$srcdir/ecdsa-$pkgver-py2"
- sed -ie 's#/usr/bin/env python#/usr/bin/env python2#' src/ecdsa/*.py
-}
-
check() {
- cd "$srcdir/ecdsa-$pkgver"
+ cd ecdsa-$pkgver
python -m pytest
}
-package_python-ecdsa() {
- depends=('python')
- cd "$srcdir/ecdsa-$pkgver"
+package() {
+ cd ecdsa-$pkgver
python setup.py install --root="$pkgdir/" --optimize=1
- install -D -m644 "$srcdir/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+ install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
}
-
-package_python2-ecdsa() {
- depends=('python2')
- cd "$srcdir/ecdsa-$pkgver-py2"
- python2 setup.py install --root="$pkgdir/" --optimize=1
- install -D -m644 "$srcdir/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
-}
More information about the arch-commits
mailing list