diff options
author | Valentin Heidelberger <github@valentinsblog.com> | 2018-02-11 00:01:48 +0100 |
---|---|---|
committer | Valentin Heidelberger <github@valentinsblog.com> | 2018-02-11 01:52:38 +0100 |
commit | 97982f264af99367030152d5fc6bb2b1a8b15905 (patch) | |
tree | a282655da877655ea622d240bfa951edf0cb4691 /pkgs/development/python-modules/pynacl | |
parent | 8ecadc12502d59fc8117ca0ed41ede010448fca4 (diff) | |
download | nixpkgs-97982f264af99367030152d5fc6bb2b1a8b15905.tar nixpkgs-97982f264af99367030152d5fc6bb2b1a8b15905.tar.gz nixpkgs-97982f264af99367030152d5fc6bb2b1a8b15905.tar.bz2 nixpkgs-97982f264af99367030152d5fc6bb2b1a8b15905.tar.lz nixpkgs-97982f264af99367030152d5fc6bb2b1a8b15905.tar.xz nixpkgs-97982f264af99367030152d5fc6bb2b1a8b15905.tar.zst nixpkgs-97982f264af99367030152d5fc6bb2b1a8b15905.zip |
pythonPackages.pynacl: 0.3.0 -> 1.2.1
Diffstat (limited to 'pkgs/development/python-modules/pynacl')
-rw-r--r-- | pkgs/development/python-modules/pynacl/default.nix | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/pynacl/default.nix b/pkgs/development/python-modules/pynacl/default.nix new file mode 100644 index 00000000000..249945b0358 --- /dev/null +++ b/pkgs/development/python-modules/pynacl/default.nix @@ -0,0 +1,33 @@ +{ 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"; + }; + + #remove deadline from tests, see https://github.com/pyca/pynacl/issues/370 + prePatch = '' + sed -i 's/deadline=1500, //' tests/test_pwhash.py + sed -i 's/deadline=1500, //' tests/test_aead.py + ''; + + 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; + }; +} |