Merge pull request #260333 from natsukium/zope-contenttype

python311Packages.zope-contenttype: 4.6 -> 5.1; rename from zope_contenttype
This commit is contained in:
Fabian Affolter 2023-10-15 09:56:29 +02:00 committed by GitHub
commit 29b4af600e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 45 additions and 25 deletions

View File

@ -0,0 +1,43 @@
{ lib
, buildPythonPackage
, fetchPypi
, pythonOlder
, setuptools
, zope_testrunner
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "zope-contenttype";
version = "5.1";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchPypi {
pname = "zope.contenttype";
inherit version;
hash = "sha256-AAHvG2XKZQUZBW3OUwxY0LOWlXzPBQIyPIoVSdtk0xc=";
};
nativeBuildInputs = [
setuptools
];
nativeCheckInputs = [
pytestCheckHook
zope_testrunner
];
pythonImportsCheck = [
"zope.contenttype"
];
meta = with lib; {
homepage = "https://github.com/zopefoundation/zope.contenttype";
description = "A utility module for content-type (MIME type) handling";
changelog = "https://github.com/zopefoundation/zope.contenttype/blob/${version}/CHANGES.rst";
license = licenses.zpl21;
maintainers = with maintainers; [ goibhniu ];
};
}

View File

@ -1,24 +0,0 @@
{ lib
, buildPythonPackage
, fetchPypi
, zope_testrunner
}:
buildPythonPackage rec {
pname = "zope.contenttype";
version = "4.6";
src = fetchPypi {
inherit pname version;
hash = "sha256-NnVoeLxSWzY2TQ1b2ZovCw/TuaUND+m73Eqxs4rCOAA=";
};
nativeCheckInputs = [ zope_testrunner ];
meta = with lib; {
homepage = "https://github.com/zopefoundation/zope.contenttype";
description = "A utility module for content-type (MIME type) handling";
license = licenses.zpl20;
maintainers = with maintainers; [ goibhniu ];
};
}

View File

@ -424,6 +424,7 @@ mapAliases ({
zc_buildout_nix = throw "zc_buildout_nix was pinned to a version no longer compatible with other modules";
zope_broken = throw "zope_broken has been removed because it is obsolete and not needed in zodb>=3.10"; # added 2023-07-26
zope_component = zope-component; # added 2023-07-28
zope_contenttype = zope-contenttype; # added 2023-10-11
zope_deprecation = zope-deprecation; # added 2023-10-07
zope_i18nmessageid = zope-i18nmessageid; # added 2023-07-29
zope_proxy = zope-proxy; # added 2023-10-07

View File

@ -15906,7 +15906,7 @@ self: super: with self; {
zope_configuration = callPackage ../development/python-modules/zope_configuration { };
zope_contenttype = callPackage ../development/python-modules/zope_contenttype { };
zope-contenttype = callPackage ../development/python-modules/zope-contenttype { };
zope_copy = callPackage ../development/python-modules/zope_copy { };