#!/usr/bin/make -f

export DH_VERBOSE=1

export PYBUILD_NAME=pynwb
# hopefully would pass with release after 2.5.0
export PYBUILD_TEST_ARGS=-k 'not test_validate_file_no_cache'

PKG = python3-pynwb
PKG_ROOT = $(CURDIR)/debian/$(PKG)
PKG_DIST = $(PKG_ROOT)/usr/lib/python3/dist-packages

%:
	dh $@ --buildsystem=pybuild

override_dh_install:
	dh_install
	find debian -name "test_*.nwb" -delete
	rm -f .coverage.*
	# Remove extra license files
	rm -vf $(PKG_DIST)/pynwb/nwb-schema/hdmf-common-schema/license.txt
	rm -vf $(PKG_DIST)/pynwb/nwb-schema/license.txt
