libfdt: Rename the package to pylibfdt

The “canonical” name of the Python libfdt package, i.e. the one used on
PyPI and, hence, the one that is listed in the requirements of the
dependent modules is `pylibfdt`, but the upstream build system produced
a package called `libfdt`.

Given that, realistically, everyone will be using `pylibfdt`, as seen on
PyPI, our choices are to either patch / jailbreak the requirement in all
dependent packages, or follow PyPI and rename the package itself.

Rename the package once and for all, since it is easier than modifying
every single dependent one.

+4 -20
+3
pkgs/by-name/dt/dtc/package.nix
··· 69 69 70 70 postPatch = '' 71 71 patchShebangs setup.py 72 + 73 + # Align the name with pypi 74 + sed -i "s/name='libfdt',/name='pylibfdt',/" setup.py 72 75 ''; 73 76 74 77 # Required for installation of Python library and is innocuous otherwise.
+1 -2
pkgs/by-name/sn/snagboot/package.nix
··· 26 26 ]; 27 27 28 28 pythonRemoveDeps = [ 29 - "pylibfdt" 30 29 "swig" 31 30 ]; 32 31 ··· 40 39 pyserial 41 40 tftpy 42 41 crccheck 43 - # pylibfdt 42 + libfdt 44 43 # swig 45 44 packaging 46 45 ];
-5
pkgs/development/python-modules/dtschema/default.nix
··· 25 25 sha256 = "sha256-UJU8b9BzuuUSHRjnA6hOd1bMPNOlk4LNtrQV5aZmGhI="; 26 26 }; 27 27 28 - patches = [ 29 - # Change name of pylibfdt to libfdt 30 - ./fix_libfdt_name.patch 31 - ]; 32 - 33 28 nativeBuildInputs = [ setuptools-scm ]; 34 29 35 30 propagatedBuildInputs = [
-13
pkgs/development/python-modules/dtschema/fix_libfdt_name.patch
··· 1 - diff --git a/pyproject.toml b/pyproject.toml 2 - index 2192a68..6a7ba95 100644 3 - --- a/pyproject.toml 4 - +++ b/pyproject.toml 5 - @@ -27,7 +27,7 @@ dependencies = [ 6 - "ruamel.yaml>0.15.69", 7 - "jsonschema>=4.1.2,<4.18", 8 - "rfc3987", 9 - - "pylibfdt", 10 - + "libfdt", 11 - ] 12 - 13 - [project.scripts]