depot/third_party/nixpkgs/pkgs/development/python-modules/z3c-checkversions/default.nix
Default email 620eecebfb Project import generated by Copybara.
GitOrigin-RevId: 2deb07f3ac4eeb5de1c12c4ba2911a2eb1f6ed61
2021-10-28 08:52:43 +02:00

31 lines
708 B
Nix

{ lib
, 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 lib; {
homepage = "https://github.com/zopefoundation/z3c.checkversions";
description = "Find newer package versions on PyPI";
license = licenses.zpl21;
};
}