1{ lib 2, stdenv 3, buildPythonPackage 4, fetchPypi 5, pytestCheckHook 6, pythonOlder 7, libsodium 8, cffi 9, hypothesis 10}: 11 12buildPythonPackage rec { 13 pname = "pynacl"; 14 version = "1.5.0"; 15 format = "setuptools"; 16 17 disabled = pythonOlder "3.6"; 18 19 src = fetchPypi { 20 inherit version; 21 pname = "PyNaCl"; 22 sha256 = "8ac7448f09ab85811607bdd21ec2464495ac8b7c66d146bf545b0f08fb9220ba"; 23 }; 24 25 buildInputs = [ 26 libsodium 27 ]; 28 29 propagatedNativeBuildInputs = [ 30 cffi 31 ]; 32 33 propagatedBuildInputs = [ 34 cffi 35 ]; 36 37 checkInputs = [ 38 hypothesis 39 pytestCheckHook 40 ]; 41 42 SODIUM_INSTALL = "system"; 43 44 pythonImportsCheck = [ 45 "nacl" 46 ]; 47 48 meta = with lib; { 49 description = "Python binding to the Networking and Cryptography (NaCl) library"; 50 homepage = "https://github.com/pyca/pynacl/"; 51 license = licenses.asl20; 52 maintainers = with maintainers; [ ]; 53 }; 54}