mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-23 22:23:15 +00:00
38 lines
727 B
Nix
38 lines
727 B
Nix
{ stdenv
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, pytest
|
|
, libsodium
|
|
, cffi
|
|
, six
|
|
, hypothesis
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pynacl";
|
|
version = "1.4.0";
|
|
|
|
src = fetchPypi {
|
|
inherit version;
|
|
pname = "PyNaCl";
|
|
sha256 = "01b56hxrbif3hx8l6rwz5kljrgvlbj7shmmd2rjh0hn7974a5sal";
|
|
};
|
|
|
|
checkInputs = [ pytest hypothesis ];
|
|
buildInputs = [ libsodium ];
|
|
propagatedBuildInputs = [ cffi six ];
|
|
|
|
SODIUM_INSTALL = "system";
|
|
|
|
checkPhase = ''
|
|
py.test
|
|
'';
|
|
|
|
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;
|
|
};
|
|
}
|