anchor.diff:  in
   buildPythonPackage rec {
     pname = "nassl";
  -  version = "4.0.1";
  +  version = "4.0.2";
  +  format = "setuptools";
  +
     disabled = pythonOlder "3.7";
   
     src = fetchFromGitHub {
       owner = "nabla-c0d3";
       repo = pname;
       rev = version;
  -    hash = "sha256-QzO7ABh2weBO6NVFIj7kZpS8ashbDGompuvdKteJeUc=";
  +    hash = "sha256-lLyHXLmBVvT+LgsKBU8DcUXd0qaLSrwvXxFnIB9CHcU=";
     };
   
  -  postPatch = let
  -    legacyOpenSSLVersion = lib.replaceStrings ["."] ["_"] opensslLegacyStatic.version;
  -    modernOpenSSLVersion = lib.replaceStrings ["."] ["_"] opensslStatic.version;
  -    zlibVersion = zlibStatic.version;
  -  in ''
  -    mkdir -p deps/openssl-OpenSSL_${legacyOpenSSLVersion}/
  -    cp ${opensslLegacyStatic.out}/lib/libssl.a \
  -      ${opensslLegacyStatic.out}/lib/libcrypto.a \
  -      deps/openssl-OpenSSL_${legacyOpenSSLVersion}/
  -    ln -s ${opensslLegacyStatic.out.dev}/include deps/openssl-OpenSSL_${legacyOpenSSLVersion}/include
  -    ln -s ${opensslLegacyStatic.bin}/bin deps/openssl-OpenSSL_${legacyOpenSSLVersion}/apps
  +  postPatch =
  +    let
  +      legacyOpenSSLVersion = lib.replaceStrings [ "." ] [ "_" ] opensslLegacyStatic.version;
  +      modernOpenSSLVersion = lib.replaceStrings [ "." ] [ "_" ] opensslStatic.version;
  +      zlibVersion = zlibStatic.version;
  +    in
  +    ''
  +      mkdir -p deps/openssl-OpenSSL_${legacyOpenSSLVersion}/
  +      cp ${opensslLegacyStatic.out}/lib/libssl.a \
  +        ${opensslLegacyStatic.out}/lib/libcrypto.a \
  +        deps/openssl-OpenSSL_${legacyOpenSSLVersion}/
  +      ln -s ${opensslLegacyStatic.out.dev}/include deps/openssl-OpenSSL_${legacyOpenSSLVersion}/include
  +      ln -s ${opensslLegacyStatic.bin}/bin deps/openssl-OpenSSL_${legacyOpenSSLVersion}/apps
   
  -    mkdir -p deps/openssl-OpenSSL_${modernOpenSSLVersion}/
  -    cp ${opensslStatic.out}/lib/libssl.a \
  -      ${opensslStatic.out}/lib/libcrypto.a \
  -      deps/openssl-OpenSSL_${modernOpenSSLVersion}/
  -    ln -s ${opensslStatic.out.dev}/include deps/openssl-OpenSSL_${modernOpenSSLVersion}/include
  -    ln -s ${opensslStatic.bin}/bin deps/openssl-OpenSSL_${modernOpenSSLVersion}/apps
  +      mkdir -p deps/openssl-OpenSSL_${modernOpenSSLVersion}/
  +      cp ${opensslStatic.out}/lib/libssl.a \
  +        ${opensslStatic.out}/lib/libcrypto.a \
  +        deps/openssl-OpenSSL_${modernOpenSSLVersion}/
  +      ln -s ${opensslStatic.out.dev}/include deps/openssl-OpenSSL_${modernOpenSSLVersion}/include
  +      ln -s ${opensslStatic.bin}/bin deps/openssl-OpenSSL_${modernOpenSSLVersion}/apps
   
  -    mkdir -p deps/zlib-${zlibVersion}/
  -    cp ${zlibStatic.out}/lib/libz.a deps/zlib-${zlibVersion}/
  -  '';
  +      mkdir -p deps/zlib-${zlibVersion}/
  +      cp ${zlibStatic.out}/lib/libz.a deps/zlib-${zlibVersion}/
  +    '';
   
  -  propagatedBuildInputs = [ tls-parser ];
  +  nativeBuildInputs = [
  +    invoke
  +  ];
   
  -  nativeBuildInputs = [ invoke ];
  +  propagatedBuildInputs = [
  +    tls-parser
  +  ];
  +
  +  checkInputs = [
  +    pytestCheckHook
  +  ];
   
     buildPhase = ''
       invoke build.nassl
  
positive.code:         sha256 = "1zqb1rff1wikc62a7vj5qxd1k191m8qif5d05mwdxz2wnzywlg72";
        };
        configureFlags = oldAttrs.configureFlags ++ nasslOpensslFlagsCommon;
        patches = builtins.filter (
          p: (builtins.baseNameOf (toString p)) == "darwin64-arm64.patch"
        ) oldAttrs.patches;
        buildInputs = oldAttrs.buildInputs ++ [ zlibStatic ];
        # openssl_1_0_2 needs `withDocs = false`
        outputs = lib.remove "doc" oldAttrs.outputs;
  
negative.code: , tls-parser
  , cacert
  , pytestCheckHook
  , pythonAtLeast
  , pythonOlder
  }:
  
  