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.1";
13
14 src = fetchPypi {
15 inherit version;
16 pname = "z3c.checkversions";
17 hash = "sha256-j5So40SyJf7XfCz3P9YFR/6z94up3LY2/dfEmmIbxAk=";
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}