2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv
|
2020-04-24 23:36:52 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, pytest
|
|
|
|
, libsodium
|
|
|
|
, cffi
|
|
|
|
, six
|
2020-12-07 07:45:13 +00:00
|
|
|
, hypothesis
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pynacl";
|
2020-10-19 00:13:06 +00:00
|
|
|
version = "1.4.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit version;
|
|
|
|
pname = "PyNaCl";
|
2020-10-19 00:13:06 +00:00
|
|
|
sha256 = "01b56hxrbif3hx8l6rwz5kljrgvlbj7shmmd2rjh0hn7974a5sal";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2020-12-07 07:45:13 +00:00
|
|
|
checkInputs = [ pytest hypothesis ];
|
2020-04-24 23:36:52 +00:00
|
|
|
buildInputs = [ libsodium ];
|
|
|
|
propagatedBuildInputs = [ cffi six ];
|
|
|
|
|
|
|
|
SODIUM_INSTALL = "system";
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
py.test
|
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
maintainers = with maintainers; [ va1entin ];
|
|
|
|
description = "Python binding to the Networking and Cryptography (NaCl) library";
|
|
|
|
homepage = "https://github.com/pyca/pynacl/";
|
|
|
|
license = licenses.asl20;
|
|
|
|
};
|
|
|
|
}
|