diff --git a/pkgs/development/python-modules/nsz/default.nix b/pkgs/development/python-modules/nsz/default.nix new file mode 100644 index 000000000000..c165e850de0c --- /dev/null +++ b/pkgs/development/python-modules/nsz/default.nix @@ -0,0 +1,30 @@ +{ lib, buildPythonPackage, fetchFromGitHub, pycryptodome, enlighten, zstandard +, withGUI ? true +, kivy +}: + +buildPythonPackage rec { + pname = "nsz"; + version = "4.1.0"; + + src = fetchFromGitHub { + owner = "nicoboss"; + repo = pname; + rev = version; + sha256 = "sha256-tdngXV+VUOAkg3lF2NOmw0mBeSEE+YpUfuKukTKcPnM="; + }; + + 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 ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 843fb9626744..cda60e5f2dbc 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -4652,6 +4652,8 @@ with pkgs; nsync = callPackage ../development/libraries/nsync { }; + nsz = with python3.pkgs; toPythonApplication nsz; + nwipe = callPackage ../tools/security/nwipe { }; nx2elf = callPackage ../tools/compression/nx2elf { }; diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 30548a9af37f..1cb1cc255951 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -6287,6 +6287,8 @@ self: super: with self; { nvidia-ml-py = callPackage ../development/python-modules/nvidia-ml-py { }; + nsz = callPackage ../development/python-modules/nsz { }; + nxt-python = callPackage ../development/python-modules/nxt-python { }; python-nvd3 = callPackage ../development/python-modules/python-nvd3 { };