fa5436e0a7
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
68 lines
1.3 KiB
Nix
68 lines
1.3 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchPypi,
|
|
dill,
|
|
dnslib,
|
|
dnspython,
|
|
plux,
|
|
pyaes,
|
|
python-jose,
|
|
requests,
|
|
tabulate,
|
|
|
|
# Sensitive downstream dependencies
|
|
localstack,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "localstack-ext";
|
|
version = "2.3.2";
|
|
format = "setuptools";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-Ex5ZPlteDaiyex90QumucVdTTbpp9uWiBrvw1kMr++8=";
|
|
};
|
|
|
|
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;
|
|
|
|
passthru.tests = {
|
|
inherit localstack;
|
|
};
|
|
|
|
meta = with lib; {
|
|
description = "Extensions for LocalStack";
|
|
homepage = "https://github.com/localstack/localstack";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ jonringer ];
|
|
};
|
|
}
|