anchor.diff:      pytestCheckHook
     ];
   
  -  pythonImportsCheck = [ "pyhaversion" ];
  +  postPatch = ''
  +    # Upstream doesn't set a version for the tagged releases
  +    substituteInPlace setup.py \
  +      --replace "main" ${version}
  +  '';
  +
  +
  +  pythonImportsCheck = [
  +    "pyhaversion"
  +  ];
   
     meta = with lib; {
       description = "Python module to the newest version number of Home Assistant";
  
positive.code: 
  buildPythonPackage rec {
    pname = "pyhaversion";
    version = "21.10.0";
  
    # Only 3.8.0 and beyond are supported
    disabled = pythonOlder "3.8";
  
    src = fetchFromGitHub {
      owner = "ludeeus";
      repo = pname;
      rev = version;
      sha256 = "sha256-EvVkewFgkfYL6BjmJ/IWeuCyR+0R0ZxI35i9sxKcqxo=";
    };
  
    propagatedBuildInputs = [
      aiohttp
      async-timeout
      awesomeversion
    ];
  
  
negative.code: { lib
  , aiohttp
  , aresponses
  , awesomeversion
  , buildPythonPackage
  , fetchFromGitHub
  