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.8.0"; 16 format = "setuptools"; 17 18 src = fetchFromGitHub { 19 owner = "Synss"; 20 repo = "python-mbedtls"; 21 rev = version; 22 hash = "sha256-gMFludfAprQ/1JR77Ee6/xVvGLJ9pY1LrouLpSKVrzk="; 23 }; 24 25 nativeBuildInputs = [ 26 cython 27 setuptools 28 ]; 29 30 buildInputs = [ mbedtls_2 ]; 31 32 propagatedBuildInputs = [ 33 certifi 34 typing-extensions 35 ]; 36 37 nativeCheckInputs = [ pytestCheckHook ]; 38 39 pythonImportsCheck = [ "mbedtls" ]; 40 41 meta = with lib; { 42 description = "Cryptographic library with an mbed TLS back end"; 43 homepage = "https://github.com/Synss/python-mbedtls"; 44 license = licenses.mit; 45 maintainers = with maintainers; [ SuperSandro2000 ]; 46 }; 47}