anchor.diff:      futures
     ];
   
  -  checkPhase = ''
  -    pytest
  -  '';
  +  # aarch64-darwin forbids W+X memory, but this tests depends on it:
  +  # * https://github.com/pyca/pyopenssl/issues/873
  +  disabledTests = lib.optionals (stdenv.isDarwin && stdenv.isAarch64) [
  +    "test_pyopenssl_end_to_end"
  +  ];
   
     # Some of the tests use localhost networking.
     __darwinAllowLocalNetworking = true;
  
positive.code:   };
  
    checkInputs = [
      pytest
      pyopenssl
      service-identity
    ];
  
    propagatedBuildInputs = [
  
negative.code: { lib
  , stdenv
  , buildPythonPackage
  , fetchPypi
  , isPy3k
  , cryptography
  , futures ? null
  , pyopenssl
  , service-identity
  , pytestCheckHook
  , idna
  }:
  
  