1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 pytestCheckHook,
6 sphinxHook,
7 pythonOlder,
8 libsodium,
9 cffi,
10 hypothesis,
11}:
12
13buildPythonPackage rec {
14 pname = "pynacl";
15 version = "1.5.0";
16 outputs = [
17 "out"
18 "doc"
19 ];
20 format = "setuptools";
21
22 disabled = pythonOlder "3.6";
23
24 src = fetchPypi {
25 inherit version;
26 pname = "PyNaCl";
27 sha256 = "8ac7448f09ab85811607bdd21ec2464495ac8b7c66d146bf545b0f08fb9220ba";
28 };
29
30 nativeBuildInputs = [ sphinxHook ];
31
32 buildInputs = [ libsodium ];
33
34 propagatedNativeBuildInputs = [ cffi ];
35
36 propagatedBuildInputs = [ cffi ];
37
38 nativeCheckInputs = [
39 hypothesis
40 pytestCheckHook
41 ];
42
43 SODIUM_INSTALL = "system";
44
45 pythonImportsCheck = [ "nacl" ];
46
47 meta = with lib; {
48 description = "Python binding to the Networking and Cryptography (NaCl) library";
49 homepage = "https://github.com/pyca/pynacl/";
50 license = licenses.asl20;
51 maintainers = [ ];
52 };
53}