Unverified Commit 5bdd046b authored by Adam C. Stephens's avatar Adam C. Stephens
Browse files

localstack: promote to top-level attribute

This is a CLI
parent 383aaa65
Loading
Loading
Loading
Loading
+13 −24
Original line number Diff line number Diff line
{
  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";
  pyproject = true;
@@ -35,12 +16,12 @@ buildPythonPackage rec {
    hash = "sha256-BsmXhTJVvRKEubDQwehsrY2jRSfvDBSH5S35CNg8vrQ=";
  };

  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";
+3 −3
Original line number Diff line number Diff line
@@ -5,8 +5,8 @@
  boto3,
  pytestCheckHook,

  # downstream dependencies
  localstack,
  # use for promoted localstack
  pkgs,
}:

buildPythonPackage rec {
@@ -39,7 +39,7 @@ buildPythonPackage rec {
  __darwinAllowLocalNetworking = true;

  passthru.tests = {
    inherit localstack;
    inherit (pkgs) localstack;
  };

  meta = with lib; {
+3 −3
Original line number Diff line number Diff line
@@ -15,8 +15,8 @@
  python-dateutil,
  tabulate,

  # Sensitive downstream dependencies
  localstack,
  # use for testing promoted localstack
  pkgs,
}:

buildPythonPackage rec {
@@ -60,7 +60,7 @@ buildPythonPackage rec {
  doCheck = false;

  passthru.tests = {
    inherit localstack;
    inherit (pkgs) localstack;
  };

  meta = {
+0 −2
Original line number Diff line number Diff line
@@ -4137,8 +4137,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 −0
Original line number Diff line number Diff line
@@ -354,6 +354,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
Loading