Merge pull request #325529 from dotlambda/python3Packages.zope-testbrowser

python312Packages.zope-testbrowser: modernize
This commit is contained in:
Nick Cao 2024-07-10 18:47:20 -04:00 committed by GitHub
commit a585f9acc3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,7 +1,7 @@
{
lib,
buildPythonPackage,
fetchPypi,
fetchFromGitHub,
setuptools,
zope-interface,
zope-schema,
@ -11,7 +11,6 @@
beautifulsoup4,
soupsieve,
wsgiproxy2,
six,
mock,
zope-testing,
zope-testrunner,
@ -21,22 +20,24 @@
buildPythonPackage rec {
pname = "zope-testbrowser";
version = "7.0";
pyproject = true;
format = "setuptools";
src = fetchPypi {
pname = "zope.testbrowser";
inherit version;
sha256 = "sha256-WTbSoNd9h4HQATWP0LEUYShbAtxuOzJLhMHtkyax/z8=";
src = fetchFromGitHub {
owner = "zopefoundation";
repo = "zope.testbrowser";
rev = "refs/tags/${version}";
hash = "sha256-vGx2ObHgt4hSQe/JKZkD2/GhdtbJEAfggkM209maen4=";
};
postPatch = ''
# remove test that requires network access
substituteInPlace src/zope/testbrowser/tests/test_doctests.py \
--replace "suite.addTests(wire)" ""
--replace-fail "suite.addTests(wire)" ""
'';
propagatedBuildInputs = [
build-system = [ setuptools ];
dependencies = [
setuptools
zope-interface
zope-schema
@ -46,7 +47,6 @@ buildPythonPackage rec {
beautifulsoup4
soupsieve
wsgiproxy2
six
];
nativeCheckInputs = [
@ -68,6 +68,7 @@ buildPythonPackage rec {
];
meta = {
changelog = "https://github.com/zopefoundation/zope.testbrowser/blob/${src.rev}/CHANGES.rst";
description = "Programmable browser for functional black-box tests";
homepage = "https://github.com/zopefoundation/zope.testbrowser";
license = lib.licenses.zpl21;