Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 21.05 33 lines 1.0 kB view raw
1{ lib, buildPythonPackage, fetchPypi, cmake, perl, stdenv, gcc10, darwin }: 2 3buildPythonPackage rec { 4 pname = "awscrt"; 5 version = "0.11.13"; 6 7 buildInputs = lib.optionals stdenv.isDarwin 8 (with darwin.apple_sdk.frameworks; [ CoreFoundation Security ]); 9 10 # Required to suppress -Werror 11 # https://github.com/NixOS/nixpkgs/issues/39687 12 hardeningDisable = lib.optional stdenv.cc.isClang "strictoverflow"; 13 14 nativeBuildInputs = [ cmake ] ++ lib.optionals stdenv.isAarch64 ([ gcc10 perl ]); 15 16 dontUseCmakeConfigure = true; 17 18 # Unable to import test module 19 # https://github.com/awslabs/aws-crt-python/issues/281 20 doCheck = false; 21 22 src = fetchPypi { 23 inherit pname version; 24 sha256 = "sha256-G/bf2AzWp8AHL4of0zfX3jIYyTtmTLBIC2ZKiMi19c0="; 25 }; 26 27 meta = with lib; { 28 homepage = "https://github.com/awslabs/aws-crt-python"; 29 description = "Python bindings for the AWS Common Runtime"; 30 license = licenses.asl20; 31 maintainers = with maintainers; [ davegallant ]; 32 }; 33}