504525a148
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
50 lines
889 B
Nix
50 lines
889 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, certifi
|
|
, cython
|
|
, mbedtls_2
|
|
, pytestCheckHook
|
|
, setuptools
|
|
, typing-extensions
|
|
}:
|
|
|
|
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
|
|
];
|
|
|
|
buildInputs = [
|
|
mbedtls_2
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
certifi
|
|
typing-extensions
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
];
|
|
|
|
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 ];
|
|
};
|
|
}
|