Unverified Commit 29b4af60 authored by Fabian Affolter's avatar Fabian Affolter Committed by GitHub
Browse files

Merge pull request #260333 from natsukium/zope-contenttype

python311Packages.zope-contenttype: 4.6 -> 5.1; rename from zope_contenttype
parents 210ef797 678b644b
Loading
Loading
Loading
Loading
+43 −0
Original line number Diff line number Diff line
{ lib
, buildPythonPackage
, fetchPypi
, pythonOlder
, setuptools
, zope_testrunner
, pytestCheckHook
}:

buildPythonPackage rec {
  pname = "zope.contenttype";
  version = "4.6";
  pname = "zope-contenttype";
  version = "5.1";
  pyproject = true;

  disabled = pythonOlder "3.7";

  src = fetchPypi {
    inherit pname version;
    hash = "sha256-NnVoeLxSWzY2TQ1b2ZovCw/TuaUND+m73Eqxs4rCOAA=";
    pname = "zope.contenttype";
    inherit version;
    hash = "sha256-AAHvG2XKZQUZBW3OUwxY0LOWlXzPBQIyPIoVSdtk0xc=";
  };

  nativeCheckInputs = [ zope_testrunner ];
  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";
    license = licenses.zpl20;
    changelog = "https://github.com/zopefoundation/zope.contenttype/blob/${version}/CHANGES.rst";
    license = licenses.zpl21;
    maintainers = with maintainers; [ goibhniu ];
  };
}
+1 −0
Original line number Diff line number Diff line
@@ -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
+1 −1
Original line number Diff line number Diff line
@@ -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 { };