1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 isPyPy, 6 setuptools, 7 pytestCheckHook, 8}: 9 10buildPythonPackage rec { 11 pname = "zope-testing"; 12 version = "5.1"; 13 pyproject = true; 14 15 src = fetchFromGitHub { 16 owner = "zopefoundation"; 17 repo = "zope.testing"; 18 tag = version; 19 hash = "sha256-G9RfRsXSzQ92HeBF5dRTI+1XEz1HM3DuB0ypZ61uHfw="; 20 }; 21 22 postPatch = '' 23 substituteInPlace pyproject.toml \ 24 --replace-fail "setuptools <= 75.6.0" setuptools 25 ''; 26 27 build-system = [ setuptools ]; 28 29 doCheck = !isPyPy; 30 31 nativeCheckInputs = [ pytestCheckHook ]; 32 33 enabledTestPaths = [ "src/zope/testing/tests.py" ]; 34 35 pythonImportsCheck = [ "zope.testing" ]; 36 37 pythonNamespaces = [ "zope" ]; 38 39 meta = { 40 description = "Zope testing helpers"; 41 homepage = "https://github.com/zopefoundation/zope.testing"; 42 changelog = "https://github.com/zopefoundation/zope.testing/blob/${version}/CHANGES.rst"; 43 license = lib.licenses.zpl21; 44 maintainers = [ ]; 45 }; 46}