Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
57 lines
1.1 KiB
Nix
57 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
python3Packages,
|
|
fetchFromGitHub,
|
|
nixosTests,
|
|
}:
|
|
|
|
python3Packages.buildPythonApplication rec {
|
|
pname = "stratis-cli";
|
|
version = "3.8.2";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "stratis-storage";
|
|
repo = "stratis-cli";
|
|
tag = "v${version}";
|
|
hash = "sha256-0evuBr3ziiWKkR0FDjZ9BXrfRpQR7JtHsm/sYE8pIbg=";
|
|
};
|
|
|
|
build-system = with python3Packages; [
|
|
setuptools
|
|
];
|
|
|
|
dependencies = with python3Packages; [
|
|
dbus-client-gen
|
|
dbus-python-client-gen
|
|
justbytes
|
|
packaging
|
|
psutil
|
|
python-dateutil
|
|
wcwidth
|
|
];
|
|
|
|
nativeCheckInputs = with python3Packages; [
|
|
pytestCheckHook
|
|
];
|
|
|
|
disabledTestPaths = [
|
|
# tests below require dbus daemon
|
|
"tests/whitebox/integration"
|
|
];
|
|
|
|
pythonImportsCheck = [ "stratis_cli" ];
|
|
|
|
env.STRATIS_STRICT_POOL_FEATURES = "1"; # required for unit tests
|
|
|
|
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 ];
|
|
mainProgram = "stratis";
|
|
};
|
|
}
|