2022-11-02 22:02:43 +00:00
|
|
|
{ lib, buildPythonPackage, fetchFromGitHub, pycryptodome, enlighten, zstandard
|
|
|
|
, withGUI ? true
|
|
|
|
, kivy
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "nsz";
|
2023-01-20 10:41:00 +00:00
|
|
|
version = "4.2.1";
|
2022-11-02 22:02:43 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "nicoboss";
|
|
|
|
repo = pname;
|
2023-01-20 10:41:00 +00:00
|
|
|
rev = "refs/tags/${version}";
|
2023-03-15 16:39:30 +00:00
|
|
|
hash = "sha256-It815Uxxs4T9BM9EypAfPuq4Oy8rgGLpKA79m2xM8N4=";
|
2022-11-02 22:02:43 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [pycryptodome enlighten zstandard ]
|
|
|
|
++ lib.optional withGUI kivy;
|
|
|
|
|
|
|
|
# do not check, as nsz requires producation keys
|
|
|
|
# dumped from a Nintendo Switch.
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://github.com/nicoboss/nsz";
|
|
|
|
description = "NSZ - Homebrew compatible NSP/XCI compressor/decompressor";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ eyjhb ];
|
|
|
|
};
|
|
|
|
}
|