Files
nixpkgs/pkgs/development/python-modules/localstack/default.nix
T
Jörg Thalheim 5356420466 treewide: remove unused with statements from maintainer lists
$ find -type f -name '*.nix' -print0 | xargs -P "$(nproc)" -0 sed -i \
  -e 's!with lib.maintainers; \[ *\];![ ];!' \
  -e 's!with maintainers; \[ *\];![ ];!'
2024-07-29 10:06:20 +08:00

75 lines
1.4 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
apispec,
boto3,
cachetools,
click,
localstack-client,
localstack-ext,
plux,
psutil,
python-dotenv,
pyyaml,
packaging,
requests,
rich,
semver,
tailer,
}:
buildPythonPackage rec {
pname = "localstack";
version = "3.5.0";
format = "setuptools";
src = fetchFromGitHub {
owner = "localstack";
repo = "localstack";
rev = "refs/tags/v${version}";
hash = "sha256-Sd5B4+pvUwNXfP3hsqBkUoHo06YyzUGCUHzc8f77Vx4=";
};
postPatch = ''
substituteInPlace setup.cfg \
--replace "requests>=2.20.0,<2.26" "requests~=2.20" \
--replace "cachetools~=5.0.0" "cachetools~=5.0" \
--replace "boto3>=1.20,<1.25.0" "boto3~=1.20"
'';
propagatedBuildInputs = [
apispec
boto3
cachetools
click
localstack-client
localstack-ext
plux
psutil
python-dotenv
pyyaml
packaging
requests
rich
semver
tailer
];
pythonImportsCheck = [ "localstack" ];
# Test suite requires boto, which has been removed from nixpkgs
# Just do minimal test, buildPythonPackage maps checkPhase
# to installCheckPhase, so we can test that entrypoint point works.
checkPhase = ''
$out/bin/localstack --version
'';
meta = with lib; {
description = "Fully functional local Cloud stack";
homepage = "https://github.com/localstack/localstack";
license = licenses.asl20;
maintainers = [ ];
};
}