1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 python,
6 pythonOlder,
7 pillow,
8}:
9
10buildPythonPackage rec {
11 pname = "icnsutil";
12 version = "1.1.0";
13 format = "setuptools";
14
15 disabled = pythonOlder "3.7";
16
17 src = fetchFromGitHub {
18 owner = "relikd";
19 repo = "icnsutil";
20 tag = "v${version}";
21 hash = "sha256-tiq8h6s2noWLBIOIWcj8jfSqJFN01ee2uoHN4aFwn7s=";
22 };
23
24 dependencies = [ pillow ];
25
26 checkPhase = ''
27 ${python.interpreter} tests/test_icnsutil.py
28 ${python.interpreter} tests/test_cli.py
29 '';
30
31 pythonImportsCheck = [ "icnsutil" ];
32
33 meta = with lib; {
34 description = "Create and extract .icns files";
35 homepage = "https://github.com/relikd/icnsutil";
36 changelog = "https://github.com/relikd/icnsutil/releases/tag/v${version}";
37 license = licenses.mit;
38 maintainers = with maintainers; [ reckenrode ];
39 };
40}