depot/third_party/nixpkgs/pkgs/development/python-modules/aws-lambda-builders/default.nix
Default email 8e65f7f0cc Project import generated by Copybara.
GitOrigin-RevId: 062a0c5437b68f950b081bbfc8a699d57a4ee026
2022-03-05 17:20:37 +01:00

50 lines
1 KiB
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, six
, pytest
, mock
, parameterized
, pythonOlder
}:
buildPythonPackage rec {
pname = "aws-lambda-builders";
version = "1.13.0";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "awslabs";
repo = "aws-lambda-builders";
rev = "v${version}";
sha256 = "sha256-t04g65TPeOYgEQw6kPJrlJN1ssQrsN9kl7g69J4pPwo=";
};
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 ];
};
}