depot/third_party/nixpkgs/pkgs/development/python-modules/python-mbedtls/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

47 lines
888 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 ];
};
}