1{ lib
2, buildPythonPackage
3, fetchPypi
4, pytest
5, libsodium
6, cffi
7, six
8, hypothesis
9}:
10
11buildPythonPackage rec {
12 pname = "pynacl";
13 version = "1.4.0";
14
15 src = fetchPypi {
16 inherit version;
17 pname = "PyNaCl";
18 sha256 = "01b56hxrbif3hx8l6rwz5kljrgvlbj7shmmd2rjh0hn7974a5sal";
19 };
20
21 checkInputs = [ pytest hypothesis ];
22 buildInputs = [ libsodium ];
23 propagatedBuildInputs = [ cffi six ];
24
25 SODIUM_INSTALL = "system";
26
27 checkPhase = ''
28 py.test
29 '';
30
31 meta = with lib; {
32 maintainers = with maintainers; [ va1entin ];
33 description = "Python binding to the Networking and Cryptography (NaCl) library";
34 homepage = "https://github.com/pyca/pynacl/";
35 license = licenses.asl20;
36 };
37}