anchor.diff:  
     doCheck = true;
   
  -  pythonImportsCheck = [ "nassl" ];
  -
  -  checkInputs = [ pytestCheckHook ];
  +  pythonImportsCheck = [
  +    "nassl"
  +  ];
   
     disabledTests = [
       "Online"
  +  ] ++ lib.optionals (pythonAtLeast "3.10") [
  +    "test_write_bad"
  +    "test_client_authentication_no_certificate_supplied"
  +    "test_client_authentication_succeeds"
     ];
   
     meta = with lib; {
  +    description = "Low-level OpenSSL wrapper for Python";
       homepage = "https://github.com/nabla-c0d3/nassl";
  -    description = "Low-level OpenSSL wrapper for Python 3.7+";
  -    platforms = with platforms; linux ++ darwin;
       license = licenses.agpl3Only;
       maintainers = with maintainers; [ veehaitch ];
  +    platforms = with platforms; linux ++ darwin;
     };
   }
  
positive.code: in
  buildPythonPackage rec {
    pname = "nassl";
    version = "4.0.1";
    disabled = pythonOlder "3.7";
  
    src = fetchFromGitHub {
      owner = "nabla-c0d3";
      repo = pname;
      rev = version;
      hash = "sha256-QzO7ABh2weBO6NVFIj7kZpS8ashbDGompuvdKteJeUc=";
    };
  
    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/zlib-${zlibVersion}/
      cp ${zlibStatic.out}/lib/libz.a deps/zlib-${zlibVersion}/
    '';
  
    propagatedBuildInputs = [ tls-parser ];
  
    nativeBuildInputs = [ invoke ];
  
    buildPhase = ''
      invoke build.nassl
  
negative.code:         "enable-tls1_3"
          "no-async"
        ];
        patches = builtins.filter
          (
            p: (builtins.baseNameOf (toString p)) != "macos-yosemite-compat.patch"
          )
          oldAttrs.patches;
        buildInputs = oldAttrs.buildInputs ++ [ zlibStatic cacert ];
        meta = oldAttrs.meta // {
          knownVulnerabilities = [
  