2019-02-24 10:45:56 -08:00
|
|
|
{ stdenv
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, pytest
|
|
|
|
, libsodium
|
|
|
|
, cffi
|
|
|
|
, six
|
2020-11-29 07:14:54 -08:00
|
|
|
, hypothesis
|
2019-02-24 10:45:56 -08:00
|
|
|
}:
|
2018-02-10 15:01:48 -08:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pynacl";
|
2020-10-15 14:33:57 -07:00
|
|
|
version = "1.4.0";
|
2018-02-10 15:01:48 -08:00
|
|
|
|
2019-02-24 10:45:56 -08:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit version;
|
|
|
|
pname = "PyNaCl";
|
2020-10-15 14:33:57 -07:00
|
|
|
sha256 = "01b56hxrbif3hx8l6rwz5kljrgvlbj7shmmd2rjh0hn7974a5sal";
|
2018-02-10 15:01:48 -08:00
|
|
|
};
|
|
|
|
|
2020-11-29 07:14:54 -08:00
|
|
|
checkInputs = [ pytest hypothesis ];
|
2019-02-25 06:16:21 -08:00
|
|
|
buildInputs = [ libsodium ];
|
|
|
|
propagatedBuildInputs = [ cffi six ];
|
2018-02-10 15:01:48 -08:00
|
|
|
|
2018-02-18 09:02:18 -08:00
|
|
|
SODIUM_INSTALL = "system";
|
|
|
|
|
2018-02-10 15:01:48 -08:00
|
|
|
checkPhase = ''
|
2018-02-18 09:01:56 -08:00
|
|
|
py.test
|
2018-02-10 15:01:48 -08:00
|
|
|
'';
|
2018-09-27 04:25:04 -07:00
|
|
|
|
2018-02-10 15:01:48 -08:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
maintainers = with maintainers; [ va1entin ];
|
|
|
|
description = "Python binding to the Networking and Cryptography (NaCl) library";
|
2020-03-31 18:11:51 -07:00
|
|
|
homepage = "https://github.com/pyca/pynacl/";
|
2018-02-10 15:01:48 -08:00
|
|
|
license = licenses.asl20;
|
|
|
|
};
|
|
|
|
}
|