1{ lib 2, buildPythonPackage 3, fetchPypi 4, robotframework 5, moretools 6, path 7, six 8, zetup 9, modeled 10, pytestCheckHook 11}: 12 13buildPythonPackage rec { 14 version = "0.1rc4"; 15 pname = "robotframework-tools"; 16 17 src = fetchPypi { 18 inherit pname version; 19 sha256 = "0377ikajf6c3zcy3lc0kh4w9zmlqyplk2c2hb0yyc7h3jnfnya96"; 20 }; 21 22 nativeBuildInputs = [ zetup ]; 23 24 propagatedBuildInputs = [ 25 robotframework 26 moretools 27 path 28 six 29 modeled 30 ]; 31 32 postPatch = '' 33 # Remove upstream's selfmade approach to collect the dependencies 34 # https://github.com/userzimmermann/robotframework-tools/issues/1 35 substituteInPlace setup.py --replace \ 36 "setup_requires=SETUP_REQUIRES + (zfg.SETUP_REQUIRES or [])," "" 37 ''; 38 39 checkInputs = [ pytestCheckHook ]; 40 pytestFlagsArray = [ "test" ]; 41 pythonImportsCheck = [ "robottools" ]; 42 43 meta = with lib; { 44 description = "Python Tools for Robot Framework and Test Libraries"; 45 homepage = "https://github.com/userzimmermann/robotframework-tools"; 46 license = licenses.gpl3Plus; 47 maintainers = [ maintainers.costrouc ]; 48 }; 49}