Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / pynacl / default.nix
blobbd92adf250113d2d694c57320725c7fdba532243
1 { lib
2 , stdenv
3 , buildPythonPackage
4 , fetchPypi
5 , pytestCheckHook
6 , sphinxHook
7 , pythonOlder
8 , libsodium
9 , cffi
10 , hypothesis
13 buildPythonPackage rec {
14   pname = "pynacl";
15   version = "1.5.0";
16   outputs = [ "out" "doc" ];
17   format = "setuptools";
19   disabled = pythonOlder "3.6";
21   src = fetchPypi {
22     inherit version;
23     pname = "PyNaCl";
24     sha256 = "8ac7448f09ab85811607bdd21ec2464495ac8b7c66d146bf545b0f08fb9220ba";
25   };
27   nativeBuildInputs = [
28     sphinxHook
29   ];
31   buildInputs = [
32     libsodium
33   ];
35   propagatedNativeBuildInputs = [
36     cffi
37   ];
39   propagatedBuildInputs = [
40     cffi
41   ];
43   nativeCheckInputs = [
44     hypothesis
45     pytestCheckHook
46   ];
48   SODIUM_INSTALL = "system";
50   pythonImportsCheck = [
51     "nacl"
52   ];
54   meta = with lib; {
55     description = "Python binding to the Networking and Cryptography (NaCl) library";
56     homepage = "https://github.com/pyca/pynacl/";
57     license = licenses.asl20;
58     maintainers = with maintainers; [ ];
59   };