1{ lib, python3, fetchFromGitHub }:
2
3python3.pkgs.buildPythonApplication rec {
4 pname = "targetcli";
5 version = "2.1.54";
6
7 src = fetchFromGitHub {
8 owner = "open-iscsi";
9 repo = "${pname}-fb";
10 rev = "v${version}";
11 sha256 = "1kbbvx0lba96ynr5iwws9jpi319m4rzph4bmcj7yfb37k8mi161v";
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 meta = with lib; {
22 description = "A command shell for managing the Linux LIO kernel target";
23 homepage = "https://github.com/open-iscsi/targetcli-fb";
24 license = licenses.asl20;
25 platforms = platforms.linux;
26 };
27}