diff --git a/pkgs/development/python-modules/asdf-astropy/default.nix b/pkgs/development/python-modules/asdf-astropy/default.nix index b1b171796591..db48ba6979e9 100644 --- a/pkgs/development/python-modules/asdf-astropy/default.nix +++ b/pkgs/development/python-modules/asdf-astropy/default.nix @@ -30,6 +30,11 @@ buildPythonPackage rec { hash = "sha256-JYzC1dEnq1caNSPffWCgk7c3mgUERywP0ladS+RwEnk="; }; + postPatch = '' + # pytest chokes on unhandled options in the [tool.pytest.ini_options] section + sed -i "/asdf_schema_/d" pyproject.toml + ''; + build-system = [ setuptools setuptools-scm