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