-
-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
python3Packages.localstack-ext: init at 1.0.4
- Loading branch information
Jonathan Ringer
committed
Sep 13, 2022
1 parent
979bf1e
commit abcfb39
Showing
2 changed files
with
61 additions
and
0 deletions.
There are no files selected for viewing
59 changes: 59 additions & 0 deletions
59
pkgs/development/python-modules/localstack-ext/default.nix
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
{ lib | ||
, buildPythonPackage | ||
, fetchPypi | ||
, dill | ||
, dnslib | ||
, dnspython | ||
, plux | ||
, pyaes | ||
, python-jose | ||
, requests | ||
, tabulate | ||
}: | ||
|
||
buildPythonPackage rec { | ||
pname = "localstack-ext"; | ||
version = "1.0.4"; | ||
|
||
src = fetchPypi { | ||
inherit pname version; | ||
sha256 = "sha256-YNj4V/mv8gn+TEPBejgyMIuSXYmIXNjk5xruyVbf1qA="; | ||
}; | ||
|
||
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 ]; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters