depot/third_party/nixpkgs/pkgs/development/python-modules/pynacl/default.nix
Default email ce641f4048 Project import generated by Copybara.
GitOrigin-RevId: bc5d68306b40b8522ffb69ba6cff91898c2fbbff
2021-12-06 17:07:01 +01:00

51 lines
816 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, pytestCheckHook
, pythonOlder
, libsodium
, cffi
, hypothesis
, stdenv
, six
}:
buildPythonPackage rec {
pname = "pynacl";
version = "1.4.0";
disabled = pythonOlder "3.6";
src = fetchPypi {
inherit version;
pname = "PyNaCl";
sha256 = "01b56hxrbif3hx8l6rwz5kljrgvlbj7shmmd2rjh0hn7974a5sal";
};
buildInputs = [
libsodium
];
propagatedNativeBuildInputs = [
cffi
];
propagatedBuildInputs = [
cffi
six
];
checkInputs = [
hypothesis
pytestCheckHook
];
SODIUM_INSTALL = "system";
pythonImportsCheck = [ "nacl" ];
meta = with lib; {
description = "Python binding to the Networking and Cryptography (NaCl) library";
homepage = "https://github.com/pyca/pynacl/";
license = licenses.asl20;
};
}