Files
nixpkgs/pkgs/development/python-modules/awscrt/default.nix
T
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

43 lines
986 B
Nix

{
lib,
buildPythonPackage,
fetchPypi,
setuptools,
cmake,
perl,
stdenv,
}:
buildPythonPackage rec {
pname = "awscrt";
version = "0.29.2";
pyproject = true;
src = fetchPypi {
inherit pname version;
hash = "sha256-x42BsTCNQv2h6yHSf88mV5E3uCEEPlKFUPLPxsCauf8=";
};
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${version}";
description = "Python bindings for the AWS Common Runtime";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ davegallant ];
};
}