1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 setuptools,
6 zope-interface,
7}:
8
9buildPythonPackage rec {
10 pname = "zope-proxy";
11 version = "6.1";
12 pyproject = true;
13
14 src = fetchFromGitHub {
15 owner = "zopefoundation";
16 repo = "zope.proxy";
17 tag = version;
18 hash = "sha256-RgkUojCAfwAGv8Jek2Ucg0KMtPviwXjuiO70iisParM=";
19 };
20
21 postPatch = ''
22 substituteInPlace pyproject.toml \
23 --replace-fail "setuptools<74" "setuptools"
24 '';
25
26 build-system = [ setuptools ];
27
28 dependencies = [ zope-interface ];
29
30 # circular deps
31 doCheck = false;
32
33 pythonImportsCheck = [ "zope.proxy" ];
34
35 pythonNamespaces = [ "zope" ];
36
37 meta = {
38 homepage = "https://github.com/zopefoundation/zope.proxy";
39 description = "Generic Transparent Proxies";
40 changelog = "https://github.com/zopefoundation/zope.proxy/blob/${version}/CHANGES.rst";
41 license = lib.licenses.zpl21;
42 maintainers = [ ];
43 };
44}