| 1 |
|
| 2 |
|
| 3 |
include /usr/share/dpkg/architecture.mk |
| 4 |
|
| 5 |
export DEB_BUILD_MAINT_OPTIONS=hardening=+all |
| 6 |
export PYBUILD_NAME=brotlicffi |
| 7 |
|
| 8 |
|
| 9 |
export USE_SHARED_BROTLI=1 |
| 10 |
|
| 11 |
|
| 12 |
DISABLE_TESTS = \ |
| 13 |
not test_brotli_version \ |
| 14 |
and not test_streaming_compression \ |
| 15 |
and not test_streaming_compression_flush |
| 16 |
|
| 17 |
ifeq ($(DEB_HOST_ARCH), $(filter $(DEB_HOST_ARCH), ppc64el riscv64 alpha hppa hurd-amd64)) |
| 18 |
DISABLE_TESTS += and not test_decompressor_concurrency |
| 19 |
endif |
| 20 |
|
| 21 |
export PYBUILD_TEST_ARGS = -k "$(DISABLE_TESTS)" |
| 22 |
|
| 23 |
%: |
| 24 |
dh $@ --buildsystem=pybuild |
| 25 |
|
| 26 |
execute_after_dh_auto_install: |
| 27 |
rm -rfv debian/python3-brotlicffi/usr/lib/python3.*/dist-packages/.hypothesis/ |