1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 setuptools,
6 robotframework,
7 python,
8}:
9
10buildPythonPackage rec {
11 pname = "robotstatuschecker";
12 version = "3.0.1";
13 pyproject = true;
14
15 # no tests included in PyPI tarball
16 src = fetchFromGitHub {
17 owner = "robotframework";
18 repo = "statuschecker";
19 rev = "refs/tags/v${version}";
20 hash = "sha256-yW6353gDwo/IzoWOB8oelaS6IUbvTtwwDT05yD7w6UA=";
21 };
22
23 postPatch = ''
24 # https://github.com/robotframework/statuschecker/issues/46
25 substituteInPlace test/tests.robot \
26 --replace-fail BuiltIn.Log Log
27 '';
28
29 nativeBuildInputs = [ setuptools ];
30
31 propagatedBuildInputs = [ robotframework ];
32
33 checkPhase = ''
34 runHook preCheck
35
36 ${python.interpreter} test/run.py
37
38 runHook postCheck
39 '';
40
41 meta = with lib; {
42 description = "Tool for checking that Robot Framework test cases have expected statuses and log messages";
43 homepage = "https://github.com/robotframework/statuschecker";
44 license = licenses.asl20;
45 maintainers = [ ];
46 };
47}