depot/third_party/nixpkgs/pkgs/development/python-modules/icoextract/default.nix
Default email d5f4a57cbf Project import generated by Copybara.
GitOrigin-RevId: ce5e4a6ef2e59d89a971bc434ca8ca222b9c7f5e
2023-08-10 09:59:29 +02:00

36 lines
834 B
Nix

{ lib, buildPythonPackage, fetchPypi, pefile, pillow}:
buildPythonPackage rec {
pname = "icoextract";
version = "0.1.4";
src = fetchPypi {
inherit pname version;
extension = "tar.gz";
hash = "sha256-x0GEV0PUbkAzoUJgAqup9bHd7iYttGyzIZNdo8KsFyo=";
};
propagatedBuildInputs = [
pefile
pillow
];
# tests expect mingw and multiarch
doCheck = false;
pythonImportsCheck = [
"icoextract"
];
postInstall = ''
mkdir -p $out/share/thumbnailers
substituteAll ${./exe-thumbnailer.thumbnailer} $out/share/thumbnailers/exe-thumbnailer.thumbnailer
'';
meta = with lib; {
description = "Extract icons from Windows PE files";
homepage = "https://github.com/jlu5/icoextract";
license = licenses.mit;
maintainers = with maintainers; [ bryanasdev000 donovanglover ];
};
}