2018-07-21 01:44:44 +01:00
|
|
|
{ stdenv, buildPythonPackage, fetchFromGitHub, pytest, libsodium, cffi, six, hypothesis}:
|
2018-02-10 23:01:48 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pynacl";
|
2018-09-27 12:25:04 +01:00
|
|
|
version = "1.3.0";
|
2018-02-10 23:01:48 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "pyca";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2018-09-27 12:25:04 +01:00
|
|
|
sha256 = "0ac00d5bfdmz1x428h2scq5b34llp61yhxradl94qjwz7ikqv052";
|
2018-02-10 23:01:48 +00:00
|
|
|
};
|
|
|
|
|
2018-02-18 17:01:56 +00:00
|
|
|
checkInputs = [ pytest hypothesis ];
|
2018-02-10 23:01:48 +00:00
|
|
|
propagatedBuildInputs = [ libsodium cffi six ];
|
|
|
|
|
2018-02-18 17:02:18 +00:00
|
|
|
SODIUM_INSTALL = "system";
|
|
|
|
|
2018-02-10 23:01:48 +00:00
|
|
|
checkPhase = ''
|
2018-02-18 17:01:56 +00:00
|
|
|
py.test
|
2018-02-10 23:01:48 +00:00
|
|
|
'';
|
2018-09-27 12:25:04 +01:00
|
|
|
|
2018-02-10 23:01:48 +00:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
maintainers = with maintainers; [ va1entin ];
|
|
|
|
description = "Python binding to the Networking and Cryptography (NaCl) library";
|
|
|
|
homepage = https://github.com/pyca/pynacl/;
|
|
|
|
license = licenses.asl20;
|
|
|
|
};
|
|
|
|
}
|