nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 101 lines 2.0 kB view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 pythonAtLeast, 6 7 # build-system 8 setuptools, 9 10 # dependencies 11 botocore, 12 click, 13 inquirer, 14 jmespath, 15 pip, 16 pyyaml, 17 six, 18 19 # tests 20 hypothesis, 21 pytestCheckHook, 22 requests, 23 websocket-client, 24}: 25 26buildPythonPackage rec { 27 pname = "chalice"; 28 version = "1.32.0"; 29 pyproject = true; 30 31 disabled = pythonAtLeast "3.14"; 32 33 src = fetchFromGitHub { 34 owner = "aws"; 35 repo = "chalice"; 36 tag = version; 37 hash = "sha256-7qmE78aFfq9XCl2zcx1dAVKZZb96Bu47tSW1Qp2vFl4="; 38 }; 39 40 build-system = [ setuptools ]; 41 42 dependencies = [ 43 botocore 44 click 45 inquirer 46 jmespath 47 pip 48 pyyaml 49 # setuptools 50 six 51 ]; 52 53 pythonRelaxDeps = [ "pip" ]; 54 55 nativeCheckInputs = [ 56 hypothesis 57 pytestCheckHook 58 requests 59 websocket-client 60 ]; 61 62 disabledTestPaths = [ 63 # Don't check the templates and the sample app 64 "chalice/templates" 65 "docs/source/samples/todo-app/code/tests/test_db.py" 66 # Requires credentials 67 "tests/aws/test_features.py" 68 # Requires network access 69 "tests/aws/test_websockets.py" 70 "tests/integration/test_package.py" 71 ]; 72 73 disabledTests = [ 74 # Requires network access 75 "test_update_domain_name_failed" 76 "test_can_reload_server" 77 # Content for the tests is missing 78 "test_can_import_env_vars" 79 "test_stack_trace_printed_on_error" 80 # Don't build 81 "test_can_generate_pipeline_for_all" 82 "test_build_wheel" 83 # Tests require dist 84 "test_setup_tar_gz_hyphens_in_name" 85 "test_both_tar_gz" 86 "test_both_tar_bz2" 87 # AssertionError 88 "test_no_error_message_printed_on_empty_reqs_file" 89 ]; 90 91 pythonImportsCheck = [ "chalice" ]; 92 93 meta = { 94 description = "Python Serverless Microframework for AWS"; 95 mainProgram = "chalice"; 96 homepage = "https://github.com/aws/chalice"; 97 changelog = "https://github.com/aws/chalice/blob/${src.tag}/CHANGELOG.md"; 98 license = lib.licenses.asl20; 99 maintainers = [ ]; 100 }; 101}