Change:
Steps to reproduce the behavior: I run into this problem recently after updating to latest unstable packages. I think this might be related to
I'm still seeing the same failure both on 24.05 and unstable.
same thing here, using a flake:
should fix the issue :)
I have other tests failing with 1.12.0: <details<summaryFull list of failed tests:</summary<p</p</details
you can use something like this for now: (for hatch 1.9.7. for 1.12.0, you'd need to disable more tests, but going by the sheer amount of failing tests, there seems to be a more systematic problem with that version)
These tests only fail on darwin, while the original issue was about something else entirely.
Should be fixed by

Discussion:
<ins> { lib , stdenv , fetchPypi , python3 , cargo , git }: python3.pkgs.buildPythonApplication rec { pname = "hatch"; version = "1.9.7"; format = "pyproject"; src = fetchPypi { inherit pname version; hash = "sha256-Gae4IXn5Tyrd2612qn5lq5DK1VqxA9U4J2N5NcnmYkw="; }; postPatch = '' # Loosen hatchling runtime version dependency sed -i 's/hatchling<1.22/hatchling/' pyproject.toml ''; nativeBuildInputs = with python3.pkgs; [ hatchling hatch-vcs ]; propagatedBuildInputs = with python3.pkgs; [ click hatchling httpx hyperlink keyring packaging pexpect platformdirs rich shellingham tomli-w tomlkit userpath virtualenv zstandard ]; nativeCheckInputs = [ cargo ] ++ (with python3.pkgs; [ binary git pytestCheckHook pytest-mock pytest-xdist setuptools ]); preCheck = '' export HOME=$(mktemp -d); ''; disabledTests = [ # AssertionError: assert (1980, 1, 2, 0, 0, 0) == (2020, 2, 2, 0, 0, 0) "test_default" "test_explicit_path" "test_default_auto_detection" "test_editable_default" "test_editable_default_extra_dependencies" "test_editable_default_force_include" "test_editable_default_force_include_option" "test_editable_exact" "test_editable_exact_extra_dependencies" "test_editable_exact_force_include" "test_editable_exact_force_include_option" "test_editable_exact_force_include_build_data_precedence" "test_editable_pth" # expects sh, finds bash "test_all" "test_already_installed_update_flag" "test_already_installed_update_prompt" # Loosen hatchling runtime version dependency "test_core" "test_correct" ] ++ lib.optionals stdenv.isDarwin [ # https://github.com/NixOS/nixpkgs/issues/209358 "test_scripts_no_environment" # This test assumes it is running on macOS with a system shell on the PATH. # It is not possible to run it in a nix build using a /nix/store shell. # See https://github.com/pypa/hatch/pull/709 for the relevant code. "test_populate_default_popen_kwargs_executable" ] ++ lib.optionals stdenv.isAarch64 [ "test_resolve" ]; meta = with lib; { description = "Modern, extensible Python project manager"; mainProgram = "hatch"; homepage = "https://hatch.pypa.io/latest/"; changelog = "https://github.com/pypa/hatch/blob/hatch-v${version}/docs/history/hatch.md"; license = licenses.mit; maintainers = with maintainers; [ onny ]; }; } </ins>

<del> { lib , stdenv , fetchPypi , python3 , cargo , git }: python3.pkgs.buildPythonApplication rec { pname = "hatch"; version = "1.9.0"; format = "pyproject"; src = fetchPypi { inherit pname version; hash = "sha256-4ealEeFS7HzU26vE9Pahh0hwvUnJfRfTkLkjLdpoXOM="; }; nativeBuildInputs = with python3.pkgs; [ hatchling hatch-vcs ]; propagatedBuildInputs = with python3.pkgs; [ click hatchling httpx hyperlink keyring packaging pexpect platformdirs rich shellingham tomli-w tomlkit userpath virtualenv zstandard ]; nativeCheckInputs = [ cargo ] ++ (with python3.pkgs; [ binary git pytestCheckHook pytest-mock pytest-xdist setuptools ]); preCheck = '' export HOME=$(mktemp -d); ''; disabledTests = [ # AssertionError: assert (1980, 1, 2, 0, 0, 0) == (2020, 2, 2, 0, 0, 0) "test_default" "test_explicit_path" "test_default_auto_detection" "test_editable_default" "test_editable_default_extra_dependencies" "test_editable_default_force_include" "test_editable_default_force_include_option" "test_editable_exact" "test_editable_exact_extra_dependencies" "test_editable_exact_force_include" "test_editable_exact_force_include_option" "test_editable_exact_force_include_build_data_precedence" "test_editable_pth" # AssertionError: assert len(extract_installed_requirements(output.splitlines())) > 0 "test_creation_allow_system_packages" # cli table output mismatch "test_context_formatting" # expects sh, finds bash "test_all" "test_already_installed_update_flag" "test_already_installed_update_prompt" # unmet expectations about the binary module we provide "test_dependency_not_found" "test_marker_unmet" # output capturing mismatch, likely stdout/stderr mixup "test_no_compatibility_check_if_exists" ] ++ lib.optionals stdenv.isDarwin [ # https://github.com/NixOS/nixpkgs/issues/209358 "test_scripts_no_environment" # This test assumes it is running on macOS with a system shell on the PATH. # It is not possible to run it in a nix build using a /nix/store shell. # See https://github.com/pypa/hatch/pull/709 for the relevant code. "test_populate_default_popen_kwargs_executable" ]; meta = with lib; { description = "Modern, extensible Python project manager"; mainProgram = "hatch"; homepage = "https://hatch.pypa.io/latest/"; changelog = "https://github.com/pypa/hatch/blob/hatch-v${version}/docs/history/hatch.md"; license = licenses.mit; maintainers = with maintainers; [ onny ]; }; } </del>

haste-server = callPackage ../servers/haste-server { }; <del> hatch = python3Packages.callPackage ../development/tools/hatch { }; </del> hal-hardware-analyzer = libsForQt5.callPackage ../applications/science/electronics/hal-hardware-analyzer { stdenv = if stdenv.isDarwin then darwin.apple_sdk_11_0.stdenv else stdenv; };