1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 setuptools,
6 zope-event,
7 zope-interface,
8 unittestCheckHook,
9 zope-component,
10 zope-testing,
11}:
12
13buildPythonPackage rec {
14 pname = "zope-lifecycleevent";
15 version = "5.1";
16 pyproject = true;
17
18 src = fetchFromGitHub {
19 owner = "zopefoundation";
20 repo = "zope.lifecycleevent";
21 tag = version;
22 hash = "sha256-vTonbZSeQxnLA6y1wAnBpobEKAs+gaAYN25dx5Fla9k=";
23 };
24
25 postPatch = ''
26 substituteInPlace pyproject.toml \
27 --replace-fail "setuptools <= 75.6.0" setuptools
28 '';
29
30 build-system = [ setuptools ];
31
32 dependencies = [
33 zope-event
34 zope-interface
35 ];
36
37 pythonImportsCheck = [
38 "zope.lifecycleevent"
39 "zope.interface"
40 ];
41
42 nativeCheckInputs = [
43 unittestCheckHook
44 zope-component
45 zope-testing
46 ];
47
48 unittestFlagsArray = [ "src/zope/lifecycleevent" ];
49
50 pythonNamespaces = [ "zope" ];
51
52 meta = {
53 homepage = "https://github.com/zopefoundation/zope.lifecycleevent";
54 description = "Object life-cycle events";
55 changelog = "https://github.com/zopefoundation/zope.lifecycleevent/blob/${src.tag}/CHANGES.rst";
56 license = lib.licenses.zpl21;
57 maintainers = [ ];
58 };
59}