python3Packages.zope-size: fix build

Fetch from GitHub, add missing test deps, relasx setuptools constraint.
This commit is contained in:
Martin Weinelt
2025-04-12 23:35:18 +02:00
parent c4b5f999ca
commit e826d0136b
@@ -1,12 +1,13 @@
{
lib,
buildPythonPackage,
fetchPypi,
fetchFromGitHub,
setuptools,
zope-i18nmessageid,
zope-interface,
unittestCheckHook,
zope-component,
zope-configuration,
zope-security,
}:
@@ -15,12 +16,18 @@ buildPythonPackage rec {
version = "5.1";
pyproject = true;
src = fetchPypi {
pname = "zope.size";
inherit version;
hash = "sha256-88OaPLxG6AnxlkGxLaFn6nzbPgWu8z9WmXOireHvgAk=";
src = fetchFromGitHub {
owner = "zopefoundation";
repo = "zope.size";
tag = version;
hash = "sha256-9r7l3RgE9gvxJ2I5rFvNn/XIztecXW3GseGeM3MzfTU=";
};
postPatch = ''
substituteInPlace pyproject.toml \
--replace-fail "setuptools <= 75.6.0" setuptools
'';
build-system = [ setuptools ];
dependencies = [
@@ -33,6 +40,7 @@ buildPythonPackage rec {
nativeCheckInputs = [
unittestCheckHook
zope-component
zope-configuration
zope-security
];