1{ 2 lib, 3 buildPythonPackage, 4 pythonOlder, 5 fetchFromGitHub, 6 fetchpatch2, 7 setuptools, 8 robotframework, 9 approvaltests, 10 pytest-mockito, 11 pytestCheckHook, 12 typing-extensions, 13}: 14 15buildPythonPackage rec { 16 pname = "robotframework-pythonlibcore"; 17 version = "4.4.0"; 18 19 disabled = pythonOlder "3.8"; 20 21 pyproject = true; 22 23 src = fetchFromGitHub { 24 owner = "robotframework"; 25 repo = "PythonLibCore"; 26 rev = "refs/tags/v${version}"; 27 hash = "sha256-282A4EW88z6ODSIEIIeBbN8YO491rwI4M7njI7kL3XQ="; 28 }; 29 30 patches = [ 31 (fetchpatch2 { 32 url = "https://github.com/robotframework/PythonLibCore/commit/8b756a4bd119d660109437023789bfada21bdc78.patch"; 33 hash = "sha256-4NtgkGbIj9gH9Det6VNh1MpGSGroESxQ8X2ZTeoX/zU="; 34 }) 35 ]; 36 37 build-system = [ setuptools ]; 38 39 dependencies = [ robotframework ]; 40 41 nativeCheckInputs = [ 42 approvaltests 43 pytest-mockito 44 pytestCheckHook 45 typing-extensions 46 ]; 47 48 pythonImportsCheck = [ "robotlibcore" ]; 49 50 meta = { 51 changelog = "https://github.com/robotframework/PythonLibCore/blob/${src.rev}/docs/PythonLibCore-${version}.rst"; 52 description = "Tools to ease creating larger test libraries for Robot Framework using Python"; 53 homepage = "https://github.com/robotframework/PythonLibCore"; 54 license = lib.licenses.asl20; 55 maintainers = with lib.maintainers; [ dotlambda ]; 56 }; 57}