-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
bb34487
commit c8fc988
Showing
2 changed files
with
41 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |