summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFabian Affolter <fabian@affolter-engineering.ch>2024-03-22 10:00:04 +0100
committerGitHub <noreply@github.com>2024-03-22 10:00:04 +0100
commit37e6a589d7729029f64c9d664d19aadc0c407dc3 (patch)
tree6e53c3fa225211b1e5301323ee935a17fb5319e0
parent71ce9d787fa615a03b8454b92500944b8609825e (diff)
parentcaa71651fa09250f78d333b57689d95070c0dc91 (diff)
Merge pull request #297974 from fabaff/aws-sam-cli-fix
python312Packages.aws-lambda-builders: disable failing tests
-rw-r--r--pkgs/development/python-modules/aws-lambda-builders/default.nix19
-rw-r--r--pkgs/development/tools/aws-sam-cli/default.nix8
2 files changed, 19 insertions, 8 deletions
diff --git a/pkgs/development/python-modules/aws-lambda-builders/default.nix b/pkgs/development/python-modules/aws-lambda-builders/default.nix
index 341c66620c39..1119435b48c2 100644
--- a/pkgs/development/python-modules/aws-lambda-builders/default.nix
+++ b/pkgs/development/python-modules/aws-lambda-builders/default.nix
@@ -7,15 +7,16 @@
, pyelftools
, pytestCheckHook
, pythonOlder
+, setuptools
, six
}:
buildPythonPackage rec {
pname = "aws-lambda-builders";
version = "1.47.0";
- format = "setuptools";
+ pyproject = true;
- disabled = pythonOlder "3.7";
+ disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "awslabs";
@@ -26,10 +27,14 @@ buildPythonPackage rec {
postPatch = ''
substituteInPlace setup.py \
- --replace "version=read_version()," 'version="${version}",'
+ --replace-fail "version=read_version()," 'version="${version}",'
'';
- propagatedBuildInputs = [
+ build-system = [
+ setuptools
+ ];
+
+ dependencies = [
six
];
@@ -57,11 +62,17 @@ buildPythonPackage rec {
"TestPythonPipWorkflow"
"TestRubyWorkflow"
"TestRustCargo"
+ "test_with_mocks"
# Tests which are passing locally but not on Hydra
"test_copy_dependencies_action_1_multiple_files"
"test_move_dependencies_action_1_multiple_files"
];
+ disabledTestPaths = [
+ # Dotnet binary needed
+ "tests/integration/workflows/dotnet_clipackage/test_dotnet.py"
+ ];
+
pythonImportsCheck = [
"aws_lambda_builders"
];
diff --git a/pkgs/development/tools/aws-sam-cli/default.nix b/pkgs/development/tools/aws-sam-cli/default.nix
index 5ab92dbe8b18..8e55c5884bbd 100644
--- a/pkgs/development/tools/aws-sam-cli/default.nix
+++ b/pkgs/development/tools/aws-sam-cli/default.nix
@@ -10,7 +10,7 @@
python3.pkgs.buildPythonApplication rec {
pname = "aws-sam-cli";
- version = "1.110.0";
+ version = "1.113.0";
pyproject = true;
disabled = python3.pythonOlder "3.8";
@@ -19,10 +19,10 @@ python3.pkgs.buildPythonApplication rec {
owner = "aws";
repo = "aws-sam-cli";
rev = "refs/tags/v${version}";
- hash = "sha256-FJHHEsdi2uGP9/GxrANsVEuxZiS4M4BPBGoARQBQpkA=";
+ hash = "sha256-9DHqjhJfWkMJxu2gccbbuzoW9IxDqCBoi8slWnugeJM=";
};
- nativeBuildInputs = with python3.pkgs; [
+ build-system = with python3.pkgs; [
pythonRelaxDepsHook
setuptools
];
@@ -42,7 +42,7 @@ python3.pkgs.buildPythonApplication rec {
"tzlocal"
];
- propagatedBuildInputs = with python3.pkgs; [
+ dependencies = with python3.pkgs; [
aws-lambda-builders
aws-sam-translator
boto3