biome: 1.9.2 -> 1.9.3 (#349335)
[NixPkgs.git] / pkgs / development / python-modules / robotstatuschecker / default.nix
blob927dcf59c21691be57061889a4f4e68c5953a7da
2   lib,
3   buildPythonPackage,
4   fetchFromGitHub,
5   setuptools,
6   robotframework,
7   python,
8 }:
10 buildPythonPackage rec {
11   pname = "robotstatuschecker";
12   version = "3.0.1";
13   pyproject = true;
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   };
23   postPatch = ''
24     # https://github.com/robotframework/statuschecker/issues/46
25     substituteInPlace test/tests.robot \
26       --replace-fail BuiltIn.Log Log
27   '';
29   nativeBuildInputs = [ setuptools ];
31   propagatedBuildInputs = [ robotframework ];
33   checkPhase = ''
34     runHook preCheck
36     ${python.interpreter} test/run.py
38     runHook postCheck
39   '';
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   };