1{ stdenv, python, fetchFromGitHub }:
2
3python.pkgs.buildPythonApplication rec {
4 pname = "targetcli";
5 version = "2.1.53";
6
7 src = fetchFromGitHub {
8 owner = "open-iscsi";
9 repo = "${pname}-fb";
10 rev = "v${version}";
11 sha256 = "1qrq7y5hnghzbxgrxgl153n8jlhw31kqjbr93jsvlvhz5b3ci750";
12 };
13
14 propagatedBuildInputs = with python.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 stdenv.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}