@@ -0,0 +1,51 @@
1+{ lib
2+, buildPythonPackage
3+, fetchFromGitHub
4+, six
5+, pytest
6+, mock
7+, parameterized
8+, isPy35
9+}:
10+
11+buildPythonPackage rec {
12+ pname = "aws-lambda-builders";
13+ version = "0.2.1";
14+
15+ # No tests available in PyPI tarball
16+ src = fetchFromGitHub {
17+ owner = "awslabs";
18+ repo = "aws-lambda-builders";
19+ rev = "v${version}";
20+ sha256 = "1pbi6572q1nqs2wd7jx9d5vgf3rqdsqlaz4v8fqvl23wfb2c4vpd";
21+ };
22+
23+ # Package is not compatible with Python 3.5
24+ disabled = isPy35;
25+
26+ propagatedBuildInputs = [
27+ six
28+ ];
29+
30+ checkInputs = [
31+ pytest
32+ mock
33+ parameterized
34+ ];
35+
36+ checkPhase = ''
37+ export PATH=$out/bin:$PATH
38+ pytest tests/functional
39+ '';
40+
41+ meta = with lib; {
42+ homepage = https://github.com/awslabs/aws-lambda-builders;
43+ description = "A tool to compile, build and package AWS Lambda functions";
44+ longDescription = ''
45+ Lambda Builders is a Python library to compile, build and package
46+ AWS Lambda functions for several runtimes & frameworks.
47+ '';
48+ license = licenses.asl20;
49+ maintainers = with maintainers; [ dhkl ];
50+ };
51+}