1{
2 lib,
3 fetchFromGitHub,
4 buildPythonPackage,
5 six,
6 pyudev,
7 pygobject3,
8}:
9
10buildPythonPackage rec {
11 pname = "rtslib";
12 version = "2.1.76";
13 format = "setuptools";
14
15 src = fetchFromGitHub {
16 owner = "open-iscsi";
17 repo = "${pname}-fb";
18 rev = "refs/tags/v${version}";
19 hash = "sha256-z9fpSVyv96ZoJaP0ch2A3bX/o/K23ooEpxa/OAhY6Z4=";
20 };
21
22 propagatedBuildInputs = [
23 six
24 pyudev
25 pygobject3
26 ];
27
28 meta = with lib; {
29 description = "Python object API for managing the Linux LIO kernel target";
30 mainProgram = "targetctl";
31 homepage = "https://github.com/open-iscsi/rtslib-fb";
32 license = licenses.asl20;
33 platforms = platforms.linux;
34 };
35}