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