Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 19.09 51 lines 1.1 kB view raw
1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, six 5, pytest 6, mock 7, parameterized 8, isPy35 9}: 10 11buildPythonPackage rec { 12 pname = "aws-lambda-builders"; 13 version = "0.3.0"; 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 = "1c3r3iz29s68mlmdsxbl65x5zqx25b89d40rir6729ck4gll4dyd"; 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}