acr-cli: init at 0.14 (#359508)
[NixPkgs.git] / pkgs / by-name / st / stratis-cli / package.nix
blob799a481339d5be3935966fd7ba838f5bc2aed060
1 { lib
2 , python3Packages
3 , fetchFromGitHub
4 , nixosTests
5 }:
7 python3Packages.buildPythonApplication rec {
8   pname = "stratis-cli";
9   version = "3.7.0";
10   pyproject = true;
12   src = fetchFromGitHub {
13     owner = "stratis-storage";
14     repo = pname;
15     rev = "refs/tags/v${version}";
16     hash = "sha256-F/RP/bWf2fV1IvNbrkYX3d94om1kACNe+oJI8pXM5P4=";
17   };
19   nativeBuildInputs = with python3Packages; [
20     setuptools
21   ];
23   propagatedBuildInputs = with python3Packages; [
24     dbus-client-gen
25     dbus-python-client-gen
26     justbytes
27     packaging
28     psutil
29     python-dateutil
30     wcwidth
31   ];
33   nativeCheckInputs = with python3Packages; [
34     pytestCheckHook
35   ];
37   disabledTestPaths = [
38     # tests below require dbus daemon
39     "tests/whitebox/integration"
40   ];
42   pythonImportsCheck = [ "stratis_cli" ];
44   passthru.tests = nixosTests.stratis;
46   meta = with lib; {
47     description = "CLI for the Stratis project";
48     homepage = "https://stratis-storage.github.io";
49     license = licenses.asl20;
50     maintainers = with maintainers; [ nickcao ];
51     mainProgram = "stratis";
52   };