Skip to content

Commit

Permalink
pass-import: update to 3.3.
Browse files Browse the repository at this point in the history
  • Loading branch information
adbrown101 committed Dec 3, 2022
1 parent bb34487 commit c8fc988
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 6 deletions.
32 changes: 32 additions & 0 deletions srcpkgs/pass-import/patches/makedoc.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
--- a/setup.py
+++ b/setup.py
@@ -5,29 +5,11 @@
import os
import sys

-try:
- import pypandoc
- PANDOC = True
-except ImportError:
- PANDOC = False
from pathlib import Path

-from share import makedoc
from setuptools import setup


-makedoc()
-if not PANDOC:
- print("Warning: 'pypandoc' is required to generate the manual pages.")
-else:
- try:
- for name in ['pass-import', 'pimport']:
- pypandoc.convert_file(f"share/man/man1/{name}.md", 'man',
- outputfile=f"share/man/man1/{name}.1",
- extra_args=['--standalone'])
- except OSError:
- print("Warning: 'pandoc' is not installed.")
-

share = Path(sys.prefix, 'share')
base = '/usr'
15 changes: 9 additions & 6 deletions srcpkgs/pass-import/template
Original file line number Diff line number Diff line change
@@ -1,17 +1,20 @@
# Template file for 'pass-import'
pkgname=pass-import
version=3.2
revision=2
version=3.3
revision=1
build_style=python3-module
# This test requires gnome-keyring which requires running dbus
make_check_args="--deselect=tests/imports/test_parse.py"
hostmakedepends="python3-setuptools"
hostmakedepends="python3-setuptools python3-requests python3-yaml python3-zxcvbn"
depends="pass python3-defusedxml python3-magic python3-cryptography
python3-SecretStorage python3-pykeepass python3-yaml"
python3-SecretStorage python3-pykeepass python3-requests python3-yaml lastpass-cli python3-zxcvbn"
checkdepends="python3-pytest $depends"
short_desc="Pass extension for importing data from most password managers"
maintainer="Alan Brown <adbrown@rocketmail.com>"
license="GPL-3.0-or-later"
homepage="/~https://github.com/roddhjav/pass-import"
distfiles="/~https://github.com/roddhjav/pass-import/releases/download/v${version}/pass-import-${version}.tar.gz"
checksum=d943df14dcfec063a6c881c315ce65813db6e105b14a9b0156a73dcf7e529b76
distfiles="${PYPI_SITE}/p/pass-import/pass-import-${version}.tar.gz"
checksum=f4cc7c5bb493d3e8936fa6a7cc4b744d6851a0cfb51dc20b2d1d0a6c1e9f3e9c
# pypi tarball doesn't contain tests and the github release doesn't contain pre-built manpages
# /~https://github.com/roddhjav/pass-import/issues/192
make_check=no

0 comments on commit c8fc988

Please sign in to comment.