python312Packages.localstack: fix build
This commit is contained in:
@@ -4,8 +4,10 @@
|
|||||||
fetchFromGitHub,
|
fetchFromGitHub,
|
||||||
apispec,
|
apispec,
|
||||||
boto3,
|
boto3,
|
||||||
|
build,
|
||||||
cachetools,
|
cachetools,
|
||||||
click,
|
click,
|
||||||
|
cryptography,
|
||||||
localstack-client,
|
localstack-client,
|
||||||
localstack-ext,
|
localstack-ext,
|
||||||
plux,
|
plux,
|
||||||
@@ -22,7 +24,7 @@
|
|||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "localstack";
|
pname = "localstack";
|
||||||
version = "3.5.0";
|
version = "3.5.0";
|
||||||
format = "setuptools";
|
pyproject = true;
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "localstack";
|
owner = "localstack";
|
||||||
@@ -31,18 +33,13 @@ buildPythonPackage rec {
|
|||||||
hash = "sha256-Sd5B4+pvUwNXfP3hsqBkUoHo06YyzUGCUHzc8f77Vx4=";
|
hash = "sha256-Sd5B4+pvUwNXfP3hsqBkUoHo06YyzUGCUHzc8f77Vx4=";
|
||||||
};
|
};
|
||||||
|
|
||||||
postPatch = ''
|
dependencies = [
|
||||||
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
|
apispec
|
||||||
boto3
|
boto3
|
||||||
|
build
|
||||||
cachetools
|
cachetools
|
||||||
click
|
click
|
||||||
|
cryptography
|
||||||
localstack-client
|
localstack-client
|
||||||
localstack-ext
|
localstack-ext
|
||||||
plux
|
plux
|
||||||
@@ -56,13 +53,20 @@ buildPythonPackage rec {
|
|||||||
tailer
|
tailer
|
||||||
];
|
];
|
||||||
|
|
||||||
|
pythonRelaxDeps = [ "dill" ];
|
||||||
|
|
||||||
pythonImportsCheck = [ "localstack" ];
|
pythonImportsCheck = [ "localstack" ];
|
||||||
|
|
||||||
# Test suite requires boto, which has been removed from nixpkgs
|
# Test suite requires boto, which has been removed from nixpkgs
|
||||||
# Just do minimal test, buildPythonPackage maps checkPhase
|
# Just do minimal test, buildPythonPackage maps checkPhase
|
||||||
# to installCheckPhase, so we can test that entrypoint point works.
|
# to installCheckPhase, so we can test that entrypoint point works.
|
||||||
checkPhase = ''
|
checkPhase = ''
|
||||||
|
runHook preCheck
|
||||||
|
|
||||||
|
export HOME=$(mktemp -d)
|
||||||
$out/bin/localstack --version
|
$out/bin/localstack --version
|
||||||
|
|
||||||
|
runHook postCheck
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
|
|||||||
Reference in New Issue
Block a user