Merge staging-next into staging

This commit is contained in:
github-actions[bot] 2022-01-03 12:02:12 +00:00 committed by GitHub
commit fec8555fb0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 44 additions and 8 deletions

View file

@ -1,11 +1,14 @@
{ lib, setuptools, boto3, requests, click, pyyaml, pydantic { lib
, buildPythonApplication, pythonOlder, installShellFiles, fetchFromGitHub , python3
, awscli }: , fetchFromGitHub
, installShellFiles
, awscli
}:
buildPythonApplication rec { python3.pkgs.buildPythonApplication rec {
pname = "nimbo"; pname = "nimbo";
version = "0.2.4"; version = "0.2.4";
disabled = pythonOlder "3.6"; disabled = python3.pythonOlder "3.6";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "nimbo-sh"; owner = "nimbo-sh";
@ -13,13 +16,31 @@ buildPythonApplication rec {
rev = "v${version}"; rev = "v${version}";
sha256 = "1fs28s9ynfxrb4rzba6cmik0kl0q0vkpb4zdappsq62jqf960k24"; sha256 = "1fs28s9ynfxrb4rzba6cmik0kl0q0vkpb4zdappsq62jqf960k24";
}; };
postPatch = ''
substituteInPlace setup.py \
--replace "awscli>=1.19<2.0" ""
'';
nativeBuildInputs = [ installShellFiles ]; nativeBuildInputs = [ installShellFiles ];
propagatedBuildInputs = [ setuptools boto3 awscli requests click pyyaml pydantic ];
propagatedBuildInputs = with python3.pkgs; [
setuptools
boto3
requests
click
pyyaml
pydantic
];
# nimbo tests require an AWS instance # nimbo tests require an AWS instance
doCheck = false; doCheck = false;
pythonImportsCheck = [ "nimbo" ]; pythonImportsCheck = [ "nimbo" ];
makeWrapperArgs = [
"--prefix" "PATH" ":" (lib.makeBinPath [ awscli ])
];
postInstall = '' postInstall = ''
installShellCompletion --cmd nimbo \ installShellCompletion --cmd nimbo \
--zsh <(_NIMBO_COMPLETE=source_zsh $out/bin/nimbo) \ --zsh <(_NIMBO_COMPLETE=source_zsh $out/bin/nimbo) \

View file

@ -1,5 +1,6 @@
{ lib { lib
, python3 , python3
, fetchFromGitHub
, groff , groff
, less , less
}: }:
@ -14,17 +15,31 @@ let
sha256 = "189n8hpijy14jfan4ha9f5n06mnl33cxz7ay92wjqgkr639s0vg9"; sha256 = "189n8hpijy14jfan4ha9f5n06mnl33cxz7ay92wjqgkr639s0vg9";
}; };
}); });
pyyaml = super.pyyaml.overridePythonAttrs (oldAttrs: rec {
version = "5.4.1";
src = fetchFromGitHub {
owner = "yaml";
repo = "pyyaml";
rev = version;
hash = "sha256-VUqnlOF/8zSOqh6JoEYOsfQ0P4g+eYqxyFTywgCS7gM=";
};
checkPhase = ''
runHook preCheck
PYTHONPATH="tests/lib3:$PYTHONPATH" ${self.python.interpreter} -m test_all
runHook postCheck
'';
});
}; };
}; };
in in
with py.pkgs; buildPythonApplication rec { with py.pkgs; buildPythonApplication rec {
pname = "awscli"; pname = "awscli";
version = "1.22.14"; # N.B: if you change this, change botocore and boto3 to a matching version too version = "1.22.21"; # N.B: if you change this, change botocore and boto3 to a matching version too
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
sha256 = "sha256-FTGtUqdjZel8XqSrO3s3XQNqR6fyTO3mc1gyIQfk9n8="; hash = "sha256-yzfy6MjXC6LeydLNVXQvcK4UmpVQP/jJ+W2jMgpNMgw=";
}; };
# https://github.com/aws/aws-cli/issues/4837 # https://github.com/aws/aws-cli/issues/4837