depot/third_party/nixpkgs/pkgs/development/python-modules/icnsutil/default.nix
Default email 94427deb9d Project import generated by Copybara.
GitOrigin-RevId: f91ee3065de91a3531329a674a45ddcb3467a650
2023-05-24 16:37:59 +03:00

38 lines
828 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 ];
};
}