blob: 1ff7cd4d66083d0962fe850643f2c763305c82bc (
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
|
{
lib,
stdenv,
buildPythonPackage,
docutils,
fetchPypi,
manuel,
pygments,
pytestCheckHook,
setuptools,
zope-testrunner,
}:
buildPythonPackage rec {
pname = "zconfig";
version = "4.2";
pyproject = true;
src = fetchPypi {
inherit pname version;
hash = "sha256-oOS1J3xM7oBgzjNaV4rEWPgsJArpaxZlkgDbxNmL/M4=";
};
patches = lib.optional stdenv.hostPlatform.isMusl ./remove-setlocale-test.patch;
postPatch = ''
substituteInPlace pyproject.toml --replace-fail 'setuptools <= 75.6.0' 'setuptools'
'';
build-system = [ setuptools ];
buildInputs = [
docutils
manuel
];
dependencies = [ zope-testrunner ];
nativeCheckInputs = [
pygments
pytestCheckHook
];
pythonImportsCheck = [ "ZConfig" ];
pytestFlags = [ "-s" ];
meta = {
description = "Structured Configuration Library";
homepage = "https://github.com/zopefoundation/ZConfig";
changelog = "https://github.com/zopefoundation/ZConfig/blob/${version}/CHANGES.rst";
license = lib.licenses.zpl21;
maintainers = [ ];
};
}
|