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

Duplicity fix b2 backend #95714

Merged
merged 2 commits into from Sep 21, 2020
Merged

Conversation

Profpatsch
Copy link
Member

@Profpatsch Profpatsch commented Aug 17, 2020

Motivation for this change

The backblaze library moved into the b2sdk package.
If it’s not used, duplicity fails loading the b2:// backend.

BackendException: B2 backend requires B2 Python SDK (pip install b2sdk)

Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
  • Built on platform(s)
    • NixOS
    • macOS
    • other Linux distributions
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Determined the impact on package closure size (by running nix path-info -S before and after)
  • Ensured that relevant documentation is up to date
  • Fits CONTRIBUTING.md.

pkgs/development/python-modules/b2sdk/default.nix Outdated Show resolved Hide resolved
meta = with stdenv.lib; {
description = "Client library and utilities for access to B2 Cloud Storage (backblaze).";
homepage = "https://github.com/Backblaze/b2-sdk-python";
license = licenses.mit;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please add yourself as maintainer

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nope :)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To clarify, I have no interest in manually maintaining random python libraries that should be autogenerated from lock files. If the pythonPackages maintainers think that is the best way to use maintainer time, they can do that of course.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lock files have their own negatives such as a closure size and large lock files which need to be committed, pretty much they are only good for developer time.

And python specifically has such low average release management quality per package they need to be manually patched to make them more usable.

thoughts @FRidh ?

The backblaze library moved into the b2sdk package.
If it’s not used, duplicity fails loading the b2:// backend.

> BackendException: B2 backend requires B2 Python SDK (pip install
  b2sdk)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants