diff options
| author | Martin Weinelt <mweinelt@users.noreply.github.com> | 2022-11-21 18:43:33 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-11-21 18:43:33 +0100 |
| commit | debe1b93c9ec3651fbb57060468b9f78873468c8 (patch) | |
| tree | 5037a3f652c689ffaf5beec77caa8492df825e74 /pkgs/development/python-modules/robotframework-pythonlibcore | |
| parent | 20fc948445a6c22d4e8d5178e9a6bc6e1f5417c8 (diff) | |
| parent | 6f5527487c59421a553b76e12b4d30089a48a630 (diff) | |
Merge pull request #202104 from dotlambda/robotframework-seleniumlibrary-fix
Diffstat (limited to 'pkgs/development/python-modules/robotframework-pythonlibcore')
| -rw-r--r-- | pkgs/development/python-modules/robotframework-pythonlibcore/default.nix | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/robotframework-pythonlibcore/default.nix b/pkgs/development/python-modules/robotframework-pythonlibcore/default.nix new file mode 100644 index 000000000000..01e6a98c0228 --- /dev/null +++ b/pkgs/development/python-modules/robotframework-pythonlibcore/default.nix @@ -0,0 +1,53 @@ +{ lib +, buildPythonPackage +, pythonOlder +, fetchFromGitHub +, fetchpatch +, pytest-mockito +, pytestCheckHook +, robotframework +}: + +buildPythonPackage rec { + pname = "robotframework-pythonlibcore"; + version = "4.0.0"; + + disabled = pythonOlder "3.7"; + + format = "setuptools"; + + src = fetchFromGitHub { + owner = "robotframework"; + repo = "PythonLibCore"; + rev = "v${version}"; + hash = "sha256-86o5Lh9zWo4vUF2186dN7e8tTUu5PIxM/ZukPwNl0S8="; + }; + + patches = [ + (fetchpatch { + name = "fix-finding-version.patch"; + url = "https://github.com/robotframework/PythonLibCore/commit/84c73979e309f59de057ae6a77725ab0f468b71f.patch"; + hash = "sha256-zrjsNvXpJDLpXql200NV+QGWFLtnRVZTeAjT52dRn2s="; + }) + ]; + + checkInputs = [ + pytest-mockito + pytestCheckHook + robotframework + ]; + + preCheck = '' + export PYTHONPATH="atest:utest/helpers:$PYTHONPATH" + ''; + + pythonImportsCheck = [ "robotlibcore" ]; + + meta = { + changelog = "https://github.com/robotframework/PythonLibCore/blob/${src.rev}/docs/PythonLibCore-${version}.rst"; + description = "Tools to ease creating larger test libraries for Robot Framework using Python"; + homepage = "https://github.com/robotframework/PythonLibCore"; + license = lib.licenses.asl20; + maintainers = with lib.maintainers; [ dotlambda ]; + }; +} |
