python3Packages.magic: expose version and pname

This commit is contained in:
jopejoe1 2024-12-02 23:38:00 +01:00
parent 56dcfcd9b4
commit 83ae8e7fc7

View File

@ -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}'"