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