Merge staging-next into staging

authored by

github-actions[bot] and committed by
GitHub
fec8555f a97320ef

+44 -8
+27 -6
pkgs/applications/misc/nimbo/default.nix
··· 1 - { lib, setuptools, boto3, requests, click, pyyaml, pydantic 2 - , buildPythonApplication, pythonOlder, installShellFiles, fetchFromGitHub 3 - , awscli }: 1 + { lib 2 + , python3 3 + , fetchFromGitHub 4 + , installShellFiles 5 + , awscli 6 + }: 4 7 5 - buildPythonApplication rec { 8 + python3.pkgs.buildPythonApplication rec { 6 9 pname = "nimbo"; 7 10 version = "0.2.4"; 8 - disabled = pythonOlder "3.6"; 11 + disabled = python3.pythonOlder "3.6"; 9 12 10 13 src = fetchFromGitHub { 11 14 owner = "nimbo-sh"; ··· 13 16 rev = "v${version}"; 14 17 sha256 = "1fs28s9ynfxrb4rzba6cmik0kl0q0vkpb4zdappsq62jqf960k24"; 15 18 }; 19 + 20 + postPatch = '' 21 + substituteInPlace setup.py \ 22 + --replace "awscli>=1.19<2.0" "" 23 + ''; 24 + 16 25 nativeBuildInputs = [ installShellFiles ]; 17 - propagatedBuildInputs = [ setuptools boto3 awscli requests click pyyaml pydantic ]; 26 + 27 + propagatedBuildInputs = with python3.pkgs; [ 28 + setuptools 29 + boto3 30 + requests 31 + click 32 + pyyaml 33 + pydantic 34 + ]; 18 35 19 36 # nimbo tests require an AWS instance 20 37 doCheck = false; 21 38 pythonImportsCheck = [ "nimbo" ]; 39 + 40 + makeWrapperArgs = [ 41 + "--prefix" "PATH" ":" (lib.makeBinPath [ awscli ]) 42 + ]; 22 43 23 44 postInstall = '' 24 45 installShellCompletion --cmd nimbo \
+17 -2
pkgs/tools/admin/awscli/default.nix
··· 1 1 { lib 2 2 , python3 3 + , fetchFromGitHub 3 4 , groff 4 5 , less 5 6 }: ··· 14 15 sha256 = "189n8hpijy14jfan4ha9f5n06mnl33cxz7ay92wjqgkr639s0vg9"; 15 16 }; 16 17 }); 18 + pyyaml = super.pyyaml.overridePythonAttrs (oldAttrs: rec { 19 + version = "5.4.1"; 20 + src = fetchFromGitHub { 21 + owner = "yaml"; 22 + repo = "pyyaml"; 23 + rev = version; 24 + hash = "sha256-VUqnlOF/8zSOqh6JoEYOsfQ0P4g+eYqxyFTywgCS7gM="; 25 + }; 26 + checkPhase = '' 27 + runHook preCheck 28 + PYTHONPATH="tests/lib3:$PYTHONPATH" ${self.python.interpreter} -m test_all 29 + runHook postCheck 30 + ''; 31 + }); 17 32 }; 18 33 }; 19 34 20 35 in 21 36 with py.pkgs; buildPythonApplication rec { 22 37 pname = "awscli"; 23 - version = "1.22.14"; # N.B: if you change this, change botocore and boto3 to a matching version too 38 + version = "1.22.21"; # N.B: if you change this, change botocore and boto3 to a matching version too 24 39 25 40 src = fetchPypi { 26 41 inherit pname version; 27 - sha256 = "sha256-FTGtUqdjZel8XqSrO3s3XQNqR6fyTO3mc1gyIQfk9n8="; 42 + hash = "sha256-yzfy6MjXC6LeydLNVXQvcK4UmpVQP/jJ+W2jMgpNMgw="; 28 43 }; 29 44 30 45 # https://github.com/aws/aws-cli/issues/4837