1{ lib, buildPythonPackage, fetchFromGitHub, python, robotframework, selenium, mockito, robotstatuschecker, approvaltests }: 2 3buildPythonPackage rec { 4 version = "5.1.3"; 5 pname = "robotframework-seleniumlibrary"; 6 7 # no tests included in PyPI tarball 8 src = fetchFromGitHub { 9 owner = "robotframework"; 10 repo = "SeleniumLibrary"; 11 rev = "v${version}"; 12 sha256 = "1djlrbrgd7v15xk5w90xk7iy98cr1p2g57k614gvbd298dmnf2wd"; 13 }; 14 15 propagatedBuildInputs = [ robotframework selenium ]; 16 checkInputs = [ mockito robotstatuschecker approvaltests ]; 17 18 # Only execute Unit Tests. Acceptance Tests require headlesschrome, currently 19 # not available in nixpkgs 20 checkPhase = '' 21 ${python.interpreter} utest/run.py 22 ''; 23 24 meta = with lib; { 25 description = "Web testing library for Robot Framework"; 26 homepage = "https://github.com/robotframework/SeleniumLibrary"; 27 license = licenses.asl20; 28 maintainers = [ maintainers.marsam ]; 29 }; 30}