mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 00:12:56 +00:00
49 lines
998 B
Nix
49 lines
998 B
Nix
{ lib
|
|
, python3Packages
|
|
, fetchFromGitHub
|
|
, nixosTests
|
|
}:
|
|
|
|
python3Packages.buildPythonApplication rec {
|
|
pname = "stratis-cli";
|
|
version = "3.5.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "stratis-storage";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
hash = "sha256-IfvI8DVjm68SewHtQbhGGU1oku4eZnF7cRyeVPB/Ctk=";
|
|
};
|
|
|
|
propagatedBuildInputs = with python3Packages; [
|
|
psutil
|
|
python-dateutil
|
|
wcwidth
|
|
justbytes
|
|
dbus-client-gen
|
|
dbus-python-client-gen
|
|
packaging
|
|
];
|
|
|
|
nativeCheckInputs = with python3Packages; [
|
|
pytestCheckHook
|
|
];
|
|
|
|
disabledTestPaths = [
|
|
# tests below require dbus daemon
|
|
"tests/whitebox/integration"
|
|
"tests/whitebox/monkey_patching"
|
|
];
|
|
|
|
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 ];
|
|
};
|
|
}
|