summary refs log tree commit diff
path: root/pkgs/development/python-modules/z3c-checkversions/default.nix
blob: cf4f6f7dd1468cc038eccbd883ce9f54284a9f15 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
{ stdenv
, buildPythonPackage
, fetchPypi
, python
, zc_buildout
, zope_testrunner
}:

buildPythonPackage rec {
  pname = "z3c-checkversions";
  version = "1.1";

  src = fetchPypi {
    inherit version;
    pname = "z3c.checkversions";
    sha256 = "b45bd22ae01ed60933694fb5abede1ff71fe8ffa79b37082b2fcf38a2f0dec9d";
  };

  propagatedBuildInputs = [ zc_buildout ];
  checkInputs = [ zope_testrunner ];
  doCheck = !python.pkgs.isPy27;
  checkPhase = ''
    ${python.interpreter} -m zope.testrunner --test-path=src []
  '';

  meta = with stdenv.lib; {
    homepage = https://github.com/zopefoundation/z3c.checkversions;
    description = "Find newer package versions on PyPI";
    license = licenses.zpl21;
  };
}