2021-01-25 08:26:54 +00:00
|
|
|
{ lib
|
2018-10-26 17:25:27 +01:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, robotframework
|
|
|
|
, moretools
|
|
|
|
, pathpy
|
|
|
|
, six
|
2019-03-15 20:55:03 +00:00
|
|
|
, zetup
|
2019-07-16 12:59:05 +01:00
|
|
|
, modeled
|
2021-02-15 12:44:46 +00:00
|
|
|
, pytestCheckHook
|
2018-10-26 17:25:27 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2019-07-16 12:59:05 +01:00
|
|
|
version = "0.1rc4";
|
2018-10-26 17:25:27 +01:00
|
|
|
pname = "robotframework-tools";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-07-16 12:59:05 +01:00
|
|
|
sha256 = "0377ikajf6c3zcy3lc0kh4w9zmlqyplk2c2hb0yyc7h3jnfnya96";
|
2018-10-26 17:25:27 +01:00
|
|
|
};
|
|
|
|
|
2021-02-15 12:44:46 +00:00
|
|
|
nativeBuildInputs = [ zetup ];
|
2019-03-15 20:55:03 +00:00
|
|
|
|
2019-07-16 12:59:05 +01:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
robotframework
|
|
|
|
moretools
|
|
|
|
pathpy
|
|
|
|
six
|
|
|
|
modeled
|
|
|
|
];
|
|
|
|
|
2021-02-15 12:44:46 +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 [])," ""
|
2019-07-16 12:59:05 +01:00
|
|
|
'';
|
2018-10-26 17:25:27 +01:00
|
|
|
|
2021-02-15 12:44:46 +00:00
|
|
|
checkInputs = [ pytestCheckHook ];
|
|
|
|
pytestFlagsArray = [ "test" ];
|
|
|
|
pythonImportsCheck = [ "robottools" ];
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2018-10-26 17:25:27 +01:00
|
|
|
description = "Python Tools for Robot Framework and Test Libraries";
|
2021-02-15 12:44:46 +00:00
|
|
|
homepage = "https://github.com/userzimmermann/robotframework-tools";
|
|
|
|
license = licenses.gpl3Plus;
|
2019-07-16 12:59:05 +01:00
|
|
|
maintainers = [ maintainers.costrouc ];
|
2018-10-26 17:25:27 +01:00
|
|
|
};
|
|
|
|
}
|