1
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-06-25 10:36:36 +03:00
nixpkgs/pkgs/development/python-modules/pynacl/default.nix

55 lines
887 B
Nix
Raw Normal View History

{ lib
, stdenv
, buildPythonPackage
, fetchPypi
, pytestCheckHook
, pythonOlder
, libsodium
, cffi
, hypothesis
}:
2018-02-11 00:01:48 +01:00
buildPythonPackage rec {
pname = "pynacl";
2022-01-13 16:58:46 -08:00
version = "1.5.0";
format = "setuptools";
disabled = pythonOlder "3.6";
2018-02-11 00:01:48 +01:00
src = fetchPypi {
inherit version;
pname = "PyNaCl";
2022-01-13 16:58:46 -08:00
sha256 = "8ac7448f09ab85811607bdd21ec2464495ac8b7c66d146bf545b0f08fb9220ba";
2018-02-11 00:01:48 +01:00
};
buildInputs = [
libsodium
];
propagatedNativeBuildInputs = [
cffi
];
propagatedBuildInputs = [
cffi
];
checkInputs = [
hypothesis
pytestCheckHook
];
2018-02-11 00:01:48 +01:00
SODIUM_INSTALL = "system";
pythonImportsCheck = [
"nacl"
];
2018-09-27 13:25:04 +02:00
meta = with lib; {
2018-02-11 00:01:48 +01:00
description = "Python binding to the Networking and Cryptography (NaCl) library";
homepage = "https://github.com/pyca/pynacl/";
2018-02-11 00:01:48 +01:00
license = licenses.asl20;
maintainers = with maintainers; [ ];
2018-02-11 00:01:48 +01:00
};
}