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