2022-11-20 14:47:13 -08:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, pythonOlder
|
|
|
|
, fetchFromGitHub
|
2023-11-27 11:28:11 -08:00
|
|
|
, setuptools
|
2022-11-20 14:47:13 -08:00
|
|
|
, pytest-mockito
|
|
|
|
, pytestCheckHook
|
|
|
|
, robotframework
|
2023-11-27 11:28:11 -08:00
|
|
|
, typing-extensions
|
2022-11-20 14:47:13 -08:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "robotframework-pythonlibcore";
|
2023-11-27 11:28:11 -08:00
|
|
|
version = "4.3.0";
|
2022-11-20 14:47:13 -08:00
|
|
|
|
2023-11-27 11:28:11 -08:00
|
|
|
disabled = pythonOlder "3.8";
|
2022-11-20 14:47:13 -08:00
|
|
|
|
2023-11-27 11:28:11 -08:00
|
|
|
pyproject = true;
|
2022-11-20 14:47:13 -08:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "robotframework";
|
|
|
|
repo = "PythonLibCore";
|
2023-07-22 12:42:58 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2023-11-27 11:28:11 -08:00
|
|
|
hash = "sha256-5ayOQyOhCg4nLpAyH/eQ6NYEApix0wsL2nhJzEXKJRo=";
|
2022-11-20 14:47:13 -08:00
|
|
|
};
|
|
|
|
|
2023-11-27 11:28:11 -08:00
|
|
|
nativeBuildInputs = [
|
|
|
|
setuptools
|
|
|
|
];
|
|
|
|
|
2023-01-21 12:00:00 +00:00
|
|
|
nativeCheckInputs = [
|
2022-11-20 14:47:13 -08:00
|
|
|
pytest-mockito
|
|
|
|
pytestCheckHook
|
|
|
|
robotframework
|
2023-11-27 11:28:11 -08:00
|
|
|
typing-extensions
|
2022-11-20 14:47:13 -08:00
|
|
|
];
|
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|