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