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 70 postPatch = '' 71 patchShebangs setup.py 72 ''; 73 74 # Required for installation of Python library and is innocuous otherwise.
··· 69 70 postPatch = '' 71 patchShebangs setup.py 72 + 73 + # Align the name with pypi 74 + sed -i "s/name='libfdt',/name='pylibfdt',/" setup.py 75 ''; 76 77 # Required for installation of Python library and is innocuous otherwise.
+1 -2
pkgs/by-name/sn/snagboot/package.nix
··· 26 ]; 27 28 pythonRemoveDeps = [ 29 - "pylibfdt" 30 "swig" 31 ]; 32 ··· 40 pyserial 41 tftpy 42 crccheck 43 - # pylibfdt 44 # swig 45 packaging 46 ];
··· 26 ]; 27 28 pythonRemoveDeps = [ 29 "swig" 30 ]; 31 ··· 39 pyserial 40 tftpy 41 crccheck 42 + libfdt 43 # swig 44 packaging 45 ];
-5
pkgs/development/python-modules/dtschema/default.nix
··· 25 sha256 = "sha256-UJU8b9BzuuUSHRjnA6hOd1bMPNOlk4LNtrQV5aZmGhI="; 26 }; 27 28 - patches = [ 29 - # Change name of pylibfdt to libfdt 30 - ./fix_libfdt_name.patch 31 - ]; 32 - 33 nativeBuildInputs = [ setuptools-scm ]; 34 35 propagatedBuildInputs = [
··· 25 sha256 = "sha256-UJU8b9BzuuUSHRjnA6hOd1bMPNOlk4LNtrQV5aZmGhI="; 26 }; 27 28 nativeBuildInputs = [ setuptools-scm ]; 29 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]
···