504525a148
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
37 lines
859 B
Nix
37 lines
859 B
Nix
{ lib, buildPythonPackage, fetchPypi, pefile, pillow}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "icoextract";
|
|
version = "0.1.4";
|
|
format = "setuptools";
|
|
|
|
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 ];
|
|
};
|
|
}
|