Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ stdenv, buildPythonPackage, fetchFromGitHub, python, robotframework, selenium, mockito, robotstatuschecker, approvaltests }: 2 3buildPythonPackage rec { 4 version = "3.2.0"; 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 = "106dl0qgf52wqk1xn4ghj7n2fjhaq0fh2wlnqn29aczbv5q581y3"; 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 stdenv.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}