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:
Theodore Ni 2022-12-18 15:20:45 -08:00
parent dc7ebb0163
commit 31c7a1b614
No known key found for this signature in database
GPG key ID: 48B67583BDDD4474

View file

@ -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;