depot/third_party/nixpkgs/pkgs/development/python-modules/nsz/default.nix
Default email 587713944a Project import generated by Copybara.
GitOrigin-RevId: 6143fc5eeb9c4f00163267708e26191d1e918932
2024-04-21 17:54:59 +02:00

44 lines
962 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, pycryptodome
, pythonOlder
, enlighten
, zstandard
, withGUI ? true
, kivy
}:
buildPythonPackage rec {
pname = "nsz";
version = "4.6.1";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "nicoboss";
repo = pname;
rev = "refs/tags/${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 = with lib; {
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 = licenses.mit;
maintainers = with maintainers; [ eyjhb ];
};
}