2022-09-22 12:36:57 +00:00
|
|
|
{ lib
|
|
|
|
, python3Packages
|
|
|
|
, fetchFromGitHub
|
|
|
|
, nixosTests
|
|
|
|
}:
|
|
|
|
|
|
|
|
python3Packages.buildPythonApplication rec {
|
|
|
|
pname = "stratis-cli";
|
2023-07-15 17:15:38 +00:00
|
|
|
version = "3.5.3";
|
2023-05-24 13:37:59 +00:00
|
|
|
format = "pyproject";
|
2022-09-22 12:36:57 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "stratis-storage";
|
|
|
|
repo = pname;
|
2022-12-02 08:20:57 +00:00
|
|
|
rev = "v${version}";
|
2023-07-15 17:15:38 +00:00
|
|
|
hash = "sha256-YoPi2AtP6qZPMrlxbDAD0sDEKrSBHLLRcHbNLxlXXCk=";
|
2022-09-22 12:36:57 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = with python3Packages; [
|
|
|
|
psutil
|
|
|
|
python-dateutil
|
|
|
|
wcwidth
|
|
|
|
justbytes
|
|
|
|
dbus-client-gen
|
|
|
|
dbus-python-client-gen
|
|
|
|
packaging
|
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = with python3Packages; [
|
2022-09-22 12:36:57 +00:00
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
disabledTestPaths = [
|
|
|
|
# tests below require dbus daemon
|
|
|
|
"tests/whitebox/integration"
|
|
|
|
];
|
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|