summary refs log tree commit diff
path: root/pkgs/development/python-modules/icnsutil/default.nix
blob: 05c24ec7c37e792cedb9b8e49afb62da8a2c1304 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
{ lib
, python
, fetchFromGitHub
, buildPythonPackage
}:

buildPythonPackage rec {
  pname = "icnsutil";
  version = "1.0.1";

  src = fetchFromGitHub {
    owner = "relikd";
    repo = pname;
    rev = "v${version}";
    sha256 = "sha256-TfQvAbP7iCpRQg2G+ejl245NCYo9DpYwMgiwY2BuJnY=";
  };

  doCheck = true;

  checkPhase = ''
    ${python.interpreter} tests/test_icnsutil.py
    ${python.interpreter} tests/test_cli.py
  '';

  meta = {
    homepage = "https://github.com/relikd/icnsutil";
    description = "Create and extract .icns files.";
    license = lib.licenses.mit;
    maintainers = [ lib.maintainers.reckenrode ];
  };
}