Unverified Commit c3cf8c3f authored by natsukium's avatar natsukium
Browse files

python311Packages.zope-contenttype: refactor

parent 37bf4c4d
Loading
Loading
Loading
Loading
+17 −2
Original line number Diff line number Diff line
{ lib
, buildPythonPackage
, fetchPypi
, setuptools
, zope_testrunner
, pytestCheckHook
}:

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

  src = fetchPypi {
    pname = "zope.contenttype";
@@ -14,12 +17,24 @@ buildPythonPackage rec {
    hash = "sha256-NnVoeLxSWzY2TQ1b2ZovCw/TuaUND+m73Eqxs4rCOAA=";
  };

  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 ];
  };
}