at 22.05-pre 1.1 kB view raw
1{ lib, buildPythonPackage, fetchPypi, cmake, perl, stdenv, gcc10, CoreFoundation, Security }: 2 3buildPythonPackage rec { 4 pname = "awscrt"; 5 version = "0.12.6"; 6 7 buildInputs = lib.optionals stdenv.isDarwin [ CoreFoundation Security ]; 8 9 # Required to suppress -Werror 10 # https://github.com/NixOS/nixpkgs/issues/39687 11 hardeningDisable = lib.optional stdenv.cc.isClang "strictoverflow"; 12 13 nativeBuildInputs = [ cmake ] ++ 14 # gcc <10 is not supported, LLVM on darwin is just fine 15 lib.optionals (!stdenv.isDarwin && stdenv.isAarch64) [ gcc10 perl ]; 16 17 dontUseCmakeConfigure = true; 18 19 # Unable to import test module 20 # https://github.com/awslabs/aws-crt-python/issues/281 21 doCheck = false; 22 23 src = fetchPypi { 24 inherit pname version; 25 sha256 = "65d71b4cd78165bea962dfbda361b47b9b5a6198d8074046b8667da9653d0752"; 26 }; 27 28 meta = with lib; { 29 homepage = "https://github.com/awslabs/aws-crt-python"; 30 description = "Python bindings for the AWS Common Runtime"; 31 license = licenses.asl20; 32 maintainers = with maintainers; [ davegallant ]; 33 }; 34}