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