Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 21.05 70 lines 1.2 kB view raw
1{ lib 2, buildPythonPackage 3, fetchPypi 4, pythonOlder 5, attrs 6, botocore 7, click 8, enum-compat 9, hypothesis 10, inquirer 11, jmespath 12, mock 13, mypy-extensions 14, pip 15, pytest 16, pyyaml 17, setuptools 18, six 19, typing ? null 20, watchdog 21, wheel 22}: 23 24buildPythonPackage rec { 25 pname = "chalice"; 26 version = "1.22.3"; 27 28 src = fetchPypi { 29 inherit pname version; 30 sha256 = "5a84a73c4a8d8b22bb64e06ff99060d7f222097db4237e58749dcad5165f082d"; 31 }; 32 33 checkInputs = [ watchdog pytest hypothesis mock ]; 34 propagatedBuildInputs = [ 35 attrs 36 botocore 37 click 38 enum-compat 39 inquirer 40 jmespath 41 mypy-extensions 42 pip 43 pyyaml 44 setuptools 45 six 46 wheel 47 ] ++ lib.optionals (pythonOlder "3.5") [ 48 typing 49 ]; 50 51 # conftest.py not included with pypi release 52 doCheck = false; 53 54 postPatch = '' 55 sed -i setup.py -e "/pip>=/c\'pip'," 56 substituteInPlace setup.py \ 57 --replace 'typing==3.6.4' 'typing' 58 ''; 59 60 checkPhase = '' 61 pytest tests 62 ''; 63 64 meta = with lib; { 65 description = "Python Serverless Microframework for AWS"; 66 homepage = "https://github.com/aws/chalice"; 67 license = licenses.asl20; 68 maintainers = [ maintainers.costrouc ]; 69 }; 70}