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