1a04744f74
There is no need to disable Python packages for Python versions that are
no longer in Nixpkgs.
This change was generated using the following script:
pattern='^\s*disabled\s*=\s*pythonOlder\s*"3\.\([0-9]\|10\)"\s*;\s*$'
for f in $(find -name '*.nix'); do
grep -q "$pattern" "$f" || continue
sed -i "/$pattern/d" "$f"
if [ $(grep -c pythonOlder "$f") == 1 ]; then
sed -i '/^\s*pythonOlder,\s*$/d' "$f"
fi
nixfmt "$f"
done
44 lines
910 B
Nix
44 lines
910 B
Nix
{
|
|
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 ];
|
|
};
|
|
}
|