Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Backport release-22.05] s3bro: remove use_2to3 #174191

Merged
merged 1 commit into from
May 23, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 23 additions & 6 deletions pkgs/tools/admin/s3bro/default.nix
Original file line number Diff line number Diff line change
@@ -1,21 +1,38 @@
{ lib, python3Packages }:
{ lib
, python3
}:

python3Packages.buildPythonPackage rec {
python3.pkgs.buildPythonApplication rec {
pname = "s3bro";
version = "2.8";
format = "setuptools";

src = python3Packages.fetchPypi {
src = python3.pkgs.fetchPypi {
inherit pname version;
sha256 = "0k25g3vch0q772f29jlghda5mjvps55h5lgwhwwbd5g2nlnrrspq";
hash = "sha256-+OqcLbXilbY4h/zRAkvRd8taVIOPyiScOAcDyPZ4RUw=";
};

propagatedBuildInputs = with python3Packages; [ boto3 botocore click termcolor ];
propagatedBuildInputs = with python3.pkgs; [
boto3
botocore
click
termcolor
];

postPatch = ''
substituteInPlace setup.py \
--replace "use_2to3=True," ""
'';

# No tests
doCheck = false;

pythonImportsCheck = [
"s3bro"
];

meta = with lib; {
description = "A handy s3 cli tool";
description = "s3 CLI tool";
homepage = "https://github.com/rsavordelli/s3bro";
license = licenses.mit;
maintainers = with maintainers; [ psyanticy ];
Expand Down