python314Packages.zigpy: 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:14 +02:00
parent 1c536b93c3
commit 7ecf7fdfac
@@ -37,6 +37,9 @@ buildPythonPackage (finalAttrs: {
substituteInPlace pyproject.toml \
--replace-fail '"setuptools-git-versioning<2"' "" \
--replace-fail 'dynamic = ["version"]' 'version = "${finalAttrs.version}"'
# do not install development tools
rm -r tools
'';
build-system = [ setuptools ];