localstack: fix build, move to toplevel, 4.0.3 -> 4.1.1 (#384156)

This commit is contained in:
Adam C. Stephens
2025-03-06 22:38:11 -05:00
committed by GitHub
7 changed files with 32 additions and 48 deletions
@@ -1,46 +1,27 @@
{
lib,
buildPythonPackage,
python3,
fetchFromGitHub,
apispec,
boto3,
build,
cachetools,
click,
cryptography,
localstack-client,
localstack-ext,
plux,
psutil,
python-dotenv,
pyyaml,
packaging,
requests,
rich,
semver,
setuptools,
setuptools-scm,
tailer,
}:
buildPythonPackage rec {
python3.pkgs.buildPythonApplication rec {
pname = "localstack";
version = "4.0.3";
version = "4.1.1";
pyproject = true;
src = fetchFromGitHub {
owner = "localstack";
repo = "localstack";
tag = "v${version}";
hash = "sha256-BsmXhTJVvRKEubDQwehsrY2jRSfvDBSH5S35CNg8vrQ=";
hash = "sha256-hITo6BAsFNGFG5N0b2N9nydGCsG7ged8/3g0sWovNYw=";
};
build-system = [
build-system = with python3.pkgs; [
setuptools
setuptools-scm
];
dependencies = [
propagatedBuildInputs = with python3.pkgs; [
apispec
boto3
build
@@ -60,7 +41,9 @@ buildPythonPackage rec {
tailer
];
pythonRelaxDeps = [ "dill" ];
pythonRelaxDeps = [
"dill"
];
pythonImportsCheck = [ "localstack" ];
@@ -76,6 +59,12 @@ buildPythonPackage rec {
runHook postCheck
'';
# Propagating dependencies leaks them through $PYTHONPATH which causes issues
# when used in nix-shell.
postFixup = ''
rm $out/nix-support/propagated-build-inputs
'';
meta = with lib; {
description = "Fully functional local Cloud stack";
homepage = "https://github.com/localstack/localstack";
@@ -1,25 +1,23 @@
{
lib,
buildPythonPackage,
fetchFromGitHub,
fetchPypi,
boto3,
pytestCheckHook,
# downstream dependencies
localstack,
# use for testing promoted localstack
pkgs,
}:
buildPythonPackage rec {
pname = "localstack-client";
version = "1.39";
version = "2.7";
format = "setuptools";
src = fetchFromGitHub {
owner = "localstack";
repo = "localstack-python-client";
# Request for proper tags: https://github.com/localstack/localstack-python-client/issues/38
rev = "f1e538ad23700e5b1afe98720404f4801475e470";
hash = "sha256-MBXTiTzCwkduJPPRN7OKaWy2q9J8xCX/GGu09tyac3A=";
src = fetchPypi {
pname = "localstack_client";
inherit version;
hash = "sha256-FJkxGZAaS8vvfDLYmbJPSliodaZ2VpPt8QZNZrimhAg=";
};
propagatedBuildInputs = [ boto3 ];
@@ -39,7 +37,7 @@ buildPythonPackage rec {
__darwinAllowLocalNetworking = true;
passthru.tests = {
inherit localstack;
inherit (pkgs) localstack;
};
meta = with lib; {
@@ -15,19 +15,19 @@
python-dateutil,
tabulate,
# Sensitive downstream dependencies
localstack,
# use for testing promoted localstack
pkgs,
}:
buildPythonPackage rec {
pname = "localstack-ext";
version = "4.0.3";
version = "4.1.1";
pyproject = true;
src = fetchPypi {
pname = "localstack_ext";
inherit version;
hash = "sha256-vivEdEk32wJln8jfhrAtygO5CEvtsdXI7sxrj0dqIdA=";
hash = "sha256-Fgblk8eL5JnF4yLeH73yGuOeH9anSu1o9H1UxcjTyco=";
};
build-system = [
@@ -60,7 +60,7 @@ buildPythonPackage rec {
doCheck = false;
passthru.tests = {
inherit localstack;
inherit (pkgs) localstack;
};
meta = {
@@ -10,7 +10,7 @@
buildPythonPackage rec {
pname = "plux";
version = "1.11.0";
version = "1.12.0";
pyproject = true;
# Tests are not available from PyPi
@@ -18,7 +18,7 @@ buildPythonPackage rec {
owner = "localstack";
repo = "plux";
tag = "v${version}";
hash = "sha256-M4N3Ccuw95OcLsWQVtITv4QShBJKliTh5QIoqji8x9o=";
hash = "sha256-2Sxn/LuiwTzByAAz7VlNLsxEiPIyJWXr86/76Anx+EU=";
};
build-system = [
-2
View File
@@ -4131,8 +4131,6 @@ with pkgs;
liquidctl = with python3Packages; toPythonApplication liquidctl;
localstack = with python3Packages; toPythonApplication localstack;
xz = callPackage ../tools/compression/xz { };
lzwolf = callPackage ../games/lzwolf { SDL2_mixer = SDL2_mixer_2_0; };
+1
View File
@@ -355,6 +355,7 @@ mapAliases ({
livestreamer = throw "'livestreamer' has been removed, as it unmaintained. A currently maintained fork is 'streamlink'."; # added 2023-11-14
livestreamer-curses = throw "'livestreamer-curses' has been removed as it, and livestreamer itself are unmaintained."; # added 2023-11-14
lmcloud = pylamarzocco; # added 2024-11-26
localstack = throw "localstack was promoted to a top-level attribute"; # added 2025-02-21
logilab_astng = throw "logilab-astng has not been released since 2013 and is unmaintained"; # added 2022-11-29
logilab_common = logilab-common; # added 2022-11-21
loo-py = loopy; # added 2022-05-03
-2
View File
@@ -7832,8 +7832,6 @@ self: super: with self; {
localimport = callPackage ../development/python-modules/localimport { };
localstack = callPackage ../development/python-modules/localstack { };
localstack-client = callPackage ../development/python-modules/localstack-client { };
localstack-ext = callPackage ../development/python-modules/localstack-ext { };