depot/third_party/nixpkgs/pkgs/development/python-modules/z3c-checkversions/default.nix
Default email 587713944a Project import generated by Copybara.
GitOrigin-RevId: 6143fc5eeb9c4f00163267708e26191d1e918932
2024-04-21 17:54:59 +02:00

36 lines
836 B
Nix

{ 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";
mainProgram = "checkversions";
license = licenses.zpl21;
};
}