Skip to content

Commit

Permalink
backblaze-b2: update to 3.6.0.
Browse files Browse the repository at this point in the history
Fixes: #37484.
  • Loading branch information
ahesford committed Dec 6, 2022
1 parent 91394a5 commit a420a0c
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 31 deletions.
13 changes: 13 additions & 0 deletions srcpkgs/backblaze-b2/patches/setuptools_scm_version.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
Setup works just fine with the version of setuptools_scm in Void.

--- a/setup.py
+++ b/setup.py
@@ -111,7 +111,7 @@
# for example:
# $ pip install -e .[dev,test]
extras_require={'doc': read_requirements('doc')},
- setup_requires=['setuptools_scm<6.0'],
+ setup_requires=['setuptools_scm'],
use_scm_version=True,

# If there are data files included in your packages that need to be
12 changes: 0 additions & 12 deletions srcpkgs/backblaze-b2/patches/src_last_modified_millis.patch

This file was deleted.

27 changes: 8 additions & 19 deletions srcpkgs/backblaze-b2/template
Original file line number Diff line number Diff line change
@@ -1,34 +1,23 @@
# Template file for 'backblaze-b2'
pkgname=backblaze-b2
version=2.1.0
revision=3
version=3.6.0
revision=1
build_style=python3-module
hostmakedepends="python3-setuptools"
depends="python3-logfury python3-Arrow python3-requests python3-six
python3-tqdm python-b2sdk python3-phx-class-registry"
checkdepends="python3-pytest $depends python3-pyflakes python3-mock
python3-dateutil"
hostmakedepends="python3-setuptools_scm"
depends="python3-Arrow python3-b2sdk python3-docutils
python3-phx-class-registry python3-rst2ansi python3-tabulate"
short_desc="Command Line Interface for Backblaze's B2 storage service"
maintainer="Andrea Brancaleoni <abc@pompel.me>"
license="MIT"
homepage="https://github.com/Backblaze/B2_Command_Line_Tool"
distfiles="${PYPI_SITE}/b/b2/b2-${version}.tar.gz"
checksum=fdae4aa7c88c7981ae68784600cc820ab8fd591a2ca6dc7af5e6b4d1549c2080
checksum=a879e751348b635ca772a2231be20c2e835abaf830534e2ab2f1fb75967c0252
replaces="python-b2>=0"
provides="python-b2-${version}_${revision}"

post_patch() {
# this files is necessary for do_check
# the files is copied directly from its GitHub's repository
cp "$FILESDIR/test_b2_command_line.py" "$wrksrc"
}
make_check=no # tests require unpackaged dependencies

post_install() {
# Remove test directory polluting site-packages
rm -rf ${DESTDIR}/usr/lib/python*/site-packages/test

# Avoid conflict with Boost's b2 tool
mv ${DESTDIR}/usr/bin/b2 ${DESTDIR}/usr/bin/backblaze-b2
mv ${DESTDIR}/usr/bin/b2 ${DESTDIR}/usr/bin/backblaze-b2

vlicense LICENSE
}
Expand Down

0 comments on commit a420a0c

Please sign in to comment.