about summary refs log tree commit diff
path: root/pkgs/development/python-modules/rtslib/default.nix
blob: d4643c8839c1c5f79a6a07f4745027dfe229cb1d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
{
  lib,
  fetchFromGitHub,
  buildPythonPackage,
  six,
  pyudev,
  pygobject3,
}:

buildPythonPackage rec {
  pname = "rtslib";
  version = "2.1.76";
  format = "setuptools";

  src = fetchFromGitHub {
    owner = "open-iscsi";
    repo = "${pname}-fb";
    rev = "refs/tags/v${version}";
    hash = "sha256-z9fpSVyv96ZoJaP0ch2A3bX/o/K23ooEpxa/OAhY6Z4=";
  };

  propagatedBuildInputs = [
    six
    pyudev
    pygobject3
  ];

  meta = with lib; {
    description = "Python object API for managing the Linux LIO kernel target";
    mainProgram = "targetctl";
    homepage = "https://github.com/open-iscsi/rtslib-fb";
    license = licenses.asl20;
    platforms = platforms.linux;
  };
}