depot/third_party/nixpkgs/pkgs/development/python-modules/z3c-checkversions/default.nix
Default email f34ce41345 Project import generated by Copybara.
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
2024-07-27 08:49:29 +02:00

40 lines
908 B
Nix

{
lib,
buildPythonPackage,
fetchPypi,
python,
pythonAtLeast,
zc-buildout,
zope-testrunner,
}:
buildPythonPackage rec {
pname = "z3c-checkversions";
version = "2.1";
format = "setuptools";
# distutils usage
disabled = pythonAtLeast "3.12";
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";
mainProgram = "checkversions";
license = licenses.zpl21;
};
}