aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpsykose <alice@ayaya.dev>2022-04-15 10:56:15 +0000
committerpsykose <alice@ayaya.dev>2022-04-15 12:56:15 +0200
commit41cf77e4f2acd08fa63e95eaf9208f1c5dfb4409 (patch)
tree30251560d8f04db7512f49a47f62e640f6a443c8
parent05a4692fed95272ad11e3021eac8dabbeb090e65 (diff)
downloadaports-41cf77e4f2acd08fa63e95eaf9208f1c5dfb4409.tar.gz
aports-41cf77e4f2acd08fa63e95eaf9208f1c5dfb4409.tar.bz2
aports-41cf77e4f2acd08fa63e95eaf9208f1c5dfb4409.tar.xz
community/py3-keepass: upgrade to 4.0.1
-rw-r--r--community/py3-keepass/0001-relax-dependencies.patch39
-rw-r--r--community/py3-keepass/APKBUILD24
-rw-r--r--community/py3-keepass/asdasd32
3 files changed, 54 insertions, 41 deletions
diff --git a/community/py3-keepass/0001-relax-dependencies.patch b/community/py3-keepass/0001-relax-dependencies.patch
index 40ffd7f66c..b8510aa5de 100644
--- a/community/py3-keepass/0001-relax-dependencies.patch
+++ b/community/py3-keepass/0001-relax-dependencies.patch
@@ -1,43 +1,14 @@
-From bd7c67faad24770c7378464a640b9baa72257ede Mon Sep 17 00:00:00 2001
-From: =?UTF-8?q?Micha=C5=82=20Adamski?= <michal@ert.pl>
-Date: Mon, 16 Nov 2020 15:11:30 +0100
-Subject: [PATCH] relax dependencies
-
----
- requirements.txt | 12 ++++++------
- setup.py | 2 +-
- 2 files changed, 7 insertions(+), 7 deletions(-)
-
-diff --git a/requirements.txt b/requirements.txt
-index 7dfdf28..467e9f2 100644
---- a/requirements.txt
-+++ b/requirements.txt
-@@ -1,6 +1,6 @@
--lxml==4.3.5
--pycryptodomex==3.9.4
--construct==2.10.54
--argon2-cffi==19.2.0
--python-dateutil==2.8.0
--future==0.17.1
-+lxml==4.3.*
-+pycryptodomex==3.9.*
-+construct==2.10.*
-+argon2-cffi==19.2.*
-+python-dateutil==2.8.*
-+future==0.17.*
-diff --git a/setup.py b/setup.py
-index 55c17bc..0609302 100644
--- a/setup.py
+++ b/setup.py
-@@ -18,7 +18,7 @@ setup(
+@@ -21,9 +21,9 @@
install_requires=[
"python-dateutil",
# FIXME python2 - last version to support python2
- "construct==2.10.54",
+ "construct==2.10.*",
"argon2_cffi",
- "pycryptodomex>=3.6.2",
+- "pycryptodomex>=3.6.2",
++ "pycryptodomex>=3.*",
"lxml",
---
-2.25.1
-
+ # FIXME python2
+ "future",
diff --git a/community/py3-keepass/APKBUILD b/community/py3-keepass/APKBUILD
index f797d460d0..7289830405 100644
--- a/community/py3-keepass/APKBUILD
+++ b/community/py3-keepass/APKBUILD
@@ -1,19 +1,27 @@
# Contributor: Rasmus Thomsen <oss@cogitri.dev>
# Maintainer: Rasmus Thomsen <oss@cogitri.dev>
pkgname=py3-keepass
-pkgver=3.2.1
-pkgrel=5
+pkgver=4.0.1
+pkgrel=0
pkgdesc="Python3 library to interact with keepass databases"
url="https://github.com/pschmitt/pykeepass"
arch="noarch !s390x" # pykeepass test fail on s390x
license="GPL-3.0-only"
-depends="python3 py3-dateutil py3-pycryptodomex py3-construct py3-lxml
- py3-argon2-cffi py3-cffi py3-future"
+depends="
+ py3-argon2-cffi
+ py3-cffi
+ py3-construct
+ py3-dateutil
+ py3-future
+ py3-lxml
+ py3-pycryptodomex
+ python3
+ "
makedepends="py3-setuptools"
source="
https://pypi.io/packages/source/p/pykeepass/pykeepass-$pkgver.tar.gz
0001-relax-dependencies.patch
-"
+ "
builddir="$srcdir/pykeepass-$pkgver"
build() {
@@ -28,5 +36,7 @@ package() {
python3 setup.py install --prefix=/usr --root="$pkgdir"
}
-sha512sums="559287581741d5b3465fa722d0dc51dbbcb46776349c7a4ce2b688b8e692f188078718adcdf527723e35f30b3f68efa4625bba5db5109841b75d2590d0b67ff8 pykeepass-3.2.1.tar.gz
-732b9de1ace8cb6b659528e6b3d326f92b2d83bf42a39b43b0ece369102146ed322fec8e01899be5ca6c6ba29c1691e6e2ddf5723633ceed9de012964443c171 0001-relax-dependencies.patch"
+sha512sums="
+8120ba55257789eaf5b0e8a36a64316d35d4e79a6c7cb015455c2a18db6b5fb4339d62f5be6fe78b462ca0136c15b4fb2d0de84414cfa8c58ba7473e03dc1fce pykeepass-4.0.1.tar.gz
+3f2451abbca157fe9c72b0ae5548c129d8aeefb57767c5e4ebbbb6907fcefe7f6d0fd305a7aaf91c264b3471a3904190748a81180fe2c5fb6d7ecc56254e812f 0001-relax-dependencies.patch
+"
diff --git a/community/py3-keepass/asdasd b/community/py3-keepass/asdasd
new file mode 100644
index 0000000000..a9c480017d
--- /dev/null
+++ b/community/py3-keepass/asdasd
@@ -0,0 +1,32 @@
+from setuptools import find_packages, setup
+
+with open("README.rst") as file:
+ README = file.read()
+
+version = {}
+with open("pykeepass/version.py") as file:
+ exec(file.read(), version)
+
+setup(
+ name="pykeepass",
+ version=version["__version__"],
+ license="GPL3",
+ description="Python library to interact with keepass databases "
+ "(supports KDBX3 and KDBX4)",
+ long_description=README,
+ author="Philipp Schmitt",
+ author_email="philipp@schmitt.co",
+ url="https://github.com/libkeepass/pykeepass",
+ packages=find_packages(),
+ install_requires=[
+ "python-dateutil",
+ # FIXME python2 - last version to support python2
+ "construct==2.10.*",
+ "argon2_cffi",
+ "pycryptodomex>=3.*",
+ "lxml",
+ # FIXME python2
+ "future",
+ ],
+ include_package_data=True,
+)