2021-01-25 09:26:54 +01:00
|
|
|
{ lib
|
2022-01-15 21:17:32 +01:00
|
|
|
, stdenv
|
2019-02-24 13:45:56 -05:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2021-05-26 20:25:53 +02:00
|
|
|
, pytestCheckHook
|
|
|
|
, pythonOlder
|
2019-02-24 13:45:56 -05:00
|
|
|
, libsodium
|
|
|
|
, cffi
|
2020-11-29 16:14:54 +01:00
|
|
|
, hypothesis
|
2019-02-24 13:45:56 -05:00
|
|
|
}:
|
2018-02-11 00:01:48 +01:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pynacl";
|
2022-01-13 16:58:46 -08:00
|
|
|
version = "1.5.0";
|
2022-01-15 21:17:32 +01:00
|
|
|
format = "setuptools";
|
|
|
|
|
2021-05-26 20:25:53 +02:00
|
|
|
disabled = pythonOlder "3.6";
|
2018-02-11 00:01:48 +01:00
|
|
|
|
2019-02-24 13:45:56 -05:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit version;
|
|
|
|
pname = "PyNaCl";
|
2022-01-13 16:58:46 -08:00
|
|
|
sha256 = "8ac7448f09ab85811607bdd21ec2464495ac8b7c66d146bf545b0f08fb9220ba";
|
2018-02-11 00:01:48 +01:00
|
|
|
};
|
|
|
|
|
2021-05-26 20:25:53 +02:00
|
|
|
buildInputs = [
|
|
|
|
libsodium
|
|
|
|
];
|
|
|
|
|
2021-08-23 07:10:50 -06:00
|
|
|
propagatedNativeBuildInputs = [
|
2021-05-26 20:25:53 +02:00
|
|
|
cffi
|
|
|
|
];
|
|
|
|
|
2021-08-23 07:10:50 -06:00
|
|
|
propagatedBuildInputs = [
|
2021-10-21 06:50:16 -06:00
|
|
|
cffi
|
2021-08-23 07:10:50 -06:00
|
|
|
];
|
|
|
|
|
2021-05-26 20:25:53 +02:00
|
|
|
checkInputs = [
|
|
|
|
hypothesis
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
2018-02-11 00:01:48 +01:00
|
|
|
|
2018-02-18 18:02:18 +01:00
|
|
|
SODIUM_INSTALL = "system";
|
|
|
|
|
2022-01-15 21:17:32 +01:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"nacl"
|
|
|
|
];
|
2018-09-27 13:25:04 +02:00
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2018-02-11 00:01:48 +01:00
|
|
|
description = "Python binding to the Networking and Cryptography (NaCl) library";
|
2020-03-31 21:11:51 -04:00
|
|
|
homepage = "https://github.com/pyca/pynacl/";
|
2018-02-11 00:01:48 +01:00
|
|
|
license = licenses.asl20;
|
2022-01-15 21:17:32 +01:00
|
|
|
maintainers = with maintainers; [ ];
|
2018-02-11 00:01:48 +01:00
|
|
|
};
|
|
|
|
}
|