pythonPackages.robotsuite: enable python3 build

This commit is contained in:
rnhmjoj 2018-08-05 15:33:14 +02:00
parent beeb973b93
commit f0aa5654ee
No known key found for this signature in database
GPG Key ID: 91BE884FBA4B591A

View File

@ -1,4 +1,6 @@
{ stdenv, buildPythonPackage, fetchPypi, unittest2, robotframework, lxml }: { stdenv, buildPythonPackage, fetchPypi
, unittest2, lxml, robotframework
}:
buildPythonPackage rec { buildPythonPackage rec {
pname = "robotsuite"; pname = "robotsuite";
@ -12,6 +14,11 @@ buildPythonPackage rec {
buildInputs = [ unittest2 ]; buildInputs = [ unittest2 ];
propagatedBuildInputs = [ robotframework lxml ]; propagatedBuildInputs = [ robotframework lxml ];
postPatch = ''
substituteInPlace setup.py \
--replace robotframework-python3 robotframework
'';
meta = with stdenv.lib; { meta = with stdenv.lib; {
description = "Python unittest test suite for Robot Framework"; description = "Python unittest test suite for Robot Framework";
homepage = https://github.com/collective/robotsuite/; homepage = https://github.com/collective/robotsuite/;