1 { lib, python3Packages, fetchPypi }:
3 python3Packages.buildPythonApplication rec {
9 sha256 = "0d4mx98i3qhvlmr9x898mjvf827smzx6x5ji6daiwgjdlxc60mj2";
12 propagatedBuildInputs = with python3Packages; [ boto3 pytz ];
14 # The upstream package tries to install some bash shell completion scripts in /etc.
15 # Setuptools is bugged and doesn't handle --prefix properly: https://github.com/pypa/setuptools/issues/130
17 sed -i '/ data_files=/d' setup.py
18 sed -i 's|os.chmod("/etc.*|pass|' setup.py
21 # Replace upstream's s4cmd wrapper script with the built-in Nix wrapper
23 ln -fs $out/bin/s4cmd.py $out/bin/s4cmd
26 # Test suite requires an S3 bucket
30 homepage = "https://github.com/bloomreach/s4cmd";
31 description = "Super S3 command line tool";
32 license = licenses.asl20;
33 maintainers = [ maintainers.bhipple ];