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