1{ lib, buildPythonPackage, fetchPypi, pefile, pillow}:
2
3buildPythonPackage rec {
4 pname = "icoextract";
5 version = "0.1.4";
6
7 src = fetchPypi {
8 inherit pname version;
9 extension = "tar.gz";
10 hash = "sha256-x0GEV0PUbkAzoUJgAqup9bHd7iYttGyzIZNdo8KsFyo=";
11 };
12
13 propagatedBuildInputs = [
14 pefile
15 pillow
16 ];
17
18 # tests expect mingw and multiarch
19 doCheck = false;
20
21 pythonImportsCheck = [
22 "icoextract"
23 ];
24
25 meta = with lib; {
26 description = "Extract icons from Windows PE files";
27 homepage = "https://github.com/jlu5/icoextract";
28 license = licenses.mit;
29 maintainers = with maintainers; [ bryanasdev000 ];
30 };
31}