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