diff options
| author | Naïm Favier <n@monade.li> | 2023-02-11 14:03:56 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-02-11 14:03:56 +0100 |
| commit | 86a387351acf96b7137f5f385d978bf3681c7239 (patch) | |
| tree | 893ce1c726bda9df7ec2e3d1649ba811563570ab /pkgs/development/python-modules/robotframework-pythonlibcore | |
| parent | 5d012c4bb21fa9bee9f34339f95ef8fffa052d56 (diff) | |
| parent | d8d4f25cd2ba0af3a7d35ebce9e05d1eb58b03f4 (diff) | |
Merge branch 'master' into nixos/hostapd
Diffstat (limited to 'pkgs/development/python-modules/robotframework-pythonlibcore')
| -rw-r--r-- | pkgs/development/python-modules/robotframework-pythonlibcore/default.nix | 44 |
1 files changed, 44 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..aa769a3037d4 --- /dev/null +++ b/pkgs/development/python-modules/robotframework-pythonlibcore/default.nix @@ -0,0 +1,44 @@ +{ lib +, buildPythonPackage +, pythonOlder +, fetchFromGitHub +, pytest-mockito +, pytestCheckHook +, robotframework +}: + +buildPythonPackage rec { + pname = "robotframework-pythonlibcore"; + version = "4.1.0"; + + disabled = pythonOlder "3.7"; + + format = "setuptools"; + + src = fetchFromGitHub { + owner = "robotframework"; + repo = "PythonLibCore"; + rev = "v${version}"; + hash = "sha256-BgnllONYJjfeKIN8BLfMw1iZrVewtXB1KN8b9KjdtK0="; + }; + + nativeCheckInputs = [ + 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 ]; + }; +} |
