nixpkgs/pkgs/tools/filesystems/stratis-cli/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

50 lines
1014 B
Nix
Raw Normal View History

2022-08-01 15:41:31 +00:00
{ lib
, python3Packages
, fetchFromGitHub
, nixosTests
2022-08-01 15:41:31 +00:00
}:
python3Packages.buildPythonApplication rec {
pname = "stratis-cli";
version = "3.6.0";
format = "pyproject";
2022-08-01 15:41:31 +00:00
src = fetchFromGitHub {
owner = "stratis-storage";
repo = pname;
2022-11-24 01:56:13 +00:00
rev = "v${version}";
hash = "sha256-mLmjMofdr0U+Bfnkde7lJqPXkd1ICPYdlcsOm2nOcQA=";
2022-08-01 15:41:31 +00:00
};
propagatedBuildInputs = with python3Packages; [
dbus-client-gen
dbus-python-client-gen
justbytes
2022-08-01 15:41:31 +00:00
packaging
psutil
python-dateutil
wcwidth
2022-08-01 15:41:31 +00:00
];
nativeCheckInputs = with python3Packages; [
pytestCheckHook
];
disabledTestPaths = [
# tests below require dbus daemon
"tests/whitebox/integration"
];
pythonImportsCheck = [ "stratis_cli" ];
passthru.tests = nixosTests.stratis;
2022-08-01 15:41:31 +00:00
meta = with lib; {
description = "CLI for the Stratis project";
homepage = "https://stratis-storage.github.io";
license = licenses.asl20;
maintainers = with maintainers; [ nickcao ];
2023-11-23 21:09:35 +00:00
mainProgram = "stratis";
2022-08-01 15:41:31 +00:00
};
}