anchor.diff:      sha256 = "0x0ncy0b0bmf586hbdgrif3gjmkdw760vfnfxndr493v07y29fbs";
     };
   
  +  postPatch = ''
  +    # sandbox does not support setuid/setgid/sticky bits
  +    substituteInPlace src/borg/testsuite/archiver.py \
  +      --replace "0o4755" "0o0755"
  +  '';
  +
     nativeBuildInputs = with python3.pkgs; [
       setuptools-scm
       # For building documentation:
  -    sphinx guzzle_sphinx_theme
  +    sphinx
  +    guzzle_sphinx_theme
     ];
  +
     buildInputs = [
  -    libb2 lz4 zstd openssl
  -  ] ++ lib.optionals stdenv.isLinux [ acl ];
  +    libb2
  +    lz4
  +    zstd
  +    openssl
  +  ] ++ lib.optionals stdenv.isLinux [
  +    acl
  +  ];
  +
     propagatedBuildInputs = with python3.pkgs; [
  +    cython
  +    llfuse
       packaging
  -    cython llfuse
  +    pyfuse3
     ];
   
     preConfigure = ''
  
positive.code: { lib, stdenv, python3, acl, libb2, lz4, zstd, openssl, openssh, nixosTests }:
  
  python3.pkgs.buildPythonApplication rec {
    pname = "borgbackup";
  
negative.code:   '';
  
    checkInputs = with python3.pkgs; [
      e2fsprogs
      pytest-benchmark
      pytest-xdist
      pytestCheckHook
    ];
  
    pytestFlagsArray = [
      "--numprocesses" "auto"
      "--benchmark-skip"
      "--pyargs" "borg.testsuite"
    ];
  
    disabledTests = [
      # fuse: device not found, try 'modprobe fuse' first
      "test_fuse"
      "test_fuse_allow_damaged_files"
      "test_fuse_mount_hardlinks"
      "test_fuse_mount_options"
      "test_fuse_versions_view"
      "test_readonly_mount"
      # Error: Permission denied while trying to write to /var/{,tmp}
      "test_get_cache_dir"
      "test_get_keys_dir"
      "test_get_security_dir"
      "test_get_config_dir"
    ];
  
    preCheck = ''
      export HOME=$TEMP
    '';
  
    passthru.tests = {
      inherit (nixosTests) borgbackup;
  