nixpkgs/pkgs/development/python-modules/pynacl/default.nix

50 lines
798 B
Nix
Raw Normal View History

{ lib
, buildPythonPackage
, fetchPypi
, pytestCheckHook
, pythonOlder
, libsodium
, cffi
, hypothesis
, six
}:
2018-02-10 23:01:48 +00:00
buildPythonPackage rec {
pname = "pynacl";
2020-10-15 22:33:57 +01:00
version = "1.4.0";
disabled = pythonOlder "3.6";
2018-02-10 23:01:48 +00:00
src = fetchPypi {
inherit version;
pname = "PyNaCl";
2020-10-15 22:33:57 +01:00
sha256 = "01b56hxrbif3hx8l6rwz5kljrgvlbj7shmmd2rjh0hn7974a5sal";
2018-02-10 23:01:48 +00:00
};
buildInputs = [
libsodium
];
propagatedNativeBuildInputs = [
cffi
];
propagatedBuildInputs = [
six
];
checkInputs = [
hypothesis
pytestCheckHook
];
2018-02-10 23:01:48 +00:00
SODIUM_INSTALL = "system";
pythonImportsCheck = [ "nacl" ];
2018-09-27 12:25:04 +01:00
meta = with lib; {
2018-02-10 23:01:48 +00:00
description = "Python binding to the Networking and Cryptography (NaCl) library";
homepage = "https://github.com/pyca/pynacl/";
2018-02-10 23:01:48 +00:00
license = licenses.asl20;
};
}