anchor.diff:      export TMPDIR=/tmp
     '';
   
  -  pythonImportsCheck = [ "cloudinit" ];
  +  pythonImportsCheck = [
  +    "cloudinit"
  +  ];
   
     meta = with lib; {
       homepage = "https://cloudinit.readthedocs.org";
  
positive.code: { lib
  , fetchFromGitHub
  , buildPythonApplication
  , jinja2
  , oauthlib
  , configobj
  , pyyaml
  , requests
  , jsonschema
  , jsonpatch
  , httpretty
  , dmidecode
  , pytestCheckHook
  , shadow
  , cloud-utils
  , openssh
  }:
  
  buildPythonApplication rec {
    pname = "cloud-init";
    version = "21.2";
    namePrefix = "";
  
    src = fetchFromGitHub {
      owner = "canonical";
      repo = "cloud-init";
      rev = version;
      sha256 = "0vhjkgs49ixfa3kkj5s3v3gcxvypm3cdvfk6adrk2bx3wv2cbhvz";
    };
  
    patches = [ ./0001-add-nixos-support.patch ];
    prePatch = ''
      substituteInPlace setup.py --replace /lib/systemd $out/lib/systemd
    '';
  
    postInstall = ''
  
negative.code:     "TestInstallChefOmnibus"
      # https://github.com/canonical/cloud-init/pull/893
      "TestGetPackageMirrorInfo"
      # Disable failing VMware and PuppetAio tests
      "test_get_data_iso9660_with_network_config"
      "test_get_data_vmware_guestinfo_with_network_config"
      "test_get_host_info"
      "test_no_data_access_method"
      "test_install_with_collection"
      "test_install_with_custom_url"
      "test_install_with_default_arguments"
      "test_install_with_no_cleanup"
      "test_install_with_version"
    ];
  
    disabledTestPaths = [
  