1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 setuptools, 6 zope-testrunner, 7 unittestCheckHook, 8}: 9 10buildPythonPackage rec { 11 pname = "zope-i18nmessageid"; 12 version = "7.0"; 13 pyproject = true; 14 15 src = fetchFromGitHub { 16 owner = "zopefoundation"; 17 repo = "zope.i18nmessageid"; 18 tag = version; 19 hash = "sha256-rdTs1pNMKpPAR2CewXdg1KmI61Sw5r62OobYlJHsUaQ="; 20 }; 21 22 postPatch = '' 23 substituteInPlace pyproject.toml \ 24 --replace-fail "setuptools<74" "setuptools" 25 ''; 26 27 build-system = [ setuptools ]; 28 29 nativeCheckInputs = [ 30 unittestCheckHook 31 zope-testrunner 32 ]; 33 34 unittestFlagsArray = [ "src/zope/i18nmessageid" ]; 35 36 pythonImportsCheck = [ "zope.i18nmessageid" ]; 37 38 pythonNamespaces = [ "zope" ]; 39 40 meta = { 41 homepage = "https://github.com/zopefoundation/zope.i18nmessageid"; 42 description = "Message Identifiers for internationalization"; 43 changelog = "https://github.com/zopefoundation/zope.i18nmessageid/blob/${version}/CHANGES.rst"; 44 license = lib.licenses.zpl21; 45 maintainers = [ ]; 46 }; 47}