Avoid top-level with ...; in pkgs/tools/virtualization/awsebcli/default.nix

This commit is contained in:
Philip Taron 2024-03-19 21:17:00 -07:00 committed by Valentin Gagarin
parent 4ede2c3657
commit 3c9cdd2965

View File

@ -1,4 +1,5 @@
{ lib, python3, fetchFromGitHub, glibcLocales, git }: { lib, python3, fetchFromGitHub, glibcLocales, git }:
let let
changeVersion = overrideFunc: version: hash: overrideFunc (oldAttrs: rec { changeVersion = overrideFunc: version: hash: overrideFunc (oldAttrs: rec {
inherit version; inherit version;
@ -13,8 +14,10 @@ let
cement = changeVersion super.cement.overridePythonAttrs "2.8.2" "sha256-h2XtBSwGHXTk0Bia3cM9Jo3lRMohmyWdeXdB9yXkItI="; cement = changeVersion super.cement.overridePythonAttrs "2.8.2" "sha256-h2XtBSwGHXTk0Bia3cM9Jo3lRMohmyWdeXdB9yXkItI=";
}; };
}; };
in in
with localPython.pkgs; buildPythonApplication rec {
localPython.pkgs.buildPythonApplication rec {
pname = "awsebcli"; pname = "awsebcli";
version = "3.20.10"; version = "3.20.10";
format = "setuptools"; format = "setuptools";
@ -31,7 +34,7 @@ with localPython.pkgs; buildPythonApplication rec {
substituteInPlace setup.py --replace "scripts=['bin/eb']," "" substituteInPlace setup.py --replace "scripts=['bin/eb']," ""
''; '';
nativeBuildInputs = [ nativeBuildInputs = with localPython.pkgs; [
pythonRelaxDepsHook pythonRelaxDepsHook
]; ];
@ -39,7 +42,7 @@ with localPython.pkgs; buildPythonApplication rec {
glibcLocales glibcLocales
]; ];
propagatedBuildInputs = [ propagatedBuildInputs = with localPython.pkgs; [
blessed blessed
botocore botocore
cement cement
@ -64,7 +67,7 @@ with localPython.pkgs; buildPythonApplication rec {
"termcolor" "termcolor"
]; ];
nativeCheckInputs = [ nativeCheckInputs = with localPython.pkgs; [
pytestCheckHook pytestCheckHook
pytest-socket pytest-socket
mock mock