Merge pull request #124528 from fabaff/tests-pynacl

This commit is contained in:
Sandro 2021-05-27 03:07:03 +02:00 committed by GitHub
commit 8d812c96c4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 ];