anchor.diff:      nasm
     ];
   
  -  checkInputs = [
  -    python3.pkgs.distro
  -    python3.pkgs.pytestCheckHook
  +  checkInputs = with python3.pkgs; [
  +    distro
  +    pytestCheckHook
     ];
   
     preBuild = lib.optionalString withDriver ''
  
positive.code: 
  python3.pkgs.buildPythonApplication rec {
    pname = "chipsec";
    version = "1.6.1";
    disabled = !stdenv.isLinux;
  
    src = fetchFromGitHub {
      owner = "chipsec";
      repo = "chipsec";
      rev = version;
      sha256 = "01sp24z63r3nqxx57zc4873b8i5dqipy7yrxzrwjns531vznhiy2";
    };
  
    patches = lib.optionals withDriver [ ./ko-path.diff ./compile-ko.diff ];
  
negative.code:       $out/${python3.pkgs.python.sitePackages}/drivers/linux/chipsec.ko
    '';
  
    setupPyBuildFlags = [
      "--build-lib=$CHIPSEC_BUILD_LIB"
    ] ++ lib.optional (!withDriver) [
      "--skip-driver"
    ];
  
    pythonImportsCheck = [
      "chipsec"
    ];
  
    meta = with lib; {
      description = "Platform Security Assessment Framework";
  