summary refs log tree commit diff
path: root/pkgs/development/python-modules/pynacl
diff options
context:
space:
mode:
authorValentin Heidelberger <github@valentinsblog.com>2018-09-27 13:25:04 +0200
committerValentin Heidelberger <github@valentinsblog.com>2018-09-27 13:26:26 +0200
commitd0199179bacc89571bbb79962e24b19aeb1b1e6f (patch)
treebf236c5f2a62b4563e00040e45d8063895d79212 /pkgs/development/python-modules/pynacl
parent3748c250bbf592d2df36efd5c621096783b642e2 (diff)
downloadnixpkgs-d0199179bacc89571bbb79962e24b19aeb1b1e6f.tar
nixpkgs-d0199179bacc89571bbb79962e24b19aeb1b1e6f.tar.gz
nixpkgs-d0199179bacc89571bbb79962e24b19aeb1b1e6f.tar.bz2
nixpkgs-d0199179bacc89571bbb79962e24b19aeb1b1e6f.tar.lz
nixpkgs-d0199179bacc89571bbb79962e24b19aeb1b1e6f.tar.xz
nixpkgs-d0199179bacc89571bbb79962e24b19aeb1b1e6f.tar.zst
nixpkgs-d0199179bacc89571bbb79962e24b19aeb1b1e6f.zip
pythonPackages.pynacl: 1.2.1 -> 1.3.0
Diffstat (limited to 'pkgs/development/python-modules/pynacl')
-rw-r--r--pkgs/development/python-modules/pynacl/default.nix9
-rw-r--r--pkgs/development/python-modules/pynacl/pynacl-no-timeout-and-deadline.patch49
2 files changed, 3 insertions, 55 deletions
diff --git a/pkgs/development/python-modules/pynacl/default.nix b/pkgs/development/python-modules/pynacl/default.nix
index 463cd8044e1..3fe1952213e 100644
--- a/pkgs/development/python-modules/pynacl/default.nix
+++ b/pkgs/development/python-modules/pynacl/default.nix
@@ -2,18 +2,15 @@
 
 buildPythonPackage rec {
   pname = "pynacl";
-  version = "1.2.1";
+  version = "1.3.0";
 
   src = fetchFromGitHub {
     owner = "pyca";
     repo = pname;
     rev = version;
-    sha256 = "0z9i1z4hjzmp23igyhvg131gikbrr947506lwfb3fayf0agwfv8f";
+    sha256 = "0ac00d5bfdmz1x428h2scq5b34llp61yhxradl94qjwz7ikqv052";
   };
 
-  # 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 hypothesis ];
   propagatedBuildInputs = [ libsodium cffi six ];
 
@@ -22,7 +19,7 @@ buildPythonPackage rec {
   checkPhase = ''
     py.test
   '';
-  
+
   meta = with stdenv.lib; {
     maintainers = with maintainers; [ va1entin ];
     description = "Python binding to the Networking and Cryptography (NaCl) library";
diff --git a/pkgs/development/python-modules/pynacl/pynacl-no-timeout-and-deadline.patch b/pkgs/development/python-modules/pynacl/pynacl-no-timeout-and-deadline.patch
deleted file mode 100644
index 5f831df3c48..00000000000
--- a/pkgs/development/python-modules/pynacl/pynacl-no-timeout-and-deadline.patch
+++ /dev/null
@@ -1,49 +0,0 @@
-diff --git a/tests/test_pwhash.py b/tests/test_pwhash.py
-index 9634c85..7f20316 100644
---- a/tests/test_pwhash.py
-+++ b/tests/test_pwhash.py
-@@ -20,7 +20,7 @@ import os
- import sys
- import unicodedata as ud
- 
--from hypothesis import given, settings
-+from hypothesis import given, settings, unlimited
- from hypothesis.strategies import integers, text
- 
- import pytest
-@@ -411,7 +411,7 @@ def test_str_verify_argon2_ref_fail(password_hash, password):
-        integers(min_value=1024 * 1024,
-                 max_value=16 * 1024 * 1024)
-        )
--@settings(deadline=1500, max_examples=20)
-+@settings(timeout=unlimited, deadline=None, max_examples=20)
- def test_argon2i_str_and_verify(password, ops, mem):
-     _psw = password.encode('utf-8')
-     pw_hash = nacl.pwhash.argon2i.str(_psw, opslimit=ops, memlimit=mem)
-@@ -425,7 +425,7 @@ def test_argon2i_str_and_verify(password, ops, mem):
-        integers(min_value=1024 * 1024,
-                 max_value=16 * 1024 * 1024)
-        )
--@settings(deadline=1500, max_examples=20)
-+@settings(timeout=unlimited, deadline=None, max_examples=20)
- def test_argon2id_str_and_verify(password, ops, mem):
-     _psw = password.encode('utf-8')
-     pw_hash = nacl.pwhash.argon2id.str(_psw, opslimit=ops, memlimit=mem)
-@@ -439,7 +439,7 @@ def test_argon2id_str_and_verify(password, ops, mem):
-        integers(min_value=1024 * 1024,
-                 max_value=16 * 1024 * 1024)
-        )
--@settings(deadline=1500, max_examples=20)
-+@settings(timeout=unlimited, deadline=None, max_examples=20)
- def test_argon2i_str_and_verify_fail(password, ops, mem):
-     _psw = password.encode('utf-8')
-     pw_hash = nacl.pwhash.argon2i.str(_psw, opslimit=ops, memlimit=mem)
-@@ -448,7 +448,7 @@ def test_argon2i_str_and_verify_fail(password, ops, mem):
- 
- 
- @given(text(alphabet=PASSWD_CHARS, min_size=5, max_size=20))
--@settings(deadline=1500, max_examples=5)
-+@settings(timeout=unlimited, deadline=None, max_examples=5)
- def test_pwhash_str_and_verify(password):
-     _psw = password.encode('utf-8')
-