#!/usr/bin/make -f

include /usr/share/dpkg/architecture.mk

export DEB_BUILD_MAINT_OPTIONS=hardening=+all
export PYBUILD_NAME=brotlicffi

# Use Debian's Brotli library
export USE_SHARED_BROTLI=1

# These tests are skipped because they requires some test files from libbrotli
DISABLE_TESTS = \
	    not test_brotli_version \
	and not test_streaming_compression \
	and not test_streaming_compression_flush

export PYBUILD_TEST_ARGS = -k "$(DISABLE_TESTS)"

%:
	dh $@ --buildsystem=pybuild

execute_after_dh_auto_install:
	rm -rfv debian/python3-brotlicffi/usr/lib/python3.*/dist-packages/.hypothesis/
