targetcli: build with python3

Mostly to reduce dependency on py2, and on pythonPackages.urwid, which fails to build with py2.
This commit is contained in:
David Izquierdo 2020-08-13 16:09:48 +02:00
parent 7e2d70f449
commit b041bff2dc
No known key found for this signature in database
GPG Key ID: 45E5A418A9A427DB

View File

@ -1,6 +1,6 @@
{ stdenv, python, fetchFromGitHub }: { stdenv, python3, fetchFromGitHub }:
python.pkgs.buildPythonApplication rec { python3.pkgs.buildPythonApplication rec {
pname = "targetcli"; pname = "targetcli";
version = "2.1.53"; version = "2.1.53";
@ -11,7 +11,7 @@ python.pkgs.buildPythonApplication rec {
sha256 = "1qrq7y5hnghzbxgrxgl153n8jlhw31kqjbr93jsvlvhz5b3ci750"; sha256 = "1qrq7y5hnghzbxgrxgl153n8jlhw31kqjbr93jsvlvhz5b3ci750";
}; };
propagatedBuildInputs = with python.pkgs; [ configshell rtslib ]; propagatedBuildInputs = with python3.pkgs; [ configshell rtslib ];
postInstall = '' postInstall = ''
install -D targetcli.8 -t $out/share/man/man8/ install -D targetcli.8 -t $out/share/man/man8/