lol
1{ lib
2, python3Packages
3, fetchFromGitHub
4, nixosTests
5}:
6
7python3Packages.buildPythonApplication rec {
8 pname = "stratis-cli";
9 version = "3.3.0";
10
11 src = fetchFromGitHub {
12 owner = "stratis-storage";
13 repo = pname;
14 rev = "refs/tags/v${version}";
15 hash = "sha256-tS9kjXE7wn5j13PO8c3C98MpFbgmR4le/PNKoXKPKQg=";
16 };
17
18 propagatedBuildInputs = with python3Packages; [
19 psutil
20 python-dateutil
21 wcwidth
22 justbytes
23 dbus-client-gen
24 dbus-python-client-gen
25 packaging
26 ];
27
28 checkInputs = with python3Packages; [
29 pytestCheckHook
30 ];
31
32 disabledTestPaths = [
33 # tests below require dbus daemon
34 "tests/whitebox/integration"
35 "tests/whitebox/monkey_patching"
36 ];
37
38 pythonImportsCheck = [ "stratis_cli" ];
39
40 passthru.tests = nixosTests.stratis;
41
42 meta = with lib; {
43 description = "CLI for the Stratis project";
44 homepage = "https://stratis-storage.github.io";
45 license = licenses.asl20;
46 maintainers = with maintainers; [ nickcao ];
47 };
48}