2022-09-14 18:05:37 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, dill
|
|
|
|
, dnslib
|
|
|
|
, dnspython
|
|
|
|
, plux
|
|
|
|
, pyaes
|
|
|
|
, python-jose
|
|
|
|
, requests
|
|
|
|
, tabulate
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "localstack-ext";
|
2022-09-30 11:47:45 +00:00
|
|
|
version = "1.1.0";
|
2022-09-14 18:05:37 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2022-09-30 11:47:45 +00:00
|
|
|
sha256 = "sha256-EpFkam2xqRSiIhLkcBFSFKr9j0P5oRP4CIUVcjKT5gM=";
|
2022-09-14 18:05:37 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
# Avoid circular dependency
|
|
|
|
sed -i '/localstack>=/d' setup.cfg
|
|
|
|
|
|
|
|
# Pip is unable to resolve attr logic, so it will emit version as 0.0.0
|
|
|
|
substituteInPlace setup.cfg \
|
|
|
|
--replace "version = attr: localstack_ext.__version__" "version = ${version}"
|
|
|
|
cat setup.cfg
|
|
|
|
|
|
|
|
substituteInPlace setup.cfg \
|
|
|
|
--replace "dill==0.3.2" "dill~=0.3.0" \
|
|
|
|
--replace "requests>=2.20.0,<2.26" "requests~=2.20"
|
|
|
|
'';
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
dill
|
|
|
|
dnslib
|
|
|
|
dnspython
|
|
|
|
plux
|
|
|
|
pyaes
|
|
|
|
python-jose
|
|
|
|
requests
|
|
|
|
tabulate
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "localstack_ext" ];
|
|
|
|
|
|
|
|
# No tests in repo
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Extensions for LocalStack";
|
|
|
|
homepage = "https://github.com/localstack/localstack";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ jonringer ];
|
|
|
|
};
|
|
|
|
}
|