diff options
Diffstat (limited to 'pkgs/tools/filesystems/stratis-cli/default.nix')
-rw-r--r-- | pkgs/tools/filesystems/stratis-cli/default.nix | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/pkgs/tools/filesystems/stratis-cli/default.nix b/pkgs/tools/filesystems/stratis-cli/default.nix new file mode 100644 index 0000000000000..813ecfa22c6de --- /dev/null +++ b/pkgs/tools/filesystems/stratis-cli/default.nix @@ -0,0 +1,36 @@ +{ lib +, python3Packages +, fetchFromGitHub +, nixosTests +}: + +python3Packages.buildPythonApplication rec { + pname = "stratis-cli"; + version = "3.2.0"; + + src = fetchFromGitHub { + owner = "stratis-storage"; + repo = pname; + rev = "v${version}"; + hash = "sha256-JQXTzvm4l/pl2T4djZ3HEdDQJdFE+I9doe8Iv5q34kw="; + }; + + propagatedBuildInputs = with python3Packages; [ + psutil + python-dateutil + wcwidth + justbytes + dbus-client-gen + dbus-python-client-gen + packaging + ]; + + 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 ]; + }; +} |