1{ 2 lib, 3 stdenv, 4 buildPythonPackage, 5 docutils, 6 fetchPypi, 7 manuel, 8 pygments, 9 pytestCheckHook, 10 setuptools, 11 zope-testrunner, 12}: 13 14buildPythonPackage rec { 15 pname = "zconfig"; 16 version = "4.2"; 17 pyproject = true; 18 19 src = fetchPypi { 20 inherit pname version; 21 hash = "sha256-oOS1J3xM7oBgzjNaV4rEWPgsJArpaxZlkgDbxNmL/M4="; 22 }; 23 24 patches = lib.optional stdenv.hostPlatform.isMusl ./remove-setlocale-test.patch; 25 26 postPatch = '' 27 substituteInPlace pyproject.toml --replace-fail 'setuptools <= 75.6.0' 'setuptools' 28 ''; 29 30 build-system = [ setuptools ]; 31 32 buildInputs = [ 33 docutils 34 manuel 35 ]; 36 37 dependencies = [ zope-testrunner ]; 38 39 nativeCheckInputs = [ 40 pygments 41 pytestCheckHook 42 ]; 43 44 pythonImportsCheck = [ "ZConfig" ]; 45 46 pytestFlags = [ "-s" ]; 47 48 meta = { 49 description = "Structured Configuration Library"; 50 homepage = "https://github.com/zopefoundation/ZConfig"; 51 changelog = "https://github.com/zopefoundation/ZConfig/blob/${version}/CHANGES.rst"; 52 license = lib.licenses.zpl21; 53 maintainers = [ ]; 54 }; 55}