From 6874b7001e4ba9e3176e0e49bad01a72bdf80251 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Wed, 26 May 2021 20:25:53 +0200 Subject: [PATCH] python3Packages.pynacl: switch to pytestCheckHook --- .../python-modules/pynacl/default.nix | 24 ++++++++++++------- 1 file changed, 16 insertions(+), 8 deletions(-) diff --git a/pkgs/development/python-modules/pynacl/default.nix b/pkgs/development/python-modules/pynacl/default.nix index 37cf0a9ef10a..ebd6aeb0fee3 100644 --- a/pkgs/development/python-modules/pynacl/default.nix +++ b/pkgs/development/python-modules/pynacl/default.nix @@ -1,16 +1,17 @@ { lib , buildPythonPackage , fetchPypi -, pytest +, pytestCheckHook +, pythonOlder , libsodium , cffi -, six , hypothesis }: buildPythonPackage rec { pname = "pynacl"; version = "1.4.0"; + disabled = pythonOlder "3.6"; src = fetchPypi { inherit version; @@ -18,15 +19,22 @@ buildPythonPackage rec { sha256 = "01b56hxrbif3hx8l6rwz5kljrgvlbj7shmmd2rjh0hn7974a5sal"; }; - checkInputs = [ pytest hypothesis ]; - buildInputs = [ libsodium ]; - propagatedBuildInputs = [ cffi six ]; + buildInputs = [ + libsodium + ]; + + propagatedBuildInputs = [ + cffi + ]; + + checkInputs = [ + hypothesis + pytestCheckHook + ]; SODIUM_INSTALL = "system"; - checkPhase = '' - py.test - ''; + pythonImportsCheck = [ "nacl" ]; meta = with lib; { maintainers = with maintainers; [ va1entin ];