1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 setuptools, 6 icdiff, 7 pprintpp, 8 pytest, 9 pytestCheckHook, 10 writableTmpDirAsHomeHook, 11}: 12 13buildPythonPackage rec { 14 pname = "pytest-icdiff"; 15 version = "0.5-unstable-2024-09-04"; 16 pyproject = true; 17 18 src = fetchFromGitHub { 19 owner = "hjwp"; 20 repo = "pytest-icdiff"; 21 rev = "6e2fb8de35e37428a9f7a268c8abb57e9ee285e5"; 22 hash = "sha256-kSeGz5IExldgi955XOEkQnc8uqxkbyvuDOdz9y3AFIY="; 23 }; 24 25 build-system = [ setuptools ]; 26 27 dependencies = [ 28 pytest 29 icdiff 30 pprintpp 31 ]; 32 33 # These are failing on the main branch; disable for now 34 disabledTests = [ 35 "test_long_dict" 36 "test_mutliline_strings_have_no_escaped_newlines" 37 ]; 38 39 nativeCheckInputs = [ 40 pytestCheckHook 41 writableTmpDirAsHomeHook 42 ]; 43 44 pythonImportsCheck = [ "pytest_icdiff" ]; 45 46 meta = { 47 description = "Better error messages in pytest assertions using icdiff"; 48 homepage = "https://github.com/hjwp/pytest-icdiff"; 49 license = lib.licenses.unlicense; 50 maintainers = with lib.maintainers; [ philiptaron ]; 51 }; 52}