From aef84a7987026fad03dc27f3c01cec7922a50158 Mon Sep 17 00:00:00 2001 From: Anthony Roussel Date: Sun, 21 Aug 2022 22:14:33 +0200 Subject: [PATCH 1/3] python310Packages.robotsuite: fix failing build --- .../python-modules/robotsuite/default.nix | 23 +++++++++++++++---- 1 file changed, 19 insertions(+), 4 deletions(-) diff --git a/pkgs/development/python-modules/robotsuite/default.nix b/pkgs/development/python-modules/robotsuite/default.nix index 6e7897413ec2..380e8fbb68f7 100644 --- a/pkgs/development/python-modules/robotsuite/default.nix +++ b/pkgs/development/python-modules/robotsuite/default.nix @@ -1,5 +1,10 @@ -{ lib, buildPythonPackage, fetchPypi -, unittest2, lxml, robotframework +{ lib +, buildPythonPackage +, fetchPypi +, unittest2 +, lxml +, robotframework +, pytestCheckHook }: buildPythonPackage rec { @@ -11,14 +16,24 @@ buildPythonPackage rec { sha256 = "sha256-iugVKUPl6HTTO8K1EbSqAk1fl/fsEPoOcsOnnAgcEas="; }; - buildInputs = [ unittest2 ]; - propagatedBuildInputs = [ robotframework lxml ]; + buildInputs = [ + unittest2 + ]; + + propagatedBuildInputs = [ + robotframework + lxml + ]; postPatch = '' substituteInPlace setup.py \ --replace robotframework-python3 robotframework ''; + checkInputs = [ + pytestCheckHook + ]; + meta = with lib; { description = "Python unittest test suite for Robot Framework"; homepage = "https://github.com/collective/robotsuite/"; From 96a8cd2bd337d31589bd2999f0ad3e5d9d1913b6 Mon Sep 17 00:00:00 2001 From: Anthony Roussel Date: Sun, 21 Aug 2022 22:28:11 +0200 Subject: [PATCH 2/3] python310Packages.robotsuite: fix stale substitute --- pkgs/development/python-modules/robotsuite/default.nix | 5 ----- 1 file changed, 5 deletions(-) diff --git a/pkgs/development/python-modules/robotsuite/default.nix b/pkgs/development/python-modules/robotsuite/default.nix index 380e8fbb68f7..cc5f6672f01b 100644 --- a/pkgs/development/python-modules/robotsuite/default.nix +++ b/pkgs/development/python-modules/robotsuite/default.nix @@ -25,11 +25,6 @@ buildPythonPackage rec { lxml ]; - postPatch = '' - substituteInPlace setup.py \ - --replace robotframework-python3 robotframework - ''; - checkInputs = [ pytestCheckHook ]; From ee08b8ce6a702bdc19cb0e6bd10af93326e328cf Mon Sep 17 00:00:00 2001 From: Anthony Roussel Date: Sun, 21 Aug 2022 22:28:55 +0200 Subject: [PATCH 3/3] python310Packages.robotsuite: fix deprecated gpl3 license --- pkgs/development/python-modules/robotsuite/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/development/python-modules/robotsuite/default.nix b/pkgs/development/python-modules/robotsuite/default.nix index cc5f6672f01b..8e51b8409421 100644 --- a/pkgs/development/python-modules/robotsuite/default.nix +++ b/pkgs/development/python-modules/robotsuite/default.nix @@ -32,6 +32,6 @@ buildPythonPackage rec { meta = with lib; { description = "Python unittest test suite for Robot Framework"; homepage = "https://github.com/collective/robotsuite/"; - license = licenses.gpl3; + license = licenses.gpl3Only; }; }