about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/z3c-checkversions/default.nix
blob: 25b0fb7ba9e6a8a199112abc70d1aec38092caba (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
32
33
34
35
{ stdenv
, lib
, buildPythonPackage
, fetchPypi
, python
, zc-buildout
, zope-testrunner
}:

buildPythonPackage rec {
  pname = "z3c-checkversions";
  version = "2.1";
  format = "setuptools";

  src = fetchPypi {
    inherit version;
    pname = "z3c.checkversions";
    hash = "sha256-j5So40SyJf7XfCz3P9YFR/6z94up3LY2/dfEmmIbxAk=";
  };

  propagatedBuildInputs = [ zc-buildout ];

  nativeCheckInputs = [ zope-testrunner ];

  checkPhase = ''
    ${python.interpreter} -m zope.testrunner --test-path=src []
  '';

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