depot/third_party/nixpkgs/pkgs/development/python-modules/aws-lambda-builders/default.nix
Default email 2ce5db779a Project import generated by Copybara.
GitOrigin-RevId: 48037fd90426e44e4bf03e6479e88a11453b9b66
2022-05-18 16:49:53 +02:00

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 ];
};
}