at 24.11-pre 32 lines 858 B view raw
1{ lib, python3, fetchFromGitHub, nixosTests }: 2 3python3.pkgs.buildPythonApplication rec { 4 pname = "targetcli"; 5 version = "2.1.58"; 6 7 src = fetchFromGitHub { 8 owner = "open-iscsi"; 9 repo = "${pname}-fb"; 10 rev = "v${version}"; 11 hash = "sha256-9QYo7jGk9iWr26j0qPQCqYsJ+vLXAsO4Xs7+7VT9/yc="; 12 }; 13 14 propagatedBuildInputs = with python3.pkgs; [ configshell rtslib ]; 15 16 postInstall = '' 17 install -D targetcli.8 -t $out/share/man/man8/ 18 install -D targetclid.8 -t $out/share/man/man8/ 19 ''; 20 21 passthru.tests = { 22 inherit (nixosTests) iscsi-root; 23 }; 24 25 meta = with lib; { 26 description = "A command shell for managing the Linux LIO kernel target"; 27 homepage = "https://github.com/open-iscsi/targetcli-fb"; 28 license = licenses.asl20; 29 maintainers = lib.teams.helsinki-systems.members; 30 platforms = platforms.linux; 31 }; 32}