1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
zope-event,
zope-hookable,
zope-interface,
persistent,
zope-configuration,
zope-i18nmessageid,
zope-location,
zope-proxy,
zope-security,
unittestCheckHook,
}:
buildPythonPackage rec {
pname = "zope-component";
version = "7.0";
pyproject = true;
src = fetchFromGitHub {
owner = "zopefoundation";
repo = "zope.component";
tag = version;
hash = "sha256-3Hl2sm2M0we+fpdt4GSjAStLSAJ1c4Za1vfm9Bj8z8s=";
};
postPatch = ''
substituteInPlace pyproject.toml \
--replace-fail "setuptools ==" "setuptools >="
'';
build-system = [ setuptools ];
dependencies = [
zope-event
zope-hookable
zope-interface
];
optional-dependencies = {
hook = [ ];
persistentregistry = [ persistent ];
security = [
zope-location
zope-proxy
zope-security
];
zcml = [
zope-configuration
zope-i18nmessageid
];
};
pythonImportsCheck = [ "zope.component" ];
nativeCheckInputs = [
unittestCheckHook
zope-configuration
];
unittestFlagsArray = [ "src/zope/component/tests" ];
# AssertionError: 'test_interface.IFoo' != 'zope.component.tests.test_interface.IFoo'
preCheck = ''
rm src/zope/component/tests/test_interface.py
'';
pythonNamespaces = [ "zope" ];
meta = {
homepage = "https://github.com/zopefoundation/zope.component";
description = "Zope Component Architecture";
changelog = "https://github.com/zopefoundation/zope.component/blob/${version}/CHANGES.rst";
license = lib.licenses.zpl21;
maintainers = [ ];
};
}
|