2ce5db779a
GitOrigin-RevId: 48037fd90426e44e4bf03e6479e88a11453b9b66
50 lines
1 KiB
Nix
50 lines
1 KiB
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, six
|
|
, pytest
|
|
, mock
|
|
, parameterized
|
|
, pythonOlder
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "aws-lambda-builders";
|
|
version = "1.16.0";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "awslabs";
|
|
repo = "aws-lambda-builders";
|
|
rev = "refs/tags/v${version}";
|
|
sha256 = "sha256-XJDukyYTtnAHiHACi5gEJ9VPjqv8Y4V7oe4q3l5fpMA=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
six
|
|
];
|
|
|
|
checkInputs = [
|
|
pytest
|
|
mock
|
|
parameterized
|
|
];
|
|
|
|
checkPhase = ''
|
|
export PATH=$out/bin:$PATH
|
|
pytest tests/functional -k 'not can_invoke_pip'
|
|
'';
|
|
|
|
meta = with lib; {
|
|
homepage = "https://github.com/awslabs/aws-lambda-builders";
|
|
description = "A tool to compile, build and package AWS Lambda functions";
|
|
longDescription = ''
|
|
Lambda Builders is a Python library to compile, build and package
|
|
AWS Lambda functions for several runtimes & frameworks.
|
|
'';
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ dhkl ];
|
|
};
|
|
}
|