1{
2 lib,
3 fetchFromGitHub,
4 buildPythonPackage,
5
6 # build-system
7 hatchling,
8 hatch-vcs,
9
10 # dependencies
11 pyudev,
12}:
13
14buildPythonPackage rec {
15 pname = "rtslib-fb";
16 version = "2.2.3";
17 pyproject = true;
18
19 src = fetchFromGitHub {
20 owner = "open-iscsi";
21 repo = "rtslib-fb";
22 tag = "v${version}";
23 hash = "sha256-UGRQMdOkyPZWjXoJUsXuWqstb473KR+Sf9XHbjIdfJ8=";
24 };
25
26 build-system = [
27 hatchling
28 hatch-vcs
29 ];
30
31 dependencies = [
32 pyudev
33 ];
34
35 # No tests
36 doCheck = false;
37
38 meta = {
39 description = "Python object API for managing the Linux LIO kernel target";
40 homepage = "https://github.com/open-iscsi/rtslib-fb";
41 changelog = "https://github.com/open-iscsi/rtslib-fb/releases/tag/${src.tag}";
42 license = lib.licenses.asl20;
43 platforms = lib.platforms.linux;
44 mainProgram = "targetctl";
45 };
46}