Unverified Commit 23553f56 authored by natsukium's avatar natsukium
Browse files

python311Packages.zope-deprecation: refactor

parent 2e701011
Loading
Loading
Loading
Loading
+20 −3
Original line number Diff line number Diff line
{ lib
, buildPythonPackage
, fetchPypi
, zope_testing
, setuptools
, pytestCheckHook
}:

buildPythonPackage rec {
  pname = "zope-deprecation";
  version = "4.4.0";
  pyproject = true;

  src = fetchPypi {
    pname = "zope.deprecation";
@@ -14,12 +16,27 @@ buildPythonPackage rec {
    sha256 = "0d453338f04bacf91bbfba545d8bcdf529aa829e67b705eac8c1a7fdce66e2df";
  };

  buildInputs = [ zope_testing ];
  nativeBuildInputs = [
    setuptools
  ];

  nativeCheckInputs = [
    pytestCheckHook
  ];

  pytestFlagsArray = [
    "src/zope/deprecation/tests.py"
  ];

  pythonImportsCheck = [
    "zope.deprecation"
  ];

  meta = with lib; {
    homepage = "https://github.com/zopefoundation/zope.deprecation";
    description = "Zope Deprecation Infrastructure";
    license = licenses.zpl20;
    changelog = "https://github.com/zopefoundation/zope.deprecation/blob/${version}/CHANGES.rst";
    license = licenses.zpl21;
    maintainers = with maintainers; [ domenkozar ];
  };