2021-01-25 08:26:54 +00:00
|
|
|
{ lib
|
2022-01-15 20:17:32 +00:00
|
|
|
, stdenv
|
2019-02-24 18:45:56 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2021-05-26 18:25:53 +00:00
|
|
|
, pytestCheckHook
|
2023-01-06 02:16:13 +00:00
|
|
|
, sphinxHook
|
2021-05-26 18:25:53 +00:00
|
|
|
, pythonOlder
|
2019-02-24 18:45:56 +00:00
|
|
|
, libsodium
|
|
|
|
, cffi
|
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";
|
2022-01-14 00:58:46 +00:00
|
|
|
version = "1.5.0";
|
2023-01-06 02:16:13 +00:00
|
|
|
outputs = [ "out" "doc" ];
|
2022-01-15 20:17:32 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
2021-05-26 18:25:53 +00: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";
|
2022-01-14 00:58:46 +00:00
|
|
|
sha256 = "8ac7448f09ab85811607bdd21ec2464495ac8b7c66d146bf545b0f08fb9220ba";
|
2018-02-10 23:01:48 +00:00
|
|
|
};
|
|
|
|
|
2023-01-06 02:16:13 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
sphinxHook
|
|
|
|
];
|
|
|
|
|
2021-05-26 18:25:53 +00:00
|
|
|
buildInputs = [
|
|
|
|
libsodium
|
|
|
|
];
|
|
|
|
|
2021-08-23 13:10:50 +00:00
|
|
|
propagatedNativeBuildInputs = [
|
2021-05-26 18:25:53 +00:00
|
|
|
cffi
|
|
|
|
];
|
|
|
|
|
2021-08-23 13:10:50 +00:00
|
|
|
propagatedBuildInputs = [
|
2021-10-21 12:50:16 +00:00
|
|
|
cffi
|
2021-08-23 13:10:50 +00:00
|
|
|
];
|
|
|
|
|
2023-01-21 12:00:00 +00:00
|
|
|
nativeCheckInputs = [
|
2021-05-26 18:25:53 +00:00
|
|
|
hypothesis
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
2018-02-10 23:01:48 +00:00
|
|
|
|
2018-02-18 17:02:18 +00:00
|
|
|
SODIUM_INSTALL = "system";
|
|
|
|
|
2022-01-15 20:17:32 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"nacl"
|
|
|
|
];
|
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
|
|
|
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;
|
2022-01-15 20:17:32 +00:00
|
|
|
maintainers = with maintainers; [ ];
|
2018-02-10 23:01:48 +00:00
|
|
|
};
|
|
|
|
}
|