evcc: 0.131.4 -> 0.131.5
[NixPkgs.git] / pkgs / by-name / ic / icoextract / package.nix
blob8565bff672fd614c0f34333960ed8f4c2e97d961
2   lib,
3   python3Packages,
4   fetchFromGitHub,
5 }:
7 python3Packages.buildPythonApplication rec {
8   pname = "icoextract";
9   version = "0.1.5";
10   pyproject = true;
12   src = fetchFromGitHub {
13     owner = "jlu5";
14     repo = "icoextract";
15     rev = version;
16     hash = "sha256-McVG8966NCEpzc9biawLvUgbQUtterkIud/9GwOeltI=";
17   };
19   build-system = with python3Packages; [ setuptools ];
21   dependencies = with python3Packages; [
22     pefile
23     pillow
24   ];
26   # tests expect mingw and multiarch
27   doCheck = false;
29   pythonImportsCheck = [ "icoextract" ];
31   postInstall = ''
32     substituteInPlace exe-thumbnailer.thumbnailer \
33       --replace Exec=exe-thumbnailer Exec=$out/bin/exe-thumbnailer
35     install -Dm644 exe-thumbnailer.thumbnailer -t $out/share/thumbnailers
36   '';
38   meta = with lib; {
39     description = "Extract icons from Windows PE files";
40     homepage = "https://github.com/jlu5/icoextract";
41     changelog = "https://github.com/jlu5/icoextract/blob/${version}/CHANGELOG.md";
42     license = licenses.mit;
43     maintainers = with maintainers; [
44       bryanasdev000
45       donovanglover
46     ];
47     mainProgram = "icoextract";
48   };