1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 python, 6 pythonAtLeast, 7 zc-buildout, 8 zope-testrunner, 9}: 10 11buildPythonPackage rec { 12 pname = "z3c-checkversions"; 13 version = "3.0"; 14 format = "setuptools"; 15 16 # distutils usage 17 disabled = pythonAtLeast "3.12"; 18 19 src = fetchPypi { 20 inherit version; 21 pname = "z3c.checkversions"; 22 hash = "sha256-VMGSlocgEddBrUT0A4ihtCdhSbirWYe9FmQ0QyOGOEs="; 23 }; 24 25 propagatedBuildInputs = [ zc-buildout ]; 26 27 nativeCheckInputs = [ zope-testrunner ]; 28 29 checkPhase = '' 30 ${python.interpreter} -m zope.testrunner --test-path=src [] 31 ''; 32 33 meta = with lib; { 34 homepage = "https://github.com/zopefoundation/z3c.checkversions"; 35 changelog = "https://github.com/zopefoundation/z3c.checkversions/blob/${version}/CHANGES.rst"; 36 description = "Find newer package versions on PyPI"; 37 mainProgram = "checkversions"; 38 license = licenses.zpl21; 39 }; 40}