backblaze-b2: add a version test
This commit is contained in:
parent
ed528caa13
commit
5ab79e192e
1 changed files with 10 additions and 1 deletions
|
@ -1,4 +1,4 @@
|
||||||
{ lib, python3Packages, fetchPypi, installShellFiles }:
|
{ lib, python3Packages, fetchPypi, installShellFiles, testers, backblaze-b2 }:
|
||||||
|
|
||||||
python3Packages.buildPythonApplication rec {
|
python3Packages.buildPythonApplication rec {
|
||||||
pname = "backblaze-b2";
|
pname = "backblaze-b2";
|
||||||
|
@ -76,6 +76,15 @@ python3Packages.buildPythonApplication rec {
|
||||||
--zsh <(${python3Packages.argcomplete}/bin/register-python-argcomplete backblaze-b2)
|
--zsh <(${python3Packages.argcomplete}/bin/register-python-argcomplete backblaze-b2)
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
passthru.tests.version = (testers.testVersion {
|
||||||
|
package = backblaze-b2;
|
||||||
|
command = "backblaze-b2 version --short";
|
||||||
|
}).overrideAttrs (old: {
|
||||||
|
# workaround the error: Permission denied: '/homeless-shelter'
|
||||||
|
# backblaze-b2 fails to create a 'b2' directory under the XDG config path
|
||||||
|
HOME = "$(mktemp -d)";
|
||||||
|
});
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Command-line tool for accessing the Backblaze B2 storage service";
|
description = "Command-line tool for accessing the Backblaze B2 storage service";
|
||||||
homepage = "https://github.com/Backblaze/B2_Command_Line_Tool";
|
homepage = "https://github.com/Backblaze/B2_Command_Line_Tool";
|
||||||
|
|
Loading…
Reference in a new issue