26 buildPythonPackage rec {
29 format = "setuptools";
31 disabled = pythonOlder "3.7";
33 src = fetchFromGitHub {
36 rev = "refs/tags/${version}";
37 hash = "sha256-m3pSD4fahBW6Yt/w07Co4fTZD7k6as5cPwoK5QSry6M=";
41 substituteInPlace setup.py \
42 --replace "inquirer>=2.7.0,<3.0.0" "inquirer" \
43 --replace "pip>=9,<23.1" "pip" \
46 propagatedBuildInputs = [
71 # Don't check the templates and the sample app
73 "docs/source/samples/todo-app/code/tests/test_db.py"
74 # Requires credentials
75 "tests/aws/test_features.py"
76 # Requires network access
77 "tests/aws/test_websockets.py"
78 "tests/integration/test_package.py"
82 # Requires network access
83 "test_update_domain_name_failed"
84 "test_can_reload_server"
85 # Content for the tests is missing
86 "test_can_import_env_vars"
87 "test_stack_trace_printed_on_error"
89 "test_can_generate_pipeline_for_all"
91 # https://github.com/aws/chalice/issues/1850
92 "test_resolve_endpoint"
93 "test_endpoint_from_arn"
95 "test_setup_tar_gz_hyphens_in_name"
100 pythonImportsCheck = [ "chalice" ];
103 description = "Python Serverless Microframework for AWS";
104 mainProgram = "chalice";
105 homepage = "https://github.com/aws/chalice";
106 changelog = "https://github.com/aws/chalice/blob/${version}/CHANGELOG.rst";
107 license = licenses.asl20;