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

38 lines
717 B
Nix
Raw Normal View History

{ lib
, buildPythonPackage
, fetchPypi
, pytest
, libsodium
, cffi
, six
, hypothesis
}:
2018-02-11 00:01:48 +01:00
buildPythonPackage rec {
pname = "pynacl";
2020-10-15 23:33:57 +02:00
version = "1.4.0";
2018-02-11 00:01:48 +01:00
src = fetchPypi {
inherit version;
pname = "PyNaCl";
2020-10-15 23:33:57 +02:00
sha256 = "01b56hxrbif3hx8l6rwz5kljrgvlbj7shmmd2rjh0hn7974a5sal";
2018-02-11 00:01:48 +01:00
};
checkInputs = [ pytest hypothesis ];
buildInputs = [ libsodium ];
propagatedBuildInputs = [ cffi six ];
2018-02-11 00:01:48 +01:00
SODIUM_INSTALL = "system";
2018-02-11 00:01:48 +01:00
checkPhase = ''
2018-02-18 18:01:56 +01:00
py.test
2018-02-11 00:01:48 +01:00
'';
2018-09-27 13:25:04 +02:00
meta = with lib; {
2018-02-11 00:01:48 +01:00
maintainers = with maintainers; [ va1entin ];
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;
};
}