python314Packages.zha: do not install development tools

otherwise building a python env with zha fails like:
  pkgs.buildEnv error: two given paths contain a conflicting subpath:
    `/nix/store/n33xzvpshdigw47iq57v5m71hi90ckk1-python3.13-zigpy-2.0.0/lib/python3.13/site-packages/tools/__pycache__/__init__.cpython-313.opt-1.pyc' and
    `/nix/store/mc1zg3b3a5v2pgvip56zminvjknpx1fp-python3.13-zha-2.0.0/lib/python3.13/site-packages/tools/__pycache__/__init__.cpython-313.opt-1.pyc'
  hint: this may be caused by two different versions of the same package in buildEnv's `paths` parameter
This commit is contained in:
Sandro Jäckel
2026-07-07 00:20:34 +02:00
parent 7ecf7fdfac
commit 7e34a5e7d3
@@ -41,6 +41,9 @@ buildPythonPackage (finalAttrs: {
postPatch = ''
substituteInPlace pyproject.toml \
--replace-fail '"setuptools-git-versioning<3"' ""
# do not install development tools
rm -r tools
'';
nativeBuildInputs = [