summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/nsz/default.nix
blob: 52bab65baa65349f49ebd48721f9fc5df79a1e5b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  pycryptodome,
  enlighten,
  zstandard,
  withGUI ? true,
  kivy,
}:

buildPythonPackage rec {
  pname = "nsz";
  version = "4.6.1";
  format = "setuptools";

  src = fetchFromGitHub {
    owner = "nicoboss";
    repo = "nsz";
    tag = version;
    hash = "sha256-ch4HzQFa95o3HMsi7R0LpPWmhN/Z9EYfrmCdUZLwPSE=";
  };

  propagatedBuildInputs = [
    pycryptodome
    enlighten
    zstandard
  ]
  ++ lib.optional withGUI kivy;

  # do not check, as nsz requires producation keys
  # dumped from a Nintendo Switch.
  doCheck = false;

  meta = {
    homepage = "https://github.com/nicoboss/nsz";
    description = "Homebrew compatible NSP/XCI compressor/decompressor";
    mainProgram = "nsz";
    changelog = "https://github.com/nicoboss/nsz/releases/tag/${version}";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ eyjhb ];
  };
}