I’m trying to figure out how to install black
with the daemon option in NixOS, and looking at the package definition, it looks like it needs an optional dependency to work.
passthru.optional-dependencies = {
d = [ aiohttp aiohttp-cors ];
colorama = [ colorama ];
uvloop = [ uvloop ];
};
Looking at the documentation in the Nixpkgs manual in §17.27.2.3.2. Optional extra dependencies (can’t link directly), it’s not clear how to access these through something like environment.systemPackages
or home.packages
.
Just adding black
to those lists does install blackd
but when I try to run it, it raises an ImportError exception because aiohttp
isn’t present. I also tried to add that one separately, but it doesn’t seem to find it (the same error happens).
This is the first time I’ve run into this feature (didn’t realize it was Python specific at first), and I’ve gotten pretty good about figuring out how things work, but this doesn’t seem to be clearly documented, or I’m missing something obvious.
Thanks in advance.