Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / icoextract / default.nix
blobbeb39a32aa3935dfaba1394642c0bf65369c8d74
1 { lib, buildPythonPackage, fetchPypi, pefile, pillow}:
3 buildPythonPackage rec {
4   pname = "icoextract";
5   version = "0.1.4";
6   format = "setuptools";
8   src = fetchPypi {
9     inherit pname version;
10     extension = "tar.gz";
11     hash = "sha256-x0GEV0PUbkAzoUJgAqup9bHd7iYttGyzIZNdo8KsFyo=";
12   };
14   propagatedBuildInputs = [
15     pefile
16     pillow
17   ];
19   # tests expect mingw and multiarch
20   doCheck = false;
22   pythonImportsCheck = [
23     "icoextract"
24   ];
26   postInstall = ''
27     mkdir -p $out/share/thumbnailers
28     substituteAll ${./exe-thumbnailer.thumbnailer} $out/share/thumbnailers/exe-thumbnailer.thumbnailer
29   '';
31   meta = with lib; {
32     description = "Extract icons from Windows PE files";
33     homepage = "https://github.com/jlu5/icoextract";
34     license = licenses.mit;
35     maintainers = with maintainers; [ bryanasdev000 donovanglover ];
36   };