diff --git a/hatch_hooks.py b/hatch_hooks.py index ae9c4f15..8f443d74 100644 --- a/hatch_hooks.py +++ b/hatch_hooks.py @@ -18,7 +18,8 @@ def initialize(self, version, build_data) -> None: package for package in build_data["dependencies"] if package.startswith("psycopg2-binary") - ].pop() + ] + build_data["depenndencies"].pop(psycopg2_binary_pinned) psycopg2_pinned = psycopg2_binary_pinned.replace("-binary", "") build_data["dependencies"].append(psycopg2_pinned)