anchor.diff:      # Python on Nix is not manylinux1 compatible. https://github.com/NixOS/nixpkgs/issues/18484
       echo "manylinux1_compatible=False" >> $out/lib/${libPrefix}/_manylinux.py
   
  +    # Determinism: Windows installers were not deterministic.
  +    # We're also not interested in building Windows installers.
  +    find "$out" -name 'wininst*.exe' | xargs -r rm -f
  +
       # Use Python3 as default python
       ln -s "$out/bin/idle3" "$out/bin/idle"
       ln -s "$out/bin/pip3" "$out/bin/pip"
  
positive.code:        export NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE -msse2"
         export MACOSX_DEPLOYMENT_TARGET=10.6
       ''}
  
      configureFlagsArray=( --enable-shared --with-threads
                            CPPFLAGS="${concatStringsSep " " (map (p: "-I${getDev p}/include") buildInputs)}"
                            LDFLAGS="${concatStringsSep " " (map (p: "-L${getLib p}/lib") buildInputs)}"
                            LIBS="${optionalString (!stdenv.isDarwin) "-lcrypt"} ${optionalString (ncurses != null) "-lncurses"}"
                          )
    '';
  
    setupHook = ./setup-hook.sh;
  
negative.code: 
    NIX_LDFLAGS = optionalString stdenv.isLinux "-lgcc_s";
  
    # Determinism: The interpreter is patched to write null timestamps when compiling python files.
    # This way python doesn't try to update them when we freeze timestamps in nix store.
    DETERMINISTIC_BUILD=1;
    # Determinism: We fix the hashes of str, bytes and datetime objects.
    PYTHONHASHSEED=0;
  
    prePatch = optionalString stdenv.isDarwin ''
      substituteInPlace configure --replace '`/usr/bin/arch`' '"i386"'
      substituteInPlace configure --replace '-Wl,-stack_size,1000000' ' '
  