2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
certifi,
|
|
|
|
cython,
|
|
|
|
mbedtls_2,
|
|
|
|
pytestCheckHook,
|
|
|
|
setuptools,
|
|
|
|
typing-extensions,
|
2024-01-02 11:29:13 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "python-mbedtls";
|
|
|
|
version = "2.8.0";
|
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Synss";
|
|
|
|
repo = "python-mbedtls";
|
|
|
|
rev = version;
|
|
|
|
hash = "sha256-gMFludfAprQ/1JR77Ee6/xVvGLJ9pY1LrouLpSKVrzk=";
|
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
cython
|
|
|
|
setuptools
|
|
|
|
];
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
buildInputs = [ mbedtls_2 ];
|
2024-01-02 11:29:13 +00:00
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
certifi
|
|
|
|
typing-extensions
|
|
|
|
];
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
2024-01-02 11:29:13 +00:00
|
|
|
|
|
|
|
pythonImportsCheck = [ "mbedtls" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Cryptographic library with an mbed TLS back end";
|
|
|
|
homepage = "https://github.com/Synss/python-mbedtls";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ SuperSandro2000 ];
|
|
|
|
};
|
|
|
|
}
|