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