1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 certifi, 6 cython, 7 mbedtls_2, 8 pytestCheckHook, 9 setuptools, 10 typing-extensions, 11}: 12 13buildPythonPackage rec { 14 pname = "python-mbedtls"; 15 version = "2.10.1"; 16 pyproject = true; 17 18 src = fetchFromGitHub { 19 owner = "Synss"; 20 repo = "python-mbedtls"; 21 rev = version; 22 hash = "sha256-eKKb12G/0QAcwtv5Yk/92QXhMipeKOfKR1JEaNHDIlg="; 23 }; 24 25 build-system = [ 26 cython 27 setuptools 28 ]; 29 30 buildInputs = [ mbedtls_2 ]; 31 32 dependencies = [ 33 certifi 34 typing-extensions 35 ]; 36 37 __darwinAllowLocalNetworking = true; 38 39 nativeCheckInputs = [ pytestCheckHook ]; 40 41 pythonImportsCheck = [ "mbedtls" ]; 42 43 meta = with lib; { 44 description = "Cryptographic library with an mbed TLS back end"; 45 homepage = "https://github.com/Synss/python-mbedtls"; 46 license = licenses.mit; 47 maintainers = with maintainers; [ SuperSandro2000 ]; 48 }; 49}