1{ lib, fetchFromGitHub, fetchpatch, buildPythonPackage, six, pyudev, pygobject3 }: 2 3buildPythonPackage rec { 4 pname = "rtslib"; 5 version = "2.1.75"; 6 7 src = fetchFromGitHub { 8 owner = "open-iscsi"; 9 repo = "${pname}-fb"; 10 rev = "refs/tags/v${version}"; 11 sha256 = "sha256-qBlr4K+LeJIC6Hwy6dN9n/VjHIUYCy8pLlRtPvooWyE="; 12 }; 13 14 patches = [ 15 # <https://github.com/open-iscsi/rtslib-fb/pull/187> 16 (fetchpatch { 17 url = "https://github.com/zhaofengli/rtslib-fb/commit/1c3c8257940a88e65676f4333363ddf259a06723.patch"; 18 sha256 = "sha256-nDzL8pUKwKIej+6rOg7Om5AkwkClKk6qKlImbpoufz4="; 19 }) 20 ]; 21 22 propagatedBuildInputs = [ six pyudev pygobject3 ]; 23 24 meta = with lib; { 25 description = "A Python object API for managing the Linux LIO kernel target"; 26 homepage = "https://github.com/open-iscsi/rtslib-fb"; 27 license = licenses.asl20; 28 }; 29}