1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 setuptools, 6 zope-interface, 7 zope-exceptions, 8}: 9 10buildPythonPackage rec { 11 pname = "zope-testrunner"; 12 version = "6.6.1"; 13 pyproject = true; 14 15 src = fetchFromGitHub { 16 owner = "zopefoundation"; 17 repo = "zope.testrunner"; 18 tag = version; 19 hash = "sha256-cvZXQzbIUBq99P0FYSydG1tLNBMFTTvuMvqWGaNFhJc="; 20 }; 21 22 postPatch = '' 23 substituteInPlace pyproject.toml \ 24 --replace-fail "setuptools<74" "setuptools" 25 ''; 26 27 build-system = [ setuptools ]; 28 29 dependencies = [ 30 zope-interface 31 zope-exceptions 32 ]; 33 34 pythonImportsCheck = [ "zope.testrunner" ]; 35 36 doCheck = false; # custom test modifies sys.path 37 38 pythonNamespaces = [ "zope" ]; 39 40 meta = { 41 description = "Flexible test runner with layer support"; 42 mainProgram = "zope-testrunner"; 43 homepage = "https://github.com/zopefoundation/zope.testrunner"; 44 changelog = "https://github.com/zopefoundation/zope.testrunner/blob/${src.tag}/CHANGES.rst"; 45 license = lib.licenses.zpl21; 46 maintainers = [ ]; 47 }; 48}