anchor.diff:      "-m 'not network'"
     ];
   
  -  preCheck = "HOME=$TMPDIR";
  +  preCheck = ''
  +    export HOME=$TMPDIR
  +  '';
   
     disabledTests = [
       # sys.executable and expected executable are different
       "test_set_non_exist_python_path"
       # pythonfinder isn't aware of nix's python infrastructure
       "test_auto_isolate_site_packages"
  -    "test_use_invalid_wrapper_python"
       "test_use_wrapper_python"
  -    # tries to read/write files without proper permissions
  -    "test_completion_command"
  -    "test_plugin_add"
  -    "test_plugin_list"
  -    "test_plugin_remove"
  -    # tries to treat a gzip file as a zipfile and fails
  -    "test_resolve_local_artifacts"
  +    "test_find_python_in_path"
  +    # calls pip install and exits != 0
  +    "test_pre_and_post_hooks"
     ];
   
     meta = with lib; {
  
positive.code: with python.pkgs;
  buildPythonApplication rec {
    pname = "pdm";
    version = "1.12.6";
    format = "pyproject";
    disabled = pythonOlder "3.7";
  
    src = fetchPypi {
      inherit pname version;
      sha256 = "sha256-MXKER2ijU+2yPnsBFH0cu/hjHI4uNt++AqggH5rhnaU=";
    };
  
    # this patch allows us to run additional tests that invoke pdm, which checks
  
negative.code:   # doesn't appear to respect the settings in `$HOME`; possibly a bug upstream
    patches = [
      ./check-update.patch
    ];
  
    propagatedBuildInputs = [
      blinker
      click
      findpython
      installer
      packaging
      pdm-pep517
  