13 buildPythonPackage rec {
16 format = "setuptools";
18 disabled = pythonOlder "3.7";
21 inherit pname version;
22 hash = "sha256-2VBdad9NL19eW2Djot2gkynyjSCUvG4f0KnEub6M0vg=";
25 buildInputs = lib.optionals stdenv.isDarwin [
30 # Required to suppress -Werror
31 # https://github.com/NixOS/nixpkgs/issues/39687
32 hardeningDisable = lib.optionals stdenv.cc.isClang [
37 substituteInPlace setup.py \
38 --replace "extra_link_args += ['-Wl,-fatal_warnings']" ""
41 # gcc <10 is not supported, LLVM on darwin is just fine
44 ] ++ lib.optionals (!stdenv.isDarwin && stdenv.isAarch64) [
49 dontUseCmakeConfigure = true;
51 pythonImportsCheck = [
55 # Unable to import test module
56 # https://github.com/awslabs/aws-crt-python/issues/281
60 homepage = "https://github.com/awslabs/aws-crt-python";
61 description = "Python bindings for the AWS Common Runtime";
62 license = licenses.asl20;
63 maintainers = with maintainers; [ davegallant ];