depot/third_party/nixpkgs/pkgs/development/python-modules/aws-lambda-builders/default.nix
Default email 8ac5e011d6 Project import generated by Copybara.
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
2020-04-24 19:36:52 -04:00

51 lines
1.1 KiB
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, six
, pytest
, mock
, parameterized
, isPy35
}:
buildPythonPackage rec {
pname = "aws-lambda-builders";
version = "0.8.0";
# No tests available in PyPI tarball
src = fetchFromGitHub {
owner = "awslabs";
repo = "aws-lambda-builders";
rev = "v${version}";
sha256 = "1akiv92cd7ciky0aay94lh9azr73jajn0x0x6ywaf3qm5c4hyvys";
};
# Package is not compatible with Python 3.5
disabled = isPy35;
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 ];
};
}