croc: 10.1.1 -> 10.1.3 (#364662)
[NixPkgs.git] / pkgs / development / python-modules / icnsutil / default.nix
blob6952aa33397f97971e2ad8e6b30acb001ac562fc
2   lib,
3   buildPythonPackage,
4   fetchFromGitHub,
5   python,
6   pythonOlder,
7   pillow,
8 }:
10 buildPythonPackage rec {
11   pname = "icnsutil";
12   version = "1.1.0";
13   format = "setuptools";
15   disabled = pythonOlder "3.7";
17   src = fetchFromGitHub {
18     owner = "relikd";
19     repo = pname;
20     rev = "refs/tags/v${version}";
21     hash = "sha256-tiq8h6s2noWLBIOIWcj8jfSqJFN01ee2uoHN4aFwn7s=";
22   };
24   dependencies = [ pillow ];
26   checkPhase = ''
27     ${python.interpreter} tests/test_icnsutil.py
28     ${python.interpreter} tests/test_cli.py
29   '';
31   pythonImportsCheck = [ "icnsutil" ];
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   };