python3Packages.magic: expose version and pname

This commit is contained in:
jopejoe1
2024-12-03 19:45:11 +01:00
parent 56dcfcd9b4
commit 83ae8e7fc7
@@ -6,9 +6,7 @@
}:
buildPythonPackage {
name = pkgs.file.name;
src = pkgs.file.src;
inherit (pkgs.file) pname version src;
patchPhase = ''
substituteInPlace python/magic.py --replace "find_library('magic')" "'${pkgs.file}/lib/libmagic${stdenv.hostPlatform.extensions.sharedLibrary}'"