2022-05-23 16:55:14 +00:00
|
|
|
{ lib
|
|
|
|
, python3
|
2023-05-25 11:54:35 +00:00
|
|
|
, fetchPypi
|
2022-05-23 16:55:14 +00:00
|
|
|
}:
|
2019-12-23 16:18:23 +00:00
|
|
|
|
2022-05-23 16:55:14 +00:00
|
|
|
python3.pkgs.buildPythonApplication rec {
|
2019-12-23 16:18:23 +00:00
|
|
|
pname = "s3bro";
|
|
|
|
version = "2.8";
|
2022-05-23 16:55:14 +00:00
|
|
|
format = "setuptools";
|
2019-12-23 16:18:23 +00:00
|
|
|
|
2023-05-25 11:54:35 +00:00
|
|
|
src = fetchPypi {
|
2019-12-23 16:18:23 +00:00
|
|
|
inherit pname version;
|
2022-05-23 16:55:14 +00:00
|
|
|
hash = "sha256-+OqcLbXilbY4h/zRAkvRd8taVIOPyiScOAcDyPZ4RUw=";
|
2019-12-23 16:18:23 +00:00
|
|
|
};
|
|
|
|
|
2022-05-23 16:55:14 +00:00
|
|
|
propagatedBuildInputs = with python3.pkgs; [
|
|
|
|
boto3
|
|
|
|
botocore
|
|
|
|
click
|
|
|
|
termcolor
|
|
|
|
];
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace setup.py \
|
|
|
|
--replace "use_2to3=True," ""
|
|
|
|
'';
|
2019-12-23 16:18:23 +00:00
|
|
|
|
|
|
|
# No tests
|
|
|
|
doCheck = false;
|
|
|
|
|
2022-05-23 16:55:14 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"s3bro"
|
|
|
|
];
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2022-05-23 16:55:14 +00:00
|
|
|
description = "s3 CLI tool";
|
2024-03-19 02:14:51 +00:00
|
|
|
mainProgram = "s3bro";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/rsavordelli/s3bro";
|
2019-12-23 16:18:23 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ psyanticy ];
|
|
|
|
};
|
2020-04-01 01:11:51 +00:00
|
|
|
}
|