1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 setuptools, 6 pytestCheckHook, 7}: 8 9buildPythonPackage rec { 10 pname = "zope-deprecation"; 11 version = "5.1"; 12 pyproject = true; 13 14 src = fetchFromGitHub { 15 owner = "zopefoundation"; 16 repo = "zope.deprecation"; 17 tag = version; 18 hash = "sha256-5gqZuO3fGXkQl493QrvK7gl77mDteUp7tpo4DhSRI+o="; 19 }; 20 21 postPatch = '' 22 substituteInPlace pyproject.toml \ 23 --replace-fail "setuptools <= 75.6.0" "setuptools" 24 ''; 25 26 build-system = [ setuptools ]; 27 28 nativeCheckInputs = [ pytestCheckHook ]; 29 30 enabledTestPaths = [ "src/zope/deprecation/tests.py" ]; 31 32 pythonImportsCheck = [ "zope.deprecation" ]; 33 34 pythonNamespaces = [ "zope" ]; 35 36 meta = { 37 homepage = "https://github.com/zopefoundation/zope.deprecation"; 38 description = "Zope Deprecation Infrastructure"; 39 changelog = "https://github.com/zopefoundation/zope.deprecation/blob/${version}/CHANGES.rst"; 40 license = lib.licenses.zpl21; 41 maintainers = with lib.maintainers; [ ]; 42 }; 43}