Failed to build Python package due to feature full dependency

I have been trying to build scancode-toolkit and upgrade since the current build is failing.
However the after I make some changes:
50a51 added

, setuptools
55d55 removed
< , typecode-libmagic
64c64,65 changed, add
< version = “32.0.8”;


version = “32.0.6”;
pyproject = true;
66c67,72
< disabled = pythonOlder “3.7”;


disabled = pythonOlder “3.6”;

  • Changed hash

Removed
124d130
< typecode-libmagic

patches removed…

The output when I try to build (last 10 lines):
> Requirement already satisfied: colorama>=0.3.9 in /nix/store/ch9my2jbdpy0vwgqm4ds4i9jqwkjw327-python3.10-colorama-0.4.6/lib/python3.10/site-packages (from scancode-toolkit==32.0.6) (0.4.6)
> Requirement already satisfied: jinja2>=2.7.0 in /nix/store/3f2j916qrk4z41vaqaknchs1zbiihmrs-python3.10-Jinja2-3.1.2/lib/python3.10/site-packages (from scancode-toolkit==32.0.6) (3.1.2)
> Requirement already satisfied: jsonstreams>=0.5.0 in /nix/store/3kswvxgy1flgv5sgknfpfds2fv4i91wm-python3.10-jsonstreams-0.6.0/lib/python3.10/site-packages (from scancode-toolkit==32.0.6) (0.6.0)
> Requirement already satisfied: javaproperties>=0.5 in /nix/store/c2zy63z9y089bsnnc5cz0kyizxa1idrl-python3.10-javaproperties-0.8.1/lib/python3.10/site-packages (from scancode-toolkit==32.0.6) (0.8.1)
> Requirement already satisfied: jaraco.functools in /nix/store/gd383a6rmmyf05qayjl6r0pw7w6k3y1p-python3.10-jaraco.functools-3.6.0/lib/python3.10/site-packages (from scancode-toolkit==32.0.6) (3.6.0)
> Requirement already satisfied: ftfy>=6.0.0 in /nix/store/l4fddqvw9bj7jf5l0mp8jrayqyl4x1qk-python3.10-ftfy-6.1.1/lib/python3.10/site-packages (from scancode-toolkit==32.0.6) (6.1.1)
> Requirement already satisfied: lxml>=4.9.2 in /nix/store/a9i1nf28wjpgzzgfj0hp37wcq3nsi8pi-python3.10-lxml-4.9.2/lib/python3.10/site-packages (from scancode-toolkit==32.0.6) (4.9.2)
> ERROR: Could not find a version that satisfies the requirement typecode[full]>=30.0.1 (from scancode-toolkit) (from versions: none)
> ERROR: No matching distribution found for typecode[full]>=30.0.1
>
For full logs, run ‘nix-store -l /nix/store/b0l0lb13nyjs8hs2q63w9l6a6yyziy9w-python3.10-scancode-toolkit-32.0.6.drv’.

I have typecode available in pkgs and its the correct version. But I don’t know how to make this be with the full dependencies.

I have tried adding:
a)
passthru.optional-dependencies = { full = [ typecode ]; };

b)
pythonRelaxDeps = [ typecode ];
nativeBuildInputs = [
setuptools
];
But this does fix the issue. So I’m stumped and would appreciate some help.

Also, maybe my command is wrong whats the correct way to build a Python package?