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