Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 21.05 35 lines 991 B view raw
1{ lib, buildPythonPackage, fetchFromGitHub, isPy27, pytestCheckHook, autoconf 2, automake, cmake, gcc, libtool, perl, simplejson }: 3 4buildPythonPackage rec { 5 pname = "awslambdaric"; 6 version = "1.0.0"; 7 disabled = isPy27; 8 9 src = fetchFromGitHub { 10 owner = "aws"; 11 repo = "aws-lambda-python-runtime-interface-client"; 12 rev = "v${version}"; 13 sha256 = "13v1lsp3lxbqknvlb3gvljjf3wyrx5jg8sf9yfiaj1sm8pb8pmrf"; 14 }; 15 16 propagatedBuildInputs = [ simplejson ]; 17 18 nativeBuildInputs = [ autoconf automake cmake libtool perl ]; 19 20 buildInputs = [ gcc ]; 21 22 dontUseCmakeConfigure = true; 23 24 checkInputs = [ pytestCheckHook ]; 25 26 pythonImportsCheck = [ "awslambdaric" "runtime_client" ]; 27 28 meta = with lib; { 29 description = "AWS Lambda Runtime Interface Client for Python"; 30 homepage = "https://github.com/aws/aws-lambda-python-runtime-interface-client"; 31 license = licenses.asl20; 32 maintainers = with maintainers; [ austinbutler ]; 33 platforms = platforms.linux; 34 }; 35}