567e8dfd8e
This commit was created by a combination of scripts and tools: - an ast-grep script to prefix things in meta with `lib.`, - a modified nixf-diagnose / nixf combination to remove unused `with lib;`, and - regular nixfmt. Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
41 lines
862 B
Nix
41 lines
862 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
python,
|
|
pythonOlder,
|
|
pillow,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "icnsutil";
|
|
version = "1.1.0";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "relikd";
|
|
repo = "icnsutil";
|
|
tag = "v${version}";
|
|
hash = "sha256-tiq8h6s2noWLBIOIWcj8jfSqJFN01ee2uoHN4aFwn7s=";
|
|
};
|
|
|
|
dependencies = [ pillow ];
|
|
|
|
checkPhase = ''
|
|
${python.interpreter} tests/test_icnsutil.py
|
|
${python.interpreter} tests/test_cli.py
|
|
'';
|
|
|
|
pythonImportsCheck = [ "icnsutil" ];
|
|
|
|
meta = {
|
|
description = "Create and extract .icns files";
|
|
homepage = "https://github.com/relikd/icnsutil";
|
|
changelog = "https://github.com/relikd/icnsutil/releases/tag/v${version}";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ reckenrode ];
|
|
};
|
|
}
|