uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
102
pkgs/development/python-modules/chalice/default.nix
Normal file
102
pkgs/development/python-modules/chalice/default.nix
Normal file
|
|
@ -0,0 +1,102 @@
|
|||
{ lib
|
||||
, attrs
|
||||
, botocore
|
||||
, buildPythonPackage
|
||||
, click
|
||||
, fetchFromGitHub
|
||||
, hypothesis
|
||||
, inquirer
|
||||
, jmespath
|
||||
, mock
|
||||
, mypy-extensions
|
||||
, pip
|
||||
, pytestCheckHook
|
||||
, pythonOlder
|
||||
, pyyaml
|
||||
, requests
|
||||
, setuptools
|
||||
, six
|
||||
, typing
|
||||
, watchdog
|
||||
, websocket-client
|
||||
, wheel
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "chalice";
|
||||
version = "1.26.6";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "aws";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
sha256 = "sha256-6Y5pJg6N/F97zvkyo4r6MoThi79kI53AvlHNOmOCpFA=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
attrs
|
||||
botocore
|
||||
click
|
||||
inquirer
|
||||
jmespath
|
||||
mypy-extensions
|
||||
pip
|
||||
pyyaml
|
||||
setuptools
|
||||
six
|
||||
wheel
|
||||
watchdog
|
||||
] ++ lib.optionals (pythonOlder "3.7") [
|
||||
typing
|
||||
];
|
||||
|
||||
checkInputs = [
|
||||
hypothesis
|
||||
mock
|
||||
pytestCheckHook
|
||||
requests
|
||||
websocket-client
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
sed -i setup.py -e "/pip>=/c\'pip',"
|
||||
substituteInPlace setup.py \
|
||||
--replace "typing==3.6.4" "typing" \
|
||||
--replace "jmespath>=0.9.3,<1.0.0" "jmespath>=0.9.3,<2.0.0"
|
||||
'';
|
||||
|
||||
disabledTestPaths = [
|
||||
# Don't check the templates and the sample app
|
||||
"chalice/templates"
|
||||
"docs/source/samples/todo-app/code/tests/test_db.py"
|
||||
# Requires credentials
|
||||
"tests/aws/test_features.py"
|
||||
# Requires network access
|
||||
"tests/aws/test_websockets.py"
|
||||
"tests/integration/test_package.py"
|
||||
];
|
||||
|
||||
disabledTests = [
|
||||
# Requires network access
|
||||
"test_update_domain_name_failed"
|
||||
"test_can_reload_server"
|
||||
# Content for the tests is missing
|
||||
"test_can_import_env_vars"
|
||||
"test_stack_trace_printed_on_error"
|
||||
# Don't build
|
||||
"test_can_generate_pipeline_for_all"
|
||||
"test_build_wheel"
|
||||
# https://github.com/aws/chalice/issues/1850
|
||||
"test_resolve_endpoint"
|
||||
"test_endpoint_from_arn"
|
||||
];
|
||||
|
||||
pythonImportsCheck = [ "chalice" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Python Serverless Microframework for AWS";
|
||||
homepage = "https://github.com/aws/chalice";
|
||||
license = licenses.asl20;
|
||||
maintainers = with maintainers; [ costrouc ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue