base16-schemes: unstable-2024-06-21 -> unstable-2024-11-12
[NixPkgs.git] / pkgs / by-name / s3 / s3bro / package.nix
blobee35c619fb7451be0bc28ef38ae1ba4af0d10eb9
1 { lib
2 , python3
3 , fetchPypi
4 }:
6 python3.pkgs.buildPythonApplication rec {
7   pname = "s3bro";
8   version = "2.8";
9   format = "setuptools";
11   src = fetchPypi {
12     inherit pname version;
13     hash = "sha256-+OqcLbXilbY4h/zRAkvRd8taVIOPyiScOAcDyPZ4RUw=";
14   };
16   propagatedBuildInputs = with python3.pkgs; [
17     boto3
18     botocore
19     click
20     termcolor
21   ];
23   postPatch = ''
24     substituteInPlace setup.py \
25       --replace "use_2to3=True," ""
26   '';
28   # No tests
29   doCheck = false;
31   pythonImportsCheck = [
32     "s3bro"
33   ];
35   meta = with lib; {
36     description = "s3 CLI tool";
37     mainProgram = "s3bro";
38     homepage = "https://github.com/rsavordelli/s3bro";
39     license = licenses.mit;
40     maintainers = with maintainers; [ psyanticy ];
41   };