diff --git a/pkgs/development/python-modules/robotframework-requests/default.nix b/pkgs/development/python-modules/robotframework-requests/default.nix index 5e33a1203038..36f9541e2397 100644 --- a/pkgs/development/python-modules/robotframework-requests/default.nix +++ b/pkgs/development/python-modules/robotframework-requests/default.nix @@ -1,28 +1,49 @@ { lib , buildPythonPackage -, fetchPypi -, unittest2 -, robotframework +, fetchFromGitHub , lxml +, pytestCheckHook +, pythonOlder , requests +, robotframework }: buildPythonPackage rec { - version = "0.9.4"; pname = "robotframework-requests"; + version = "0.9.4"; + format = "setuptools"; - src = fetchPypi { - inherit pname version; - sha256 = "sha256-4AlDuFJsOL7Vw8ZhyBPsnVohBpYb2R2gBocSwqDUnoI="; + disabled = pythonOlder "3.7"; + + src = fetchFromGitHub { + owner = "MarketSquare"; + repo = pname; + rev = "refs/tags/v${version}"; + hash = "sha256-XjcR29dH9K9XEnJZlQ4UUDI1MG92dRO1puiB6fcN58k="; }; - buildInputs = [ unittest2 ]; - propagatedBuildInputs = [ robotframework lxml requests ]; + propagatedBuildInputs = [ + lxml + requests + robotframework + ]; + + buildInputs = [ + pytestCheckHook + ]; + + pythonImportsCheck = [ + "RequestsLibrary" + ]; + + pytestFlagsArray = [ + "utests" + ]; meta = with lib; { description = "Robot Framework keyword library wrapper around the HTTP client library requests"; homepage = "https://github.com/bulkan/robotframework-requests"; license = licenses.mit; + maintainers = with maintainers; [ ]; }; - }