Merge pull request #124528 from fabaff/tests-pynacl

authored by

Sandro and committed by
GitHub
8d812c96 6061993b

+16 -8
+16 -8
pkgs/development/python-modules/pynacl/default.nix
··· 1 1 { lib 2 2 , buildPythonPackage 3 3 , fetchPypi 4 - , pytest 4 + , pytestCheckHook 5 + , pythonOlder 5 6 , libsodium 6 7 , cffi 7 - , six 8 8 , hypothesis 9 9 }: 10 10 11 11 buildPythonPackage rec { 12 12 pname = "pynacl"; 13 13 version = "1.4.0"; 14 + disabled = pythonOlder "3.6"; 14 15 15 16 src = fetchPypi { 16 17 inherit version; ··· 18 19 sha256 = "01b56hxrbif3hx8l6rwz5kljrgvlbj7shmmd2rjh0hn7974a5sal"; 19 20 }; 20 21 21 - checkInputs = [ pytest hypothesis ]; 22 - buildInputs = [ libsodium ]; 23 - propagatedBuildInputs = [ cffi six ]; 22 + buildInputs = [ 23 + libsodium 24 + ]; 25 + 26 + propagatedBuildInputs = [ 27 + cffi 28 + ]; 29 + 30 + checkInputs = [ 31 + hypothesis 32 + pytestCheckHook 33 + ]; 24 34 25 35 SODIUM_INSTALL = "system"; 26 36 27 - checkPhase = '' 28 - py.test 29 - ''; 37 + pythonImportsCheck = [ "nacl" ]; 30 38 31 39 meta = with lib; { 32 40 maintainers = with maintainers; [ va1entin ];