mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-04 04:46:43 +00:00
46 lines
794 B
Nix
46 lines
794 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
, libsodium
|
|
, cffi
|
|
, hypothesis
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pynacl";
|
|
version = "1.4.0";
|
|
disabled = pythonOlder "3.6";
|
|
|
|
src = fetchPypi {
|
|
inherit version;
|
|
pname = "PyNaCl";
|
|
sha256 = "01b56hxrbif3hx8l6rwz5kljrgvlbj7shmmd2rjh0hn7974a5sal";
|
|
};
|
|
|
|
buildInputs = [
|
|
libsodium
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
cffi
|
|
];
|
|
|
|
checkInputs = [
|
|
hypothesis
|
|
pytestCheckHook
|
|
];
|
|
|
|
SODIUM_INSTALL = "system";
|
|
|
|
pythonImportsCheck = [ "nacl" ];
|
|
|
|
meta = with lib; {
|
|
maintainers = with maintainers; [ va1entin ];
|
|
description = "Python binding to the Networking and Cryptography (NaCl) library";
|
|
homepage = "https://github.com/pyca/pynacl/";
|
|
license = licenses.asl20;
|
|
};
|
|
}
|