nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at 22.05 102 lines 2.0 kB view raw
1{ lib 2, attrs 3, botocore 4, buildPythonPackage 5, click 6, fetchFromGitHub 7, hypothesis 8, inquirer 9, jmespath 10, mock 11, mypy-extensions 12, pip 13, pytestCheckHook 14, pythonOlder 15, pyyaml 16, requests 17, setuptools 18, six 19, typing 20, watchdog 21, websocket-client 22, wheel 23}: 24 25buildPythonPackage rec { 26 pname = "chalice"; 27 version = "1.26.6"; 28 29 src = fetchFromGitHub { 30 owner = "aws"; 31 repo = pname; 32 rev = version; 33 sha256 = "sha256-6Y5pJg6N/F97zvkyo4r6MoThi79kI53AvlHNOmOCpFA="; 34 }; 35 36 propagatedBuildInputs = [ 37 attrs 38 botocore 39 click 40 inquirer 41 jmespath 42 mypy-extensions 43 pip 44 pyyaml 45 setuptools 46 six 47 wheel 48 watchdog 49 ] ++ lib.optionals (pythonOlder "3.7") [ 50 typing 51 ]; 52 53 checkInputs = [ 54 hypothesis 55 mock 56 pytestCheckHook 57 requests 58 websocket-client 59 ]; 60 61 postPatch = '' 62 sed -i setup.py -e "/pip>=/c\'pip'," 63 substituteInPlace setup.py \ 64 --replace "typing==3.6.4" "typing" \ 65 --replace "jmespath>=0.9.3,<1.0.0" "jmespath>=0.9.3,<2.0.0" 66 ''; 67 68 disabledTestPaths = [ 69 # Don't check the templates and the sample app 70 "chalice/templates" 71 "docs/source/samples/todo-app/code/tests/test_db.py" 72 # Requires credentials 73 "tests/aws/test_features.py" 74 # Requires network access 75 "tests/aws/test_websockets.py" 76 "tests/integration/test_package.py" 77 ]; 78 79 disabledTests = [ 80 # Requires network access 81 "test_update_domain_name_failed" 82 "test_can_reload_server" 83 # Content for the tests is missing 84 "test_can_import_env_vars" 85 "test_stack_trace_printed_on_error" 86 # Don't build 87 "test_can_generate_pipeline_for_all" 88 "test_build_wheel" 89 # https://github.com/aws/chalice/issues/1850 90 "test_resolve_endpoint" 91 "test_endpoint_from_arn" 92 ]; 93 94 pythonImportsCheck = [ "chalice" ]; 95 96 meta = with lib; { 97 description = "Python Serverless Microframework for AWS"; 98 homepage = "https://github.com/aws/chalice"; 99 license = licenses.asl20; 100 maintainers = with maintainers; [ costrouc ]; 101 }; 102}