mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-03 21:40:12 +00:00
55 lines
1.1 KiB
Nix
55 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
python3Packages,
|
|
fetchFromGitHub,
|
|
nixosTests,
|
|
}:
|
|
|
|
python3Packages.buildPythonApplication (finalAttrs: {
|
|
pname = "stratis-cli";
|
|
version = "3.9.1";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "stratis-storage";
|
|
repo = "stratis-cli";
|
|
tag = "v${finalAttrs.version}";
|
|
hash = "sha256-XrzTFkr/VHP4eJts6wu6RhKaaMaqHWVQWHesbDSjx6A=";
|
|
};
|
|
|
|
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/integration"
|
|
];
|
|
|
|
pythonImportsCheck = [ "stratis_cli" ];
|
|
|
|
passthru.tests = nixosTests.stratis;
|
|
|
|
meta = {
|
|
description = "CLI for the Stratis project";
|
|
homepage = "https://stratis-storage.github.io";
|
|
license = lib.licenses.asl20;
|
|
maintainers = with lib.maintainers; [ nickcao ];
|
|
mainProgram = "stratis";
|
|
};
|
|
})
|