Files
nixpkgs/pkgs/development/python-modules/awscrt/default.nix
T
2026-01-19 16:09:58 +00:00

43 lines
1020 B
Nix

{
lib,
buildPythonPackage,
fetchPypi,
setuptools,
cmake,
perl,
stdenv,
}:
buildPythonPackage (finalAttrs: {
pname = "awscrt";
version = "0.31.1";
pyproject = true;
src = fetchPypi {
inherit (finalAttrs) pname version;
hash = "sha256-q7ZHaNJb9WPajiFl1Hekkcuhi8IsTsjbesva6U5Z68Q=";
};
build-system = [ setuptools ];
nativeBuildInputs = [ cmake ] ++ lib.optionals (!stdenv.hostPlatform.isDarwin) [ perl ];
hardeningDisable = [ "fortify" ]; # needed for jitterentropy
dontUseCmakeConfigure = true;
pythonImportsCheck = [ "awscrt" ];
# Unable to import test module
# https://github.com/awslabs/aws-crt-python/issues/281
doCheck = false;
meta = {
homepage = "https://github.com/awslabs/aws-crt-python";
changelog = "https://github.com/awslabs/aws-crt-python/releases/tag/v${finalAttrs.version}";
description = "Python bindings for the AWS Common Runtime";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ davegallant ];
};
})