diff options
author | Fabian Affolter <mail@fabian-affolter.ch> | 2021-01-03 13:45:20 +0100 |
---|---|---|
committer | Fabian Affolter <mail@fabian-affolter.ch> | 2021-01-03 13:45:20 +0100 |
commit | 2b587e67fdac6ab098aaa12d65fcf15732da086a (patch) | |
tree | 401c4e27fb3b3fc69d8dd16963b8154e7af2aa33 /pkgs/tools/security/badchars | |
parent | d4a76b1f5fb48896a3348c394196e7552e3eb9ef (diff) |
badchars: init at 0.4.0
Diffstat (limited to 'pkgs/tools/security/badchars')
-rw-r--r-- | pkgs/tools/security/badchars/default.nix | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/pkgs/tools/security/badchars/default.nix b/pkgs/tools/security/badchars/default.nix new file mode 100644 index 0000000000000..3125ff0c28c94 --- /dev/null +++ b/pkgs/tools/security/badchars/default.nix @@ -0,0 +1,32 @@ +{ lib +, buildPythonApplication +, fetchPypi +}: + +buildPythonApplication rec { + pname = "badchars"; + version = "0.4.0"; + + src = fetchPypi { + inherit pname version; + sha256 = "1xqki8qnfwl97d60xj69alyzwa1mnfbwki25j0vhvhb05varaxz2"; + }; + + postPatch = '' + substituteInPlace setup.py --replace "argparse" "" + ''; + + # no tests are available and it can't be imported (it's only a script, not a module) + doCheck = false; + + meta = with lib; { + 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"; + license = with licenses; [ mit ]; + maintainers = with maintainers; [ fab ]; + }; +} |