anchor.diff:  , python-setup-hook
   # For the Python package set
   , packageOverrides ? (self: super: {})
  +, buildPackages
   }:
   
   assert x11Support -> tcl != null
  
positive.code:     "--with-system-expat"
      "--with-system-ffi"
      "--with-openssl=${openssl.dev}"
    ];
  
    preConfigure = ''
  
negative.code:     ++ optionals stdenv.isDarwin [ CF configd ];
  
    hasDistutilsCxxPatch = !(stdenv.cc.isGNU or false);
    pythonForBuild = if stdenv.hostPlatform == stdenv.buildPlatform then
      "$out/bin/python"
    else
      buildPackages.python37.interpreter;
  in stdenv.mkDerivation {
    name = "python3-${version}";
    pythonVersion = majorVersion;
    inherit majorVersion version;
  
    inherit buildInputs;
  
    nativeBuildInputs =
      optionals (stdenv.hostPlatform != stdenv.buildPlatform)
      [ buildPackages.stdenv.cc buildPackages.python37 ];
  
    src = fetchurl {
      url = "https://www.python.org/ftp/python/${majorVersion}.${minorVersion}/Python-${version}.tar.xz";
  