blob: fad73639a87591bee5f4e91650af72c8bb1cee63 (
plain)
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
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
python,
setuptools,
zope-i18nmessageid,
zope-interface,
zope-schema,
unittestCheckHook,
}:
buildPythonPackage rec {
pname = "zope-configuration";
version = "7.0";
pyproject = true;
src = fetchFromGitHub {
owner = "zopefoundation";
repo = "zope.configuration";
tag = version;
hash = "sha256-G87VAEqMxF5Y3LuDJnDcOox5+ngJuRhUGSj9K8c3mYY=";
};
postPatch = ''
substituteInPlace pyproject.toml \
--replace-fail "setuptools ==" "setuptools >="
'';
build-system = [ setuptools ];
dependencies = [
zope-i18nmessageid
zope-interface
zope-schema
];
pythonImportsCheck = [ "zope.configuration" ];
nativeCheckInputs = [ unittestCheckHook ];
preCheck = ''
cd $out/${python.sitePackages}/zope/
'';
unittestFlagsArray = [ "configuration/tests" ];
pythonNamespaces = [ "zope" ];
meta = {
description = "Zope Configuration Markup Language (ZCML)";
homepage = "https://github.com/zopefoundation/zope.configuration";
changelog = "https://github.com/zopefoundation/zope.configuration/blob/${version}/CHANGES.rst";
license = lib.licenses.zpl21;
maintainers = [ ];
};
}
|