depot/third_party/nixpkgs/pkgs/tools/filesystems/stratis-cli/default.nix
Default email 92b3d6365d Project import generated by Copybara.
GitOrigin-RevId: 412b9917cea092f3d39f9cd5dead4effd5bc4053
2022-10-30 16:09:59 +01:00

48 lines
1,002 B
Nix

{ lib
, python3Packages
, fetchFromGitHub
, nixosTests
}:
python3Packages.buildPythonApplication rec {
pname = "stratis-cli";
version = "3.3.0";
src = fetchFromGitHub {
owner = "stratis-storage";
repo = pname;
rev = "refs/tags/v${version}";
hash = "sha256-tS9kjXE7wn5j13PO8c3C98MpFbgmR4le/PNKoXKPKQg=";
};
propagatedBuildInputs = with python3Packages; [
psutil
python-dateutil
wcwidth
justbytes
dbus-client-gen
dbus-python-client-gen
packaging
];
checkInputs = with python3Packages; [
pytestCheckHook
];
disabledTestPaths = [
# tests below require dbus daemon
"tests/whitebox/integration"
"tests/whitebox/monkey_patching"
];
pythonImportsCheck = [ "stratis_cli" ];
passthru.tests = nixosTests.stratis;
meta = with lib; {
description = "CLI for the Stratis project";
homepage = "https://stratis-storage.github.io";
license = licenses.asl20;
maintainers = with maintainers; [ nickcao ];
};
}