2019-04-08 06:27:27 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, six
|
2020-07-04 10:41:03 +00:00
|
|
|
, pathlib
|
2019-04-08 06:27:27 +00:00
|
|
|
, pytest
|
|
|
|
, mock
|
|
|
|
, parameterized
|
2020-07-04 10:41:03 +00:00
|
|
|
, isPy27
|
2019-04-08 06:27:27 +00:00
|
|
|
, isPy35
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "aws-lambda-builders";
|
2021-03-24 17:41:46 +00:00
|
|
|
version = "1.3.0";
|
2019-04-08 06:27:27 +00:00
|
|
|
|
|
|
|
# No tests available in PyPI tarball
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "awslabs";
|
|
|
|
repo = "aws-lambda-builders";
|
|
|
|
rev = "v${version}";
|
2021-03-24 17:41:46 +00:00
|
|
|
sha256 = "1cfacp0a5qsaf3crcybslhbfwm1mqfyafj71dlvnidzx7b9bm60v";
|
2019-04-08 06:27:27 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
# Package is not compatible with Python 3.5
|
|
|
|
disabled = isPy35;
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
six
|
2020-07-04 10:41:03 +00:00
|
|
|
] ++ lib.optionals isPy27 [ pathlib ];
|
2019-04-08 06:27:27 +00:00
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
pytest
|
|
|
|
mock
|
|
|
|
parameterized
|
|
|
|
];
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
export PATH=$out/bin:$PATH
|
2019-10-17 21:44:45 +00:00
|
|
|
pytest tests/functional -k 'not can_invoke_pip'
|
2019-04-08 06:27:27 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/awslabs/aws-lambda-builders";
|
2019-04-08 06:27:27 +00:00
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|