Unverified Commit 48747363 authored by Nick Cao's avatar Nick Cao
Browse files

python312Packages.zope-exceptions: modernize, add nickcao to maintainers

parent a89cc3bf
Loading
Loading
Loading
Loading
+17 −11
Original line number Diff line number Diff line
{
  lib,
  buildPythonPackage,
  fetchPypi,
  fetchFromGitHub,
  pythonOlder,
  setuptools,
  zope-interface,
@@ -12,28 +12,34 @@ buildPythonPackage rec {
  version = "5.2";
  pyproject = true;

  disabled = pythonOlder "3.7";
  disabled = pythonOlder "3.8";

  src = fetchPypi {
    pname = "zope.exceptions";
    inherit version;
    hash = "sha256-TLoySGeHc7usb6o641N98JqEOIG4n7noGsooLzuSsvM=";
  src = fetchFromGitHub {
    owner = "zopefoundation";
    repo = "zope.exceptions";
    rev = "refs/tags/${version}";
    hash = "sha256-jbzUUB6ifTfxiGEiyAmsDoDLyRVuZPgIsN8mCNJkv4Q=";
  };

  nativeBuildInputs = [ setuptools ];
  build-system = [
    setuptools
  ];

  propagatedBuildInputs = [ zope-interface ];
  dependencies = [
    setuptools
    zope-interface
  ];

  # circular deps
  doCheck = false;

  pythonImportsCheck = [ "zope.exceptions" ];

  meta = with lib; {
  meta = {
    description = "Exception interfaces and implementations";
    homepage = "https://pypi.python.org/pypi/zope.exceptions";
    changelog = "https://github.com/zopefoundation/zope.exceptions/blob/${version}/CHANGES.rst";
    license = licenses.zpl21;
    maintainers = [ ];
    license = lib.licenses.zpl21;
    maintainers = with lib.maintainers; [ nickcao ];
  };
}