anchor.diff:      substituteInPlace scripts/build-pypi-package.sh \
           --replace 'NIX_BINARY_FILE' '${pyre-bin}/bin/pyre.bin' \
           --replace 'BUILD_ROOT="$(mktemp -d)"' "BUILD_ROOT=$(pwd)/build"
  +    substituteInPlace client/buck.py \
  +        --replace '"buck"' '"${buck}/bin/buck"'
  +    substituteInPlace client/tests/buck_test.py \
  +        --replace '"buck"' '"${buck}/bin/buck"'
     '';
   
     buildInputs = [ pyre-bin rsync ];
  
positive.code: { stdenv, fetchFromGitHub, ocamlPackages, makeWrapper, writeScript
  , dune, python3, rsync, fetchpatch }:
  let
    # Manually set version - the setup script requires
    # hg and git + keeping the .git directory around.
  
negative.code:     bash scripts/build-pypi-package.sh --version ${pyre-version} --bundle-typeshed ${typeshed}
      cp -r build/dist dist
    '';
    checkPhase = ''
      sed -i 's/which python3/command -v python3/g' scripts/run-python-tests.sh
      bash scripts/run-python-tests.sh
    '';
  }
  