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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

61 lines
980 B
Nix
Raw Normal View History

{ lib
, stdenv
, buildPythonPackage
, fetchPypi
, pytestCheckHook
, sphinxHook
, pythonOlder
, libsodium
, cffi
, hypothesis
}:
2018-02-10 23:01:48 +00:00
buildPythonPackage rec {
pname = "pynacl";
2022-01-14 00:58:46 +00:00
version = "1.5.0";
outputs = [ "out" "doc" ];
format = "setuptools";
disabled = pythonOlder "3.6";
2018-02-10 23:01:48 +00:00
src = fetchPypi {
inherit version;
pname = "PyNaCl";
2022-01-14 00:58:46 +00:00
sha256 = "8ac7448f09ab85811607bdd21ec2464495ac8b7c66d146bf545b0f08fb9220ba";
2018-02-10 23:01:48 +00:00
};
nativeBuildInputs = [
sphinxHook
];
buildInputs = [
libsodium
];
propagatedNativeBuildInputs = [
cffi
];
propagatedBuildInputs = [
cffi
];
nativeCheckInputs = [
hypothesis
pytestCheckHook
];
2018-02-10 23:01:48 +00:00
SODIUM_INSTALL = "system";
pythonImportsCheck = [
"nacl"
];
2018-09-27 11:25:04 +00: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;
maintainers = with maintainers; [ ];
2018-02-10 23:01:48 +00:00
};
}