fa5436e0a7
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
37 lines
829 B
Nix
37 lines
829 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
python,
|
|
pythonOlder,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "icnsutil";
|
|
version = "1.1.0";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "relikd";
|
|
repo = pname;
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-tiq8h6s2noWLBIOIWcj8jfSqJFN01ee2uoHN4aFwn7s=";
|
|
};
|
|
|
|
checkPhase = ''
|
|
${python.interpreter} tests/test_icnsutil.py
|
|
${python.interpreter} tests/test_cli.py
|
|
'';
|
|
|
|
pythonImportsCheck = [ "icnsutil" ];
|
|
|
|
meta = with lib; {
|
|
description = "Create and extract .icns files";
|
|
homepage = "https://github.com/relikd/icnsutil";
|
|
changelog = "https://github.com/relikd/icnsutil/releases/tag/v${version}";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ reckenrode ];
|
|
};
|
|
}
|