python310Packages.trustme: remove aarch64-darwin workarounds
These are no longer necessary now that pyopenssl is no longer broken on aarch64-darwin.
This commit is contained in:
parent
dc7ebb0163
commit
31c7a1b614
|
@ -1,5 +1,4 @@
|
|||
{ lib
|
||||
, stdenv
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, isPy3k
|
||||
|
@ -21,10 +20,9 @@ buildPythonPackage rec {
|
|||
};
|
||||
|
||||
checkInputs = [
|
||||
service-identity
|
||||
pytestCheckHook
|
||||
] ++ lib.optionals (!stdenv.isDarwin || !stdenv.isAarch64) [
|
||||
pyopenssl
|
||||
pytestCheckHook
|
||||
service-identity
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
|
@ -34,17 +32,6 @@ buildPythonPackage rec {
|
|||
futures
|
||||
];
|
||||
|
||||
# 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"
|
||||
];
|
||||
|
||||
postPatch = lib.optionalString (stdenv.isDarwin && stdenv.isAarch64) ''
|
||||
substituteInPlace "tests/test_trustme.py" \
|
||||
--replace "import OpenSSL.SSL" ""
|
||||
'';
|
||||
|
||||
# Some of the tests use localhost networking.
|
||||
__darwinAllowLocalNetworking = true;
|
||||
|
||||
|
|
Loading…
Reference in a new issue