2021-02-05 17:12:51 +00:00
|
|
|
{ lib, buildPythonPackage, fetchFromGitHub, python, robotframework, selenium, mockito, robotstatuschecker, approvaltests }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2022-02-10 20:34:41 +00:00
|
|
|
version = "6.0.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "robotframework-seleniumlibrary";
|
|
|
|
|
|
|
|
# no tests included in PyPI tarball
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "robotframework";
|
|
|
|
repo = "SeleniumLibrary";
|
|
|
|
rev = "v${version}";
|
2022-02-10 20:34:41 +00:00
|
|
|
sha256 = "1rjzz6mrx4zavcck2ry8269rf3dkvvs1qfa9ra7dkppbarrjin3f";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ robotframework selenium ];
|
|
|
|
checkInputs = [ mockito robotstatuschecker approvaltests ];
|
|
|
|
|
|
|
|
# Only execute Unit Tests. Acceptance Tests require headlesschrome, currently
|
|
|
|
# not available in nixpkgs
|
|
|
|
checkPhase = ''
|
|
|
|
${python.interpreter} utest/run.py
|
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Web testing library for Robot Framework";
|
|
|
|
homepage = "https://github.com/robotframework/SeleniumLibrary";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = [ maintainers.marsam ];
|
|
|
|
};
|
|
|
|
}
|