Package Details: pass-import 3.5-2

Git Clone URL: https://aur.archlinux.org/pass-import.git (read-only, click to copy)
Package Base: pass-import
Description: A pass extension for importing data from most existing password managers.
Upstream URL: https://github.com/roddhjav/pass-import
Keywords: import pass pass-extension
Licenses: GPL3
Submitter: roddhjav
Maintainer: roddhjav
Last Packager: roddhjav
Votes: 32
Popularity: 0.156430
First Submitted: 2017-01-09 17:56 (UTC)
Last Updated: 2024-06-13 22:48 (UTC)

Dependencies (12)

Required by (0)

Sources (2)

Pinned Comments

roddhjav commented on 2018-01-06 18:17 (UTC) (edited on 2022-06-06 19:11 (UTC) by roddhjav)

To install the package first import my PGP key:

gpg --recv-keys 06A26D531D56C42D66805049C5469996F0DF68EC

Alternatively this key can also be found on https://pujol.io/keys:

wget -qO - https://pujol.io/keys/0xc5469996f0df68ec.asc | gpg --import

Latest Comments

1 2 Next › Last »

roddhjav commented on 2024-07-03 10:00 (UTC)

@apferrosoft the PKGBUILD simply follows the python guideline.

apferrosoft commented on 2024-07-03 09:07 (UTC)

The script can fail to load correctly if the user environment uses a python (or python3) different from system python. Please see the hacked together patch (I dunno if hard coded /usr/bin is fine).

From abbc2e363dbc3f41c343bf5734475b47b0cbc981 Mon Sep 17 00:00:00 2001
From: Aljosha Papsch <xxx>
Date: Wed, 3 Jul 2024 10:57:42 +0200
Subject: [PATCH] Use absolute path to python executable.

---
 PKGBUILD          |  5 +++--
 import.bash.patch | 15 +++++++++++++++
 2 files changed, 18 insertions(+), 2 deletions(-)
 create mode 100644 import.bash.patch

diff --git a/PKGBUILD b/PKGBUILD
index 160189f..4379af4 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -34,10 +34,11 @@ validpgpkeys=('06A26D531D56C42D66805049C5469996F0DF68EC')

 build() {
   cd "$pkgname-$pkgver"
-  python setup.py build
+  /usr/bin/python setup.py build
 }

 package() {
   cd "$pkgname-$pkgver"
-  python setup.py install --root="$pkgdir" --optimize=1 --skip-build
+  /usr/bin/python setup.py install --root="$pkgdir" --optimize=1 --skip-build
+  patch "${pkgdir}/usr/lib/password-store/extensions/import.bash" "${startdir}/import.bash.patch"
 }
diff --git a/import.bash.patch b/import.bash.patch
new file mode 100644
index 0000000..e98f95f
--- /dev/null
+++ b/import.bash.patch
@@ -0,0 +1,15 @@
+--- import.bash        2024-07-03 10:51:26.000000000 +0200
++++ import.bash.2      2024-07-03 10:52:50.063725928 +0200
+@@ -11,10 +11,10 @@
+       export PASSWORD_STORE_ENABLE_EXTENSIONS PASSWORD_STORE_SIGNING_KEY
+       export GNUPGHOME PYTHONIOENCODING="UTF-8" _PASSWORD_STORE_EXTENSION="$COMMAND"
+       if [[ -t 0 ]]; then
+-              python3 -m pass_import "$@"
++              /usr/bin/python3 -m pass_import "$@"
+               ret=$?
+       else
+-              cat | python3 -m pass_import "$@"
++              cat | /usr/bin/python3 -m pass_import "$@"
+               ret=$?
+       fi
+       return $ret
-- 
2.45.2

gabx commented on 2022-07-11 10:10 (UTC) (edited on 2022-07-11 10:11 (UTC) by gabx)

first command returned

gpg: keyserver receive failed: Server indicated a failure

Second command worked

chovy commented on 2021-01-05 06:21 (UTC)

none of this works

nallekarhu commented on 2020-10-25 19:19 (UTC) (edited on 2020-10-25 23:44 (UTC) by nallekarhu)

pass-import fails after upgrading to python-pykeepass 3.2.1-2 Downgrading to python-pykeepass 3.2.0-1 solved it for me

EDIT: no longer necessary after upgrading to pass-import 3.1-1

DAMO238 commented on 2020-09-29 18:00 (UTC)

It seems that the keys have not been distributed between keyservers very well, I had to get them from the mit keyserver (which is slow and unreliable). Just add the following to your gpg configuration file:

keyserver hkps://pgp.mit.edu

roddhjav commented on 2020-04-16 17:54 (UTC)

@babbarc This is not related to the package but to your pacman configuration. It is looking for the signature of the package pass-import-2.6-2-any you made yourself. Either you need to disable LocalFileSigLevel signature checking in pacman.conf or you need to ensure makepkg (or your aur helper) signed the package with your GPG key.

babbarc commented on 2020-04-16 17:31 (UTC) (edited on 2020-04-16 17:32 (UTC) by babbarc)

Getting the below error while installing

error: 'path/to/pass-import/pass-import-2.6-2-any.pkg.tar.xz': package missing required signature

PS: I have the required signature

roddhjav commented on 2020-03-29 12:49 (UTC) (edited on 2020-04-13 12:54 (UTC) by roddhjav)

@stratosgear You might want to configure the keyserver in ~/.gnupg/gpg.conf with one of those:

keyserver hkps://hkps.pool.sks-keyservers.net
keyserver hkps://keys.openpgp.org

Also some networks (university for instance) block the hkps protocol.

stratosgear commented on 2020-03-29 12:41 (UTC)

Which I fixed by manually downloading your Code Signing Key from your website at https://pujol.io/keys/ and then doing a 'gpg --import 0xc5469996f0df68ec.asc`.

BTW, regarding my previous message, installing with yay/pacman also causes the same error.

No idea why you key is not automatically downloaded with --recv-keys