2021-02-05 17:12:51 +00:00
|
|
|
{ lib
|
2020-04-24 23:36:52 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, robotframework
|
|
|
|
, moretools
|
2022-04-27 09:35:20 +00:00
|
|
|
, path
|
2020-04-24 23:36:52 +00:00
|
|
|
, six
|
|
|
|
, zetup
|
|
|
|
, modeled
|
2021-02-17 17:02:09 +00:00
|
|
|
, pytestCheckHook
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
version = "0.1rc4";
|
|
|
|
pname = "robotframework-tools";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
|
|
|
sha256 = "0377ikajf6c3zcy3lc0kh4w9zmlqyplk2c2hb0yyc7h3jnfnya96";
|
|
|
|
};
|
|
|
|
|
2021-02-17 17:02:09 +00:00
|
|
|
nativeBuildInputs = [ zetup ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
robotframework
|
|
|
|
moretools
|
2022-04-27 09:35:20 +00:00
|
|
|
path
|
2020-04-24 23:36:52 +00:00
|
|
|
six
|
|
|
|
modeled
|
|
|
|
];
|
|
|
|
|
2021-02-17 17:02:09 +00:00
|
|
|
postPatch = ''
|
|
|
|
# Remove upstream's selfmade approach to collect the dependencies
|
|
|
|
# https://github.com/userzimmermann/robotframework-tools/issues/1
|
|
|
|
substituteInPlace setup.py --replace \
|
|
|
|
"setup_requires=SETUP_REQUIRES + (zfg.SETUP_REQUIRES or [])," ""
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
2021-02-17 17:02:09 +00:00
|
|
|
checkInputs = [ pytestCheckHook ];
|
|
|
|
pytestFlagsArray = [ "test" ];
|
|
|
|
pythonImportsCheck = [ "robottools" ];
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Python Tools for Robot Framework and Test Libraries";
|
2021-02-17 17:02:09 +00:00
|
|
|
homepage = "https://github.com/userzimmermann/robotframework-tools";
|
|
|
|
license = licenses.gpl3Plus;
|
2020-04-24 23:36:52 +00:00
|
|
|
maintainers = [ maintainers.costrouc ];
|
|
|
|
};
|
|
|
|
}
|