Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / icnsutil / default.nix
blob46c1fcae3facb0641c222040d98fc1898af9cb21
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , python
5 , pythonOlder
6 }:
8 buildPythonPackage rec {
9   pname = "icnsutil";
10   version = "1.1.0";
11   format = "setuptools";
13   disabled = pythonOlder "3.7";
15   src = fetchFromGitHub {
16     owner = "relikd";
17     repo = pname;
18     rev = "refs/tags/v${version}";
19     hash = "sha256-tiq8h6s2noWLBIOIWcj8jfSqJFN01ee2uoHN4aFwn7s=";
20   };
22   checkPhase = ''
23     ${python.interpreter} tests/test_icnsutil.py
24     ${python.interpreter} tests/test_cli.py
25   '';
27   pythonImportsCheck = [
28     "icnsutil"
29   ];
31   meta = with lib; {
32     description = "Create and extract .icns files";
33     homepage = "https://github.com/relikd/icnsutil";
34     changelog = "https://github.com/relikd/icnsutil/releases/tag/v${version}";
35     license = licenses.mit;
36     maintainers = with maintainers; [ reckenrode ];
37   };