depot/third_party/nixpkgs/pkgs/development/python-modules/awslambdaric/default.nix
Default email 48d4c8cc3c Project import generated by Copybara.
GitOrigin-RevId: 6ef4f522d63f22b40004319778761040d3197390
2021-08-08 17:34:03 -06:00

40 lines
1.1 KiB
Nix

{ lib, buildPythonPackage, fetchFromGitHub, isPy27, pytestCheckHook, autoconf
, automake, cmake, gcc, libtool, perl, simplejson }:
buildPythonPackage rec {
pname = "awslambdaric";
version = "1.2.0";
disabled = isPy27;
src = fetchFromGitHub {
owner = "aws";
repo = "aws-lambda-python-runtime-interface-client";
rev = version;
sha256 = "120qar8iaxj6dmnhjw1c40n2w06f1nyxy57dwh06xdiany698fg4";
};
postPatch = ''
substituteInPlace requirements/base.txt \
--replace 'simplejson==3' 'simplejson~=3'
'';
propagatedBuildInputs = [ simplejson ];
nativeBuildInputs = [ autoconf automake cmake libtool perl ];
buildInputs = [ gcc ];
dontUseCmakeConfigure = true;
checkInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "awslambdaric" "runtime_client" ];
meta = with lib; {
description = "AWS Lambda Runtime Interface Client for Python";
homepage = "https://github.com/aws/aws-lambda-python-runtime-interface-client";
license = licenses.asl20;
maintainers = with maintainers; [ austinbutler ];
platforms = platforms.linux;
};
}