40 lines
1019 B
Nix
40 lines
1019 B
Nix
{
|
|
lib,
|
|
fetchFromGitHub,
|
|
gitUpdater,
|
|
python3,
|
|
}:
|
|
|
|
python3.pkgs.buildPythonApplication rec {
|
|
pname = "badchars";
|
|
version = "0.5.0";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "cytopia";
|
|
repo = "badchars";
|
|
tag = version;
|
|
hash = "sha256-VWe3k34snEviBK7VBCDTWAu3YjZfh1gXHXjlnFlefJw=";
|
|
};
|
|
|
|
build-system = with python3.pkgs; [ setuptools ];
|
|
|
|
# no tests are available and it can't be imported (it's only a script, not a module)
|
|
doCheck = false;
|
|
|
|
passthru.updateScript = gitUpdater { };
|
|
|
|
meta = {
|
|
description = "HEX badchar generator for different programming languages";
|
|
longDescription = ''
|
|
A HEX bad char generator to instruct encoders such as shikata-ga-nai to
|
|
transform those to other chars.
|
|
'';
|
|
homepage = "https://github.com/cytopia/badchars";
|
|
changelog = "https://github.com/cytopia/badchars/releases/tag/${version}";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ fab ];
|
|
mainProgram = "badchars";
|
|
};
|
|
}
|