Merge pull request #266970 from natsukium/zope-testing

python311Packages.zope-testing: rename from zope_testing
This commit is contained in:
OTABI Tomoya 2023-12-03 00:39:41 +09:00 committed by GitHub
commit 483d5159c3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
12 changed files with 67 additions and 47 deletions

View File

@ -2,7 +2,7 @@
, buildPythonPackage
, fetchPypi
, zope_interface
, zope_testing
, zope-testing
}:
buildPythonPackage rec {
@ -15,7 +15,7 @@ buildPythonPackage rec {
sha256 = "a094ed7961a3dd38fcaaa69cf7a58670038acdff186360166d9e3d964b7a7323";
};
propagatedBuildInputs = [ zope_interface zope_testing ];
propagatedBuildInputs = [ zope_interface zope-testing ];
# tests fail, see https://hydra.nixos.org/build/4316603/log/raw
doCheck = false;

View File

@ -5,7 +5,7 @@
, python
, isPy27
, six
, zope_testing
, zope-testing
}:
buildPythonPackage rec {
@ -29,7 +29,7 @@ buildPythonPackage rec {
];
propagatedBuildInputs = [ six ];
nativeCheckInputs = [ zope_testing ];
nativeCheckInputs = [ zope-testing ];
meta = with lib; {
description = "A documentation builder";

View File

@ -2,7 +2,7 @@
, buildPythonPackage
, fetchPypi
, six
, zope_testing
, zope-testing
, setuptools
}:
@ -15,7 +15,7 @@ buildPythonPackage rec {
sha256 = "39bc23bbb59b765702090ad61fe579f8bd9fe1f005f4dd1c2988a5bd1a71faf0";
};
propagatedBuildInputs = [ six setuptools zope_testing ];
propagatedBuildInputs = [ six setuptools zope-testing ];
# Huge amount of testing dependencies (including Zope2)
doCheck = false;

View File

@ -1,7 +1,7 @@
{ buildPythonPackage
, fetchPypi
, mock
, zope_testing
, zope-testing
, lib
}:
@ -15,7 +15,7 @@ buildPythonPackage rec {
};
buildInputs = [ mock ];
propagatedBuildInputs = [ zope_testing ];
propagatedBuildInputs = [ zope-testing ];
meta = with lib; {
description = "Inter-process locks";

View File

@ -1,7 +1,7 @@
{ lib
, buildPythonPackage
, fetchPypi
, zope_testing
, zope-testing
}:
buildPythonPackage rec {
@ -14,7 +14,7 @@ buildPythonPackage rec {
hash = "sha256-+2AfAKyH5apYKoExXtlnaM41EygHKdP1H3kxLiuLlKw=";
};
nativeCheckInputs = [ zope_testing ];
nativeCheckInputs = [ zope-testing ];
meta = with lib; {
description = "Supports the efficient creation of hookable objects";

View File

@ -12,7 +12,7 @@
, wsgiproxy2
, six
, mock
, zope_testing
, zope-testing
, zope_testrunner
, python
}:
@ -50,7 +50,7 @@ buildPythonPackage rec {
nativeCheckInputs = [
mock
zope_testing
zope-testing
zope_testrunner
];

View File

@ -0,0 +1,49 @@
{ lib
, buildPythonPackage
, fetchPypi
, isPyPy
, setuptools
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "zope-testing";
version = "5.0.1";
pyproject = true;
src = fetchPypi {
pname = "zope.testing";
inherit version;
hash = "sha256-6HzQ2NZmVzza8TOBare5vuyAGmSoZZXBnLX+mS7z1kk=";
};
nativeBuildInputs = [
setuptools
];
doCheck = !isPyPy;
nativeCheckInputs = [
pytestCheckHook
];
pytestFlagsArray = [
"src/zope/testing/tests.py"
];
pythonImportsCheck = [
"zope.testing"
];
pythonNamespaces = [
"zope"
];
meta = with lib; {
description = "Zope testing helpers";
homepage = "https://github.com/zopefoundation/zope.testing";
changelog = "https://github.com/zopefoundation/zope.testing/blob/${version}/CHANGES.rst";
license = licenses.zpl21;
maintainers = with maintainers; [ goibhniu ];
};
}

View File

@ -4,7 +4,7 @@
, zope_location
, zope_event
, zope_interface
, zope_testing
, zope-testing
}:
buildPythonPackage rec {
@ -16,7 +16,7 @@ buildPythonPackage rec {
hash = "sha256-6tTbywM1TU5BDJo7kERR60TZAlR1Gxy97fSmGu3p+7k=";
};
propagatedBuildInputs = [ zope_location zope_event zope_interface zope_testing ];
propagatedBuildInputs = [ zope_location zope_event zope_interface zope-testing ];
# ImportError: No module named 'zope.event'
# even though zope_event has been included.

View File

@ -1,30 +0,0 @@
{ lib
, buildPythonPackage
, fetchPypi
, isPyPy
, zope_interface
, zope_exceptions
, zope_location
}:
buildPythonPackage rec {
pname = "zope.testing";
version = "5.0.1";
src = fetchPypi {
inherit pname version;
hash = "sha256-6HzQ2NZmVzza8TOBare5vuyAGmSoZZXBnLX+mS7z1kk=";
};
doCheck = !isPyPy;
propagatedBuildInputs = [ zope_interface zope_exceptions zope_location ];
meta = with lib; {
description = "Zope testing helpers";
homepage = "http://pypi.python.org/pypi/zope.testing";
license = licenses.zpl20;
maintainers = with maintainers; [ goibhniu ];
};
}

View File

@ -3,7 +3,7 @@
, fetchPypi
, zope_interface
, zope_exceptions
, zope_testing
, zope-testing
, six
}:
@ -17,7 +17,7 @@ buildPythonPackage rec {
hash = "sha256-1r1y9E6jLKpBW5bP4UFSsnhjF67xzW9IqCe2Le8Fj9Q=";
};
propagatedBuildInputs = [ zope_interface zope_exceptions zope_testing six ];
propagatedBuildInputs = [ zope_interface zope_exceptions zope-testing six ];
doCheck = false; # custom test modifies sys.path

View File

@ -474,5 +474,6 @@ mapAliases ({
zope_i18nmessageid = zope-i18nmessageid; # added 2023-07-29
zope_lifecycleevent = zope-lifecycleevent; # added 2023-10-11
zope_proxy = zope-proxy; # added 2023-10-07
zope_testing = zope-testing; # added 2023-11-12
zxing_cpp = zxing-cpp; # added 2023-11-05
})

View File

@ -16225,7 +16225,7 @@ self: super: with self; {
zope-testbrowser = callPackage ../development/python-modules/zope-testbrowser { };
zope_testing = callPackage ../development/python-modules/zope_testing { };
zope-testing = callPackage ../development/python-modules/zope-testing { };
zope_testrunner = callPackage ../development/python-modules/zope_testrunner { };