blob: 797bda0d3ea40e7c10e343eea34220b58d6894b8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
{ lib
, buildPythonPackage
, pythonOlder
, fetchFromGitHub
, setuptools
, pytest-mockito
, pytestCheckHook
, robotframework
, typing-extensions
}:
buildPythonPackage rec {
pname = "robotframework-pythonlibcore";
version = "4.3.0";
disabled = pythonOlder "3.8";
pyproject = true;
src = fetchFromGitHub {
owner = "robotframework";
repo = "PythonLibCore";
rev = "refs/tags/v${version}";
hash = "sha256-5ayOQyOhCg4nLpAyH/eQ6NYEApix0wsL2nhJzEXKJRo=";
};
nativeBuildInputs = [
setuptools
];
nativeCheckInputs = [
pytest-mockito
pytestCheckHook
robotframework
typing-extensions
];
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 ];
};
}
|