blob: d22c81fdd904e58a63aad6f1b9836d1f8a03c52b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
|
{
lib,
buildPythonPackage,
cffi,
fetchFromGitHub,
hypothesis,
libsodium,
pytestCheckHook,
pytest-xdist,
setuptools,
sphinxHook,
}:
buildPythonPackage rec {
pname = "pynacl";
version = "1.6.0";
outputs = [
"out"
"doc"
];
pyproject = true;
src = fetchFromGitHub {
owner = "pyca";
repo = "pynacl";
tag = version;
hash = "sha256-7SDJB2bXn0IGJQi597yehs9epdfmS7slbQ97vFVUkEA=";
};
build-system = [
cffi
setuptools
];
# cffi is listed in both build-system.requires and project.dependencies,
# and is indeed needed in both when cross-compiling
dependencies = [ cffi ];
nativeBuildInputs = [ sphinxHook ];
buildInputs = [ libsodium ];
propagatedNativeBuildInputs = [ cffi ];
nativeCheckInputs = [
hypothesis
pytestCheckHook
pytest-xdist
];
env.SODIUM_INSTALL = "system";
pythonImportsCheck = [ "nacl" ];
meta = {
description = "Python binding to the Networking and Cryptography (NaCl) library";
homepage = "https://github.com/pyca/pynacl/";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ mdaniels5757 ];
};
}
|