python311Packages.zope-contenttype: refactor

This commit is contained in:
natsukium
2023-10-11 11:04:56 +09:00
parent 37bf4c4dc8
commit c3cf8c3f92
@@ -1,12 +1,15 @@
{ 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 ];
};
}