diff --git a/debian/changelog b/debian/changelog
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+swh-core (0.9.0-1~swh2) unstable-swh; urgency=medium
+
+  * Split packages python3-swh.core and python3-swh.core.db.pytestplugin
+
+ -- Antoine R. Dumont (@ardumont) <ardumont@softwareheritage.org>  Fri, 20 Nov 2020 16:37:00 +0000
+
 swh-core (0.9.0-1~swh1) unstable-swh; urgency=medium
 
   * New upstream release 0.9.0     - (tagged by Antoine R. Dumont
diff --git a/debian/control b/debian/control
--- a/debian/control
+++ b/debian/control
@@ -36,3 +36,13 @@
 Architecture: all
 Depends: ${misc:Depends}, ${python3:Depends}, python3-systemd
 Description: Software Heritage core utilities
+
+Package: python3-swh.core.db.pytestplugin
+Architecture: all
+Depends: python3-pytest-postgresql,
+         python3-swh.core (= ${binary:Version}),
+         ${misc:Depends},
+         ${python3:Depends}
+Breaks: python3-swh.core (<< 0.9.0-1~swh2~)
+Replaces: python3-swh.core (<< 0.9.0-1~swh2~)
+Description: Software Heritage Core Db Pytest Utilities
diff --git a/debian/rules b/debian/rules
--- a/debian/rules
+++ b/debian/rules
@@ -8,3 +8,11 @@
 
 override_dh_python3:
 	dh_python3 --requires=requirements-db.txt --requires=requirements-http.txt
+
+override_dh_install:
+	dh_install
+	for pyvers in $(shell py3versions -vr); do \
+		mkdir -p $(CURDIR)/debian/python3-swh.core.db.pytestplugin/usr/lib/python$$pyvers/dist-packages/swh/core/db ; \
+		mv $(CURDIR)/debian/python3-swh.core/usr/lib/python$$pyvers/dist-packages/swh/core/db/pytest_plugin.py \
+	       $(CURDIR)/debian/python3-swh.core.db.pytestplugin/usr/lib/python$$pyvers/dist-packages/swh/core/db/pytest_plugin.py ; \
+	done