2021-02-05 17:12:51 +00:00
|
|
|
{ lib
|
2022-02-10 20:34:41 +00:00
|
|
|
, stdenv
|
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
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pynacl";
|
2022-02-10 20:34:41 +00:00
|
|
|
version = "1.5.0";
|
|
|
|
format = "setuptools";
|
|
|
|
|
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";
|
2022-02-10 20:34:41 +00:00
|
|
|
sha256 = "8ac7448f09ab85811607bdd21ec2464495ac8b7c66d146bf545b0f08fb9220ba";
|
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
|
|
|
];
|
|
|
|
|
2021-05-28 09:39:13 +00:00
|
|
|
checkInputs = [
|
|
|
|
hypothesis
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
SODIUM_INSTALL = "system";
|
|
|
|
|
2022-02-10 20:34:41 +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;
|
2022-02-10 20:34:41 +00:00
|
|
|
maintainers = with maintainers; [ ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|