1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-24 02:46:38 +00:00
nixpkgs/pkgs/development/python-modules/pynacl/default.nix

31 lines
911 B
Nix
Raw Normal View History

2018-02-10 23:01:48 +00:00
{ stdenv, buildPythonPackage, fetchFromGitHub, pytest, coverage, libsodium, cffi, six, hypothesis}:
buildPythonPackage rec {
pname = "pynacl";
version = "1.2.1";
src = fetchFromGitHub {
owner = "pyca";
repo = pname;
rev = version;
sha256 = "0z9i1z4hjzmp23igyhvg131gikbrr947506lwfb3fayf0agwfv8f";
};
#set timeout to unlimited, remove deadline from tests, see https://github.com/pyca/pynacl/issues/370
patches = [ ./pynacl-no-timeout-and-deadline.patch ];
2018-02-10 23:01:48 +00:00
checkInputs = [ pytest coverage hypothesis ];
propagatedBuildInputs = [ libsodium cffi six ];
checkPhase = ''
coverage run --source nacl --branch -m pytest
'';
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;
};
}