1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 setuptools,
6 click,
7 robotframework,
8 robotframework-pythonlibcore,
9 selenium,
10 approvaltests,
11 pytest-mockito,
12 pytestCheckHook,
13 robotstatuschecker,
14}:
15
16buildPythonPackage rec {
17 pname = "robotframework-seleniumlibrary";
18 version = "6.5.0";
19 pyproject = true;
20
21 # no tests included in PyPI tarball
22 src = fetchFromGitHub {
23 owner = "robotframework";
24 repo = "SeleniumLibrary";
25 rev = "refs/tags/v${version}";
26 sha256 = "sha256-sB2lWFFpCGgF0XFes84fBBvR8GF+S8aWWJoih+xBmW8=";
27 };
28
29 build-system = [ setuptools ];
30
31 dependencies = [
32 click
33 robotframework
34 robotframework-pythonlibcore
35 selenium
36 ];
37
38 nativeCheckInputs = [
39 approvaltests
40 pytest-mockito
41 pytestCheckHook
42 robotstatuschecker
43 ];
44
45 preCheck = ''
46 mkdir utest/output_dir
47 '';
48
49 meta = {
50 changelog = "https://github.com/robotframework/SeleniumLibrary/blob/${src.rev}/docs/SeleniumLibrary-${version}.rst";
51 description = "Web testing library for Robot Framework";
52 homepage = "https://github.com/robotframework/SeleniumLibrary";
53 license = lib.licenses.asl20;
54 maintainers = with lib.maintainers; [ dotlambda ];
55 };
56}