ansible-later: 2.0.22 -> 2.0.23
[NixPkgs.git] / pkgs / development / python-modules / pynacl / default.nix
blobf34956d7280f1f9dc46db1c357bb6bc05e27a821
1 { lib
2 , stdenv
3 , buildPythonPackage
4 , fetchPypi
5 , pytestCheckHook
6 , pythonOlder
7 , libsodium
8 , cffi
9 , hypothesis
12 buildPythonPackage rec {
13   pname = "pynacl";
14   version = "1.5.0";
15   format = "setuptools";
17   disabled = pythonOlder "3.6";
19   src = fetchPypi {
20     inherit version;
21     pname = "PyNaCl";
22     sha256 = "8ac7448f09ab85811607bdd21ec2464495ac8b7c66d146bf545b0f08fb9220ba";
23   };
25   buildInputs = [
26     libsodium
27   ];
29   propagatedNativeBuildInputs = [
30     cffi
31   ];
33   propagatedBuildInputs = [
34     cffi
35   ];
37   checkInputs = [
38     hypothesis
39     pytestCheckHook
40   ];
42   SODIUM_INSTALL = "system";
44   pythonImportsCheck = [
45     "nacl"
46   ];
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   };