Commit 32c6c904 authored by Gaetan Lepage's avatar Gaetan Lepage
Browse files
parent 68c06a05
Loading
Loading
Loading
Loading
+18 −10
Original line number Diff line number Diff line
{
  lib,
  python3,
  python3Packages,
  fetchFromGitHub,
  nixosTests,
  wrapGAppsNoGuiHook,
@@ -8,24 +8,30 @@
  glib,
}:

python3.pkgs.buildPythonApplication rec {
python3Packages.buildPythonApplication rec {
  pname = "targetcli";
  version = "2.1.58";
  version = "3.0.1";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "open-iscsi";
    repo = "${pname}-fb";
    rev = "v${version}";
    hash = "sha256-9QYo7jGk9iWr26j0qPQCqYsJ+vLXAsO4Xs7+7VT9/yc=";
    repo = "targetcli-fb";
    tag = "v${version}";
    hash = "sha256-jRujBgUdeJY8ekVBDscitajDhYohlx/BS4wn+jFkZSg=";
  };

  build-system = with python3Packages; [
    hatch-vcs
    hatchling
  ];

  nativeBuildInputs = [
    wrapGAppsNoGuiHook
    gobject-introspection
  ];
  buildInputs = [ glib ];

  propagatedBuildInputs = with python3.pkgs; [
  dependencies = with python3Packages; [
    configshell
    rtslib-fb
    pygobject3
@@ -40,11 +46,13 @@ python3.pkgs.buildPythonApplication rec {
    inherit (nixosTests) iscsi-root;
  };

  meta = with lib; {
  meta = {
    description = "Command shell for managing the Linux LIO kernel target";
    homepage = "https://github.com/open-iscsi/targetcli-fb";
    license = licenses.asl20;
    changelog = "https://github.com/open-iscsi/targetcli-fb/releases/tag/v${version}";
    license = lib.licenses.asl20;
    maintainers = [ ];
    platforms = platforms.linux;
    platforms = lib.platforms.linux;
    mainProgram = "targetcli";
  };
}