Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / localstack-ext / default.nix
blobf312371afe9d6653212f13c17abd1aa75cd8104d
1 { lib
2 , buildPythonPackage
3 , fetchPypi
4 , dill
5 , dnslib
6 , dnspython
7 , plux
8 , pyaes
9 , python-jose
10 , requests
11 , tabulate
13 # Sensitive downstream dependencies
14 , localstack
17 buildPythonPackage rec {
18   pname = "localstack-ext";
19   version = "2.3.2";
21   src = fetchPypi {
22     inherit pname version;
23     hash = "sha256-Ex5ZPlteDaiyex90QumucVdTTbpp9uWiBrvw1kMr++8=";
24   };
26   postPatch = ''
27     # Avoid circular dependency
28     sed -i '/localstack>=/d' setup.cfg
30     # Pip is unable to resolve attr logic, so it will emit version as 0.0.0
31     substituteInPlace setup.cfg \
32       --replace "version = attr: localstack_ext.__version__" "version = ${version}"
33     cat setup.cfg
35     substituteInPlace setup.cfg \
36       --replace "dill==0.3.2" "dill~=0.3.0" \
37       --replace "requests>=2.20.0,<2.26" "requests~=2.20"
38   '';
40   propagatedBuildInputs = [
41     dill
42     dnslib
43     dnspython
44     plux
45     pyaes
46     python-jose
47     requests
48     tabulate
49   ];
51   pythonImportsCheck = [ "localstack_ext" ];
53   # No tests in repo
54   doCheck = false;
56   passthru.tests = {
57     inherit localstack;
58   };
60   meta = with lib; {
61     description = "Extensions for LocalStack";
62     homepage = "https://github.com/localstack/localstack";
63     license = licenses.asl20;
64     maintainers = with maintainers; [ jonringer ];
65   };