pythonPackages.pynacl: ignore timeout in tests

don't modify test_aead.py yet

add pynacl-no-timeout-and-deadline.patch
This commit is contained in:
Valentin Heidelberger
2018-02-11 21:04:24 +01:00
parent 92d68b0656
commit cb00c50603
2 changed files with 51 additions and 5 deletions

View File

@@ -11,11 +11,8 @@ buildPythonPackage rec {
sha256 = "0z9i1z4hjzmp23igyhvg131gikbrr947506lwfb3fayf0agwfv8f";
};
#remove deadline from tests, see https://github.com/pyca/pynacl/issues/370
preCheck = ''
sed -i 's/deadline=1500, //' tests/test_pwhash.py
sed -i 's/deadline=1500, //' tests/test_aead.py
'';
#set timeout to unlimited, remove deadline from tests, see https://github.com/pyca/pynacl/issues/370
patches = [ ./pynacl-no-timeout-and-deadline.patch ];
checkInputs = [ pytest coverage hypothesis ];
propagatedBuildInputs = [ libsodium cffi six ];