13da32182d
GitOrigin-RevId: a7855f2235a1876f97473a76151fec2afa02b287
29 lines
872 B
Nix
29 lines
872 B
Nix
{ lib, fetchFromGitHub, fetchpatch, buildPythonPackage, six, pyudev, pygobject3 }:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "rtslib";
|
|
version = "2.1.75";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "open-iscsi";
|
|
repo = "${pname}-fb";
|
|
rev = "refs/tags/v${version}";
|
|
sha256 = "sha256-qBlr4K+LeJIC6Hwy6dN9n/VjHIUYCy8pLlRtPvooWyE=";
|
|
};
|
|
|
|
patches = [
|
|
# <https://github.com/open-iscsi/rtslib-fb/pull/187>
|
|
(fetchpatch {
|
|
url = "https://github.com/zhaofengli/rtslib-fb/commit/1c3c8257940a88e65676f4333363ddf259a06723.patch";
|
|
sha256 = "sha256-nDzL8pUKwKIej+6rOg7Om5AkwkClKk6qKlImbpoufz4=";
|
|
})
|
|
];
|
|
|
|
propagatedBuildInputs = [ six pyudev pygobject3 ];
|
|
|
|
meta = with lib; {
|
|
description = "A Python object API for managing the Linux LIO kernel target";
|
|
homepage = "https://github.com/open-iscsi/rtslib-fb";
|
|
license = licenses.asl20;
|
|
};
|
|
}
|