25 buildPythonPackage rec {
29 src = fetchFromGitHub {
33 sha256 = "sha256-Qz8kYXu2NmcgtW8GbmLPfB4BOearEycE6EMmQRXmWeI=";
37 substituteInPlace setup.py \
38 --replace "attrs>=19.3.0,<21.5.0" "attrs" \
39 --replace "pip>=9,<22.2" "pip" \
40 --replace "typing==3.6.4" "typing"
43 propagatedBuildInputs = [
56 ] ++ lib.optionals (pythonOlder "3.7") [
69 # Don't check the templates and the sample app
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"
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"
87 "test_can_generate_pipeline_for_all"
89 # https://github.com/aws/chalice/issues/1850
90 "test_resolve_endpoint"
91 "test_endpoint_from_arn"
94 pythonImportsCheck = [ "chalice" ];
97 description = "Python Serverless Microframework for AWS";
98 homepage = "https://github.com/aws/chalice";
99 license = licenses.asl20;
100 maintainers = with maintainers; [ costrouc ];