Open sephii opened 3 years ago
There is a magickwand library available from pypi, but this doesn't seem to fix the problem. I also tried including imagemagick
via packagesExtra
, but also no success. Will investigate more, when I find some time.
Wand seems to require specific environment variables set in order to be able to load its dependencies.
Wand is already packaged in nixpkgs and there this is fixed via patch. (see nix edit nixpkgs/nixos-20.09#python3Packages.Wand
).
You can just use the sdist
provider for this package. It will take the existing nix expression and replace the source with the required version:
mach-nix.mkPython {
requirements = builtins.readFile ./requirements/dev.txt;
providers.wand = "sdist";
}
I’m getting the following error after setting up a Python shell:
Here’s the
shell.nix
file:And the requirements file:
I tried adding
providers = {"wand" = "nixpkgs";};
but I got another error ("requirements conflict").