pydeconz itself was added via an overlay as follows:
self: super:
# Within the overlay we use a recursive set, though I think we can use `self` as well.
rec {
# nix-shell -p python.pkgs.my_stuff
python3 = super.python3.override {
# Careful, we're using a different self and super here!
packageOverrides = self: super: {
pydeconz = super.buildPythonPackage rec {
pname = "pydeconz";
version = "71";
# name = "${pname}-${version}";
propagatedBuildInputs = [ super.pythonPackages.aiohttp ];
doCheck = false;
src = super.fetchPypi {
inherit pname version;
sha256 = "cd7436779296ab259c1e3e02d639a5d6aa7eca300afb03bb5553a787b27e324c";
};
};
};
};
# nix-shell -p pythonPackages.my_stuff
pythonPackages = python3.pkgs;
}
nioxos-rebuild switch now complains that it encountered two built derivatives for aiohttp:
Found duplicated packages in closure for dependency āaiohttpā:
aiohttp 3.6.2 (/nix/store/3n1hb7nm7fvp49dzy23w5510xgcfjnba-python3.7-aiohttp-3.6.2/lib/python3.7/site-packages)
aiohttp 3.6.2 (/nix/store/h4p8isyy84rzrd2bk43n8nml8x6b1ygq-python3.7-aiohttp-3.6.2/lib/python3.7/site-packages)
I already tried to remove both packages and rebuild, but it always ends up with this error message.
Iām stuck with the same error after applying your suggestion. My guess is that since there exist two aiohttp derivations, Iād have to delete one of them. Unfortunately I canāt: Although I removed this
let mypy= python3.withPackages ( python-pkgs: [ python-pkgs.pydeconz ] );
in environment.systemPackages = [ mypy ];
from my configuration.nix (switch worked well), I am not able to delete the aiohttp derivation:
[moritz@monix:~]$ nix-store --delete /nix/store/h4p8isyy84rzrd2bk43n8nml8x6b1ygq-python3.7-aiohttp-3.6.2/
finding garbage collector roots...
0 store paths deleted, 0.00 MiB freed
error: cannot delete path '/nix/store/h4p8isyy84rzrd2bk43n8nml8x6b1ygq-python3.7-aiohttp-3.6.2' since it is still alive
[moritz@monix:/nix/store]$ nix-store --query --referrers /nix/store/h4p8isyy84rzrd2bk43n8nml8x6b1ygq-python3.7-aiohttp-3.6.2
/nix/store/h4p8isyy84rzrd2bk43n8nml8x6b1ygq-python3.7-aiohttp-3.6.2
/nix/store/zrsriwkk241frccgiq2w4flwhbfd9a2f-python3.7-pydeconz-71
/nix/store/rxd5yibpmdi98bay54ybrdbg31d91rk6-python3-3.7.5-env
[moritz@monix:~]$ python
python: command not found
[moritz@monix:~]$ nix-store --delete /nix/store/rxd5yibpmdi98bay54ybrdbg31d91rk6-python3-3.7.5-env/
finding garbage collector roots...
0 store paths deleted, 0.00 MiB freed
error: cannot delete path '/nix/store/rxd5yibpmdi98bay54ybrdbg31d91rk6-python3-3.7.5-env' since it is still alive
A reboot didnāt āfreeā the liveliness of /nix/store/rxd5yibpmdi98bay54ybrdbg31d91rk6-python3-3.7.5-env either.
I have same issue and channel update doesnāt help.
Found duplicated packages in closure for dependency ātomlā:
toml 0.10.2 (/nix/store/p0bhxdaw59x6p5ikzqjcmsi31jmdcdws-python3.9-toml-0.10.2/lib/python3.9/site-packages)
toml 0.10.2 (/nix/store/gmv2cfzs5i4ssnk016rhy44dn9j8mh2k-python3.9-toml-0.10.2/lib/python3.9/site-packages)
I have a packageOverrides for certifi in home-assistant to add additional trusted certificates. After this update, the build for pyjwt failed, but only if I had the packageOverrides for certifi.
python3.10-pyjwt> pythonCatchConflictsPhase
python3.10-pyjwt> Found duplicated packages in closure for dependency 'Sphinx':
python3.10-pyjwt> Sphinx 5.1.1 (/nix/store/54q3v4ihj1wasvirb9jf2zh7xg89bc67-python3.10-sphinx-5.1.1/lib/python3.10/site-packages)
python3.10-pyjwt> Sphinx 5.1.1 (/nix/store/xrv7hhjxvdmqvdpjwq4j8bmsq3ymx5m1-python3.10-sphinx-5.1.1/lib/python3.10/site-packages)
python3.10-pyjwt> Found duplicated packages in closure for dependency 'requests':
python3.10-pyjwt> requests 2.28.1 (/nix/store/2rhqi7f02g36wzbh4ymq8dnms8r7fhwq-python3.10-requests-2.28.1/lib/python3.10/site-packages)
python3.10-pyjwt> requests 2.28.1 (/nix/store/l1snk8ccljysyh7zza6mkfvmxp392czw-python3.10-requests-2.28.1/lib/python3.10/site-packages)
python3.10-pyjwt> Found duplicated packages in closure for dependency 'certifi':
python3.10-pyjwt> certifi 2022.6.15 (/nix/store/akc8dsdxn1cy8pwxs0xy9dkxqj81ryyb-python3.10-certifi-2022.06.15/lib/python3.10/site-packages)
python3.10-pyjwt> certifi 2022.6.15 (/nix/store/qpn27wlz3cdw9286cnvwf5ymr22bv42w-python3.10-certifi-2022.06.15/lib/python3.10/site-packages)
python3.10-pyjwt> Package duplicates found in closure, see above. Usually this happens if two packages depend on different version of the same dependency.