nixpkgs/pkgs/development/python-modules/python-mbedtls/default.nix
Ihar Hrachyshka 567e8dfd8e
treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

49 lines
908 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
certifi,
cython,
mbedtls_2,
pytestCheckHook,
setuptools,
typing-extensions,
}:
buildPythonPackage rec {
pname = "python-mbedtls";
version = "2.10.1";
pyproject = true;
src = fetchFromGitHub {
owner = "Synss";
repo = "python-mbedtls";
rev = version;
hash = "sha256-eKKb12G/0QAcwtv5Yk/92QXhMipeKOfKR1JEaNHDIlg=";
};
build-system = [
cython
setuptools
];
buildInputs = [ mbedtls_2 ];
dependencies = [
certifi
typing-extensions
];
__darwinAllowLocalNetworking = true;
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "mbedtls" ];
meta = {
description = "Cryptographic library with an mbed TLS back end";
homepage = "https://github.com/Synss/python-mbedtls";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ SuperSandro2000 ];
};
}