mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-14 06:00:33 +03:00
python3Packages.trustme: skip disallowed w+x test on aarch64-darwin
This commit is contained in:
parent
79aa8089cc
commit
af8164fba2
1 changed files with 8 additions and 5 deletions
|
@ -1,12 +1,13 @@
|
||||||
{ lib
|
{ lib
|
||||||
|
, stdenv
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, fetchPypi
|
, fetchPypi
|
||||||
, isPy3k
|
, isPy3k
|
||||||
, cryptography
|
, cryptography
|
||||||
, futures ? null
|
, futures ? null
|
||||||
, pytest
|
|
||||||
, pyopenssl
|
, pyopenssl
|
||||||
, service-identity
|
, service-identity
|
||||||
|
, pytestCheckHook
|
||||||
, idna
|
, idna
|
||||||
}:
|
}:
|
||||||
|
|
||||||
|
@ -20,9 +21,9 @@ buildPythonPackage rec {
|
||||||
};
|
};
|
||||||
|
|
||||||
checkInputs = [
|
checkInputs = [
|
||||||
pytest
|
|
||||||
pyopenssl
|
pyopenssl
|
||||||
service-identity
|
service-identity
|
||||||
|
pytestCheckHook
|
||||||
];
|
];
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
|
@ -32,9 +33,11 @@ buildPythonPackage rec {
|
||||||
futures
|
futures
|
||||||
];
|
];
|
||||||
|
|
||||||
checkPhase = ''
|
# aarch64-darwin forbids W+X memory, but this tests depends on it:
|
||||||
pytest
|
# * 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.
|
# Some of the tests use localhost networking.
|
||||||
__darwinAllowLocalNetworking = true;
|
__darwinAllowLocalNetworking = true;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue