6d4aeb4377
GitOrigin-RevId: 0f213d0fee84280d8c3a97f7469b988d6fe5fcdf
48 lines
992 B
Nix
48 lines
992 B
Nix
{ lib
|
|
, python3Packages
|
|
, fetchFromGitHub
|
|
, nixosTests
|
|
}:
|
|
|
|
python3Packages.buildPythonApplication rec {
|
|
pname = "stratis-cli";
|
|
version = "3.4.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "stratis-storage";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
hash = "sha256-S0daUi0rhelip2pwcAP3WGey8BbeMa/7AgSrFfuB+cM=";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|