2021-02-05 17:12:51 +00:00
|
|
|
{ lib
|
2020-04-24 23:36:52 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2021-05-28 09:39:13 +00:00
|
|
|
, pytestCheckHook
|
|
|
|
, pythonOlder
|
2020-04-24 23:36:52 +00:00
|
|
|
, libsodium
|
|
|
|
, cffi
|
2020-12-07 07:45:13 +00:00
|
|
|
, hypothesis
|
2021-12-06 16:07:01 +00:00
|
|
|
, stdenv
|
2021-08-25 08:27:29 +00:00
|
|
|
, six
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pynacl";
|
2020-10-19 00:13:06 +00:00
|
|
|
version = "1.4.0";
|
2021-05-28 09:39:13 +00:00
|
|
|
disabled = pythonOlder "3.6";
|
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
|
|
|
};
|
|
|
|
|
2021-05-28 09:39:13 +00:00
|
|
|
buildInputs = [
|
|
|
|
libsodium
|
|
|
|
];
|
|
|
|
|
2021-08-25 08:27:29 +00:00
|
|
|
propagatedNativeBuildInputs = [
|
2021-05-28 09:39:13 +00:00
|
|
|
cffi
|
|
|
|
];
|
|
|
|
|
2021-08-25 08:27:29 +00:00
|
|
|
propagatedBuildInputs = [
|
2021-12-06 16:07:01 +00:00
|
|
|
cffi
|
2021-08-25 08:27:29 +00:00
|
|
|
six
|
|
|
|
];
|
|
|
|
|
2021-05-28 09:39:13 +00:00
|
|
|
checkInputs = [
|
|
|
|
hypothesis
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
SODIUM_INSTALL = "system";
|
|
|
|
|
2021-05-28 09:39:13 +00:00
|
|
|
pythonImportsCheck = [ "nacl" ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Python binding to the Networking and Cryptography (NaCl) library";
|
|
|
|
homepage = "https://github.com/pyca/pynacl/";
|
|
|
|
license = licenses.asl20;
|
|
|
|
};
|
|
|
|
}
|