nixpkgs/pkgs/tools/admin/s3bro/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

42 lines
721 B
Nix
Raw Normal View History

2022-05-23 16:55:14 +00:00
{ lib
, python3
, 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
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"
];
meta = with lib; {
2022-05-23 16:55:14 +00:00
description = "s3 CLI tool";
homepage = "https://github.com/rsavordelli/s3bro";
2019-12-23 16:18:23 +00:00
license = licenses.mit;
maintainers = with maintainers; [ psyanticy ];
};
}