49 lines
1.0 KiB
Nix
49 lines
1.0 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
setuptools,
|
|
zope-interface,
|
|
zope-exceptions,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "zope-testrunner";
|
|
version = "6.6.1";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "zopefoundation";
|
|
repo = "zope.testrunner";
|
|
tag = version;
|
|
hash = "sha256-cvZXQzbIUBq99P0FYSydG1tLNBMFTTvuMvqWGaNFhJc=";
|
|
};
|
|
|
|
postPatch = ''
|
|
substituteInPlace pyproject.toml \
|
|
--replace-fail "setuptools<74" "setuptools"
|
|
'';
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
dependencies = [
|
|
zope-interface
|
|
zope-exceptions
|
|
];
|
|
|
|
pythonImportsCheck = [ "zope.testrunner" ];
|
|
|
|
doCheck = false; # custom test modifies sys.path
|
|
|
|
pythonNamespaces = [ "zope" ];
|
|
|
|
meta = {
|
|
description = "Flexible test runner with layer support";
|
|
mainProgram = "zope-testrunner";
|
|
homepage = "https://github.com/zopefoundation/zope.testrunner";
|
|
changelog = "https://github.com/zopefoundation/zope.testrunner/blob/${src.tag}/CHANGES.rst";
|
|
license = lib.licenses.zpl21;
|
|
maintainers = [ ];
|
|
};
|
|
}
|