nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ stdenv, lib, buildPythonPackage, fetchFromGitHub, python, robotframework, selenium, mockito, robotstatuschecker, approvaltests }:
2
3buildPythonPackage rec {
4 version = "6.0.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 = "1rjzz6mrx4zavcck2ry8269rf3dkvvs1qfa9ra7dkppbarrjin3f";
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 broken = (stdenv.isLinux && stdenv.isAarch64) || stdenv.isDarwin;
26 description = "Web testing library for Robot Framework";
27 homepage = "https://github.com/robotframework/SeleniumLibrary";
28 license = licenses.asl20;
29 maintainers = [ maintainers.marsam ];
30 };
31}