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