lol
1{
2 lib,
3 fetchFromGitHub,
4 gitUpdater,
5 python3,
6}:
7
8python3.pkgs.buildPythonApplication rec {
9 pname = "badchars";
10 version = "0.5.0";
11 pyproject = true;
12
13 src = fetchFromGitHub {
14 owner = "cytopia";
15 repo = "badchars";
16 tag = version;
17 hash = "sha256-VWe3k34snEviBK7VBCDTWAu3YjZfh1gXHXjlnFlefJw=";
18 };
19
20 build-system = with python3.pkgs; [ setuptools ];
21
22 # no tests are available and it can't be imported (it's only a script, not a module)
23 doCheck = false;
24
25 passthru.updateScript = gitUpdater { };
26
27 meta = {
28 description = "HEX badchar generator for different programming languages";
29 longDescription = ''
30 A HEX bad char generator to instruct encoders such as shikata-ga-nai to
31 transform those to other chars.
32 '';
33 homepage = "https://github.com/cytopia/badchars";
34 changelog = "https://github.com/cytopia/badchars/releases/tag/${version}";
35 license = lib.licenses.mit;
36 maintainers = with lib.maintainers; [ fab ];
37 mainProgram = "badchars";
38 };
39}