depot/third_party/nixpkgs/pkgs/development/python-modules/localstack/default.nix
Default email 159e378cbb Project import generated by Copybara.
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
2024-09-19 17:19:46 +03:00

81 lines
1.4 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
apispec,
boto3,
build,
cachetools,
click,
cryptography,
localstack-client,
localstack-ext,
plux,
psutil,
python-dotenv,
pyyaml,
packaging,
requests,
rich,
semver,
setuptools,
tailer,
}:
buildPythonPackage rec {
pname = "localstack";
version = "3.6.0";
pyproject = true;
src = fetchFromGitHub {
owner = "localstack";
repo = "localstack";
rev = "refs/tags/v${version}";
hash = "sha256-MAECVYO6+1JqSZN8PFvHcMWizeYBUnU+7o7l48uwpv4=";
};
build-system = [ setuptools ];
dependencies = [
apispec
boto3
build
cachetools
click
cryptography
localstack-client
localstack-ext
plux
psutil
python-dotenv
pyyaml
packaging
requests
rich
semver
tailer
];
pythonRelaxDeps = [ "dill" ];
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 = ''
runHook preCheck
export HOME=$(mktemp -d)
$out/bin/localstack --version
runHook postCheck
'';
meta = with lib; {
description = "Fully functional local Cloud stack";
homepage = "https://github.com/localstack/localstack";
license = licenses.asl20;
maintainers = [ ];
};
}