depot/third_party/nixpkgs/pkgs/development/python-modules/robotstatuschecker/default.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

47 lines
1 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
robotframework,
python,
}:
buildPythonPackage rec {
pname = "robotstatuschecker";
version = "3.0.1";
pyproject = true;
# no tests included in PyPI tarball
src = fetchFromGitHub {
owner = "robotframework";
repo = "statuschecker";
rev = "refs/tags/v${version}";
hash = "sha256-yW6353gDwo/IzoWOB8oelaS6IUbvTtwwDT05yD7w6UA=";
};
postPatch = ''
# https://github.com/robotframework/statuschecker/issues/46
substituteInPlace test/tests.robot \
--replace-fail BuiltIn.Log Log
'';
nativeBuildInputs = [ setuptools ];
propagatedBuildInputs = [ robotframework ];
checkPhase = ''
runHook preCheck
${python.interpreter} test/run.py
runHook postCheck
'';
meta = with lib; {
description = "Tool for checking that Robot Framework test cases have expected statuses and log messages";
homepage = "https://github.com/robotframework/statuschecker";
license = licenses.asl20;
maintainers = [ ];
};
}