8e65f7f0cc
GitOrigin-RevId: 062a0c5437b68f950b081bbfc8a699d57a4ee026
31 lines
635 B
Nix
31 lines
635 B
Nix
{ 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 ];
|
|
};
|
|
}
|