Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP: blivet: init at 3.8.1 #260572

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
53 changes: 53 additions & 0 deletions pkgs/tools/filesystems/blivet/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
{ lib
, fetchPypi
, gobject-introspection
, libblockdev
, libbytesize
, parted
, python3
}:

let
pname = "blivet";
version = "3.8.1";
in
python3.pkgs.buildPythonApplication {
inherit pname version;
format = "setuptools";

src = fetchPypi {
inherit pname version;
sha256 = "sha256-cvgE1/lA24lzGj1eFSFR8w6GZaaZLUoMclzWZK9VNKU=";
};

# FIXME: unable to make tests work.
# ValueError: Namespace BlockDev not available
# Relevant Issue: https://github.com/storaged-project/blivet/issues/894
doCheck = false;

# checkPhase = ''
# runHook preCheck
# make test
# runHook postCheck
# '';

propagatedBuildInputs = [
gobject-introspection
libblockdev
libbytesize
parted
] ++ (with python3.pkgs; [
six
pyaml
pyparted
pygobject3
]);

meta = with lib; {
description = "A python module for configuration of block devices";
homepage = "https://github.com/storaged-project/blivet";
license = with lib.licenses; [ lgpl2Plus gpl2Plus ];
maintainers = with maintainers; [ jfvillablanca ];
platforms = lib.platforms.linux;
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3561,6 +3561,8 @@ with pkgs;

blackmagic-desktop-video = callPackage ../tools/video/blackmagic-desktop-video { };

blivet = callPackage ../tools/filesystems/blivet { };

blockbench-electron = callPackage ../applications/graphics/blockbench-electron { };

blocksat-cli = with python3Packages; toPythonApplication blocksat-cli;
Expand Down